cloud-bucket 0.4.0-SNAPSHOT.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bucket.js CHANGED
@@ -1,6 +1,7 @@
1
- import { glob, mkdirp } from 'fs-extra-plus';
1
+ import { glob } from 'fs-extra-plus';
2
2
  import { lookup } from 'mime-types';
3
3
  import * as Path from 'path';
4
+ const { mkdirp } = (await import('fs-extra')).default;
4
5
  export function newBucket(opts) {
5
6
  return new BucketImpl(opts);
6
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-bucket",
3
3
  "type": "module",
4
- "version": "0.4.0-SNAPSHOT.1",
4
+ "version": "0.4.2",
5
5
  "description": "Simple multi cloud (Google Storage and AWS S3) bucket API",
6
6
  "author": "Jeremy Chone <jeremy.chone@gmail.com>",
7
7
  "main": "dist/index.js",
@@ -13,21 +13,21 @@
13
13
  "node": ">=14"
14
14
  },
15
15
  "dependencies": {
16
- "@google-cloud/storage": "^5.16.0",
16
+ "@google-cloud/storage": "^5.18.2",
17
17
  "@types/micromatch": "^4.0.2",
18
18
  "@types/mime-types": "^2.1.1",
19
- "aws-sdk": "^2.1037.0",
20
- "fs-extra-plus": "^0.5.23",
19
+ "aws-sdk": "^2.1090.0",
20
+ "fs-extra-plus": "^0.6.0",
21
21
  "micromatch": "^4.0.4",
22
22
  "mime-types": "^2.1.34"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/js-yaml": "^4.0.5",
26
- "@types/mocha": "^9.0.0",
26
+ "@types/mocha": "^9.1.0",
27
27
  "js-yaml": "^4.1.0",
28
- "mocha": "^9.1.3",
29
- "ts-node": "^10.4.0",
30
- "typescript": "^4.5.2"
28
+ "mocha": "^9.2.1",
29
+ "ts-node": "^10.7.0",
30
+ "typescript": "^4.6.2"
31
31
  },
32
32
  "scripts": {
33
33
  "test": "TS_NODE_PROJECT='test/tsconfig.json' ./node_modules/.bin/mocha",
package/src/bucket.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { Bucket as GoogleBucket } from '@google-cloud/storage';
2
2
  import { S3 } from 'aws-sdk';
3
- import { glob, mkdirp } from 'fs-extra-plus';
3
+ import { glob } from 'fs-extra-plus';
4
4
  import { lookup } from 'mime-types';
5
5
  import * as Path from 'path';
6
6
  import { Readable, Writable } from 'stream';
7
7
  import { Driver, ListCloudFilesOptions } from './driver.js';
8
8
  import { BucketFile, BucketFileDeleted, BucketType, ListArg, ListOptions, ListResult } from './types.js';
9
+ const { mkdirp } = (await import('fs-extra')).default;
9
10
 
10
11
  export interface BucketOptions {
11
12
  driver: Driver;