diff --git a/examples/compose-object-test-example.js b/examples/compose-object-test-example.js index 40a3fb2c..6cd221a2 100644 --- a/examples/compose-object-test-example.js +++ b/examples/compose-object-test-example.js @@ -20,8 +20,8 @@ const os = require('os') const splitFile = require('split-file') const fs = require('fs') -var Minio = require('../dist/main/minio') -var Helpers = require('../dist/main/helpers') +var Minio = require('minio') +var Helpers = require('minio/dist/main/helpers') var s3Client = new Minio.Client({ endPoint: 's3.amazonaws.com', diff --git a/examples/compose-object.js b/examples/compose-object.js index 5e35597e..2b307f94 100644 --- a/examples/compose-object.js +++ b/examples/compose-object.js @@ -17,8 +17,8 @@ // Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY, my-bucketname and my-objectname // are dummy values, please replace them with original values. -var Minio = require('../dist/main/minio') -var Helpers = require('../dist/main/helpers') +var Minio = require('minio') +var Helpers = require('minio/dist/main/helpers') var s3Client = new Minio.Client({ endPoint: 's3.amazonaws.com', diff --git a/examples/minio/listen-bucket-notification.js b/examples/minio/listen-bucket-notification.js index df53bdbf..496a8f2c 100644 --- a/examples/minio/listen-bucket-notification.js +++ b/examples/minio/listen-bucket-notification.js @@ -17,7 +17,7 @@ // Note that `listenBucketNotification` is only available for MinIO, and not // Amazon. -const Minio = require('../') +const Minio = require('minio') var s3Client = new Minio.Client({ endPoint: '...', diff --git a/examples/select-object-content.js b/examples/select-object-content.js index 1b6421cb..62b237c2 100644 --- a/examples/select-object-content.js +++ b/examples/select-object-content.js @@ -17,7 +17,7 @@ // Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY, my-bucketname // and my-objectname are dummy values, please replace them with original values. -var Minio = require('../dist/main/minio') +var Minio = require('minio') var s3Client = new Minio.Client({ endPoint: 's3.amazonaws.com',