@junobuild/storage 2.0.1 → 2.1.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.
@@ -34,6 +34,11 @@ export interface AssetKey {
34
34
  * @type {string}
35
35
  */
36
36
  name: string;
37
+ /**
38
+ * An optional token associated with the asset. Tokens are used to protect assets on the web. If a token is provided, the asset is delivered on the web only if the query parameter `token` is provided with a matching value.
39
+ * @type {string}
40
+ */
41
+ token?: string;
37
42
  /**
38
43
  * The download URL of the asset.
39
44
  * @type {string}
@@ -56,11 +61,6 @@ export interface Asset extends AssetKey {
56
61
  * @type {string}
57
62
  */
58
63
  description?: string;
59
- /**
60
- * An optional token associated with the asset. Tokens are used to protect assets on the web. If a token is provided, the asset is delivered on the web only if the query parameter `token` is provided with a matching value.
61
- * @type {string}
62
- */
63
- token?: string;
64
64
  /**
65
65
  * The headers associated with the asset.
66
66
  * @type {[string, string][]}
@@ -118,7 +118,7 @@ export interface Storage {
118
118
  */
119
119
  headers?: [string, string][];
120
120
  /**
121
- * An optional token associated with the asset. Tokens are used to protect assets on the web. If a token is provided, the asset is delivered on the web only if the query parameter `token` is provided with a matching value.
121
+ * An optional access token associated with the asset. Tokens are used to protect assets on the web. If a token is provided, the asset is delivered on the web only if the query parameter `token` is provided with a matching value.
122
122
  * @type {string}
123
123
  */
124
124
  token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/storage",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "A library for interfacing with Juno's Storage features.",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -48,7 +48,7 @@
48
48
  "peerDependencies": {
49
49
  "@dfinity/utils": "^4",
50
50
  "@icp-sdk/core": "^4.2",
51
- "@junobuild/ic-client": "^5",
51
+ "@junobuild/ic-client": "^7",
52
52
  "@junobuild/utils": "*"
53
53
  }
54
54
  }