@thi.ng/dl-asset 2.0.0 → 2.0.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@2.0.0...@thi.ng/dl-asset@2.0.1) (2021-10-13)
7
+
8
+ **Note:** Version bump only for package @thi.ng/dl-asset
9
+
10
+
11
+
12
+
13
+
6
14
  # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@1.0.5...@thi.ng/dl-asset@2.0.0) (2021-10-12)
7
15
 
8
16
 
package/README.md CHANGED
@@ -47,10 +47,11 @@ ES module import:
47
47
 
48
48
  [Skypack documentation](https://docs.skypack.dev/)
49
49
 
50
- For NodeJS (v14.6+):
50
+ For Node.js REPL:
51
51
 
52
52
  ```text
53
- node --experimental-specifier-resolution=node --experimental-repl-await
53
+ # with flag only for < v16
54
+ node --experimental-repl-await
54
55
 
55
56
  > const dlAsset = await import("@thi.ng/dl-asset");
56
57
  ```
package/download.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { TypedArray } from "@thi.ng/api";
2
- import type { DownloadOpts } from "./api";
2
+ import type { DownloadOpts } from "./api.js";
3
3
  /**
4
4
  * Similar to (and wrapping) {@link downloadWithMime} with additional
5
5
  * automatic MIME type detection. If no MIME type is given, attempts to
package/download.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { preferredType } from "@thi.ng/mime";
2
- import { downloadWithMime } from "./raw";
2
+ import { downloadWithMime } from "./raw.js";
3
3
  /**
4
4
  * Similar to (and wrapping) {@link downloadWithMime} with additional
5
5
  * automatic MIME type detection. If no MIME type is given, attempts to
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./api";
2
- export * from "./download";
3
- export * from "./raw";
1
+ export * from "./api.js";
2
+ export * from "./download.js";
3
+ export * from "./raw.js";
4
4
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./api";
2
- export * from "./download";
3
- export * from "./raw";
1
+ export * from "./api.js";
2
+ export * from "./download.js";
3
+ export * from "./raw.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/dl-asset",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Local asset download for web apps, with automatic MIME type detection",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,12 +34,12 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.0",
38
- "@thi.ng/checks": "^3.0.0",
39
- "@thi.ng/mime": "^2.0.0"
37
+ "@thi.ng/api": "^8.0.1",
38
+ "@thi.ng/checks": "^3.0.1",
39
+ "@thi.ng/mime": "^2.0.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@thi.ng/testament": "^0.1.0"
42
+ "@thi.ng/testament": "^0.1.1"
43
43
  },
44
44
  "keywords": [
45
45
  "browser",
@@ -50,6 +50,9 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
+ "engines": {
54
+ "node": ">=12.7"
55
+ },
53
56
  "files": [
54
57
  "*.js",
55
58
  "*.d.ts"
@@ -74,5 +77,5 @@
74
77
  ],
75
78
  "year": 2020
76
79
  },
77
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
80
+ "gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
78
81
  }
package/raw.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { TypedArray } from "@thi.ng/api";
2
- import type { DownloadOpts } from "./api";
2
+ import type { DownloadOpts } from "./api.js";
3
3
  /**
4
4
  * Triggers download of given `src` blob (or typed array or string) as
5
5
  * local file with filename `name`. MIME type option MUST be given.