agentlink-sdk 1.0.0 → 1.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/dist/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3763,7 +3763,13 @@ var require_originStorageClient = __commonJS({
|
|
|
3763
3763
|
}
|
|
3764
3764
|
change(options) {
|
|
3765
3765
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
3766
|
-
|
|
3766
|
+
if (typeof options.key === "string" && !options.value) {
|
|
3767
|
+
const getItemOptions = options.origin ? { filterOrigin: options.origin } : void 0;
|
|
3768
|
+
const value = yield this.getItem(options.key, getItemOptions);
|
|
3769
|
+
this._change(Object.assign(Object.assign({}, options), { value }));
|
|
3770
|
+
} else {
|
|
3771
|
+
this._change(options);
|
|
3772
|
+
}
|
|
3767
3773
|
});
|
|
3768
3774
|
}
|
|
3769
3775
|
getConfig() {
|
package/dist/index.mjs
CHANGED
|
@@ -3768,7 +3768,13 @@ var require_originStorageClient = __commonJS({
|
|
|
3768
3768
|
}
|
|
3769
3769
|
change(options) {
|
|
3770
3770
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
3771
|
-
|
|
3771
|
+
if (typeof options.key === "string" && !options.value) {
|
|
3772
|
+
const getItemOptions = options.origin ? { filterOrigin: options.origin } : void 0;
|
|
3773
|
+
const value = yield this.getItem(options.key, getItemOptions);
|
|
3774
|
+
this._change(Object.assign(Object.assign({}, options), { value }));
|
|
3775
|
+
} else {
|
|
3776
|
+
this._change(options);
|
|
3777
|
+
}
|
|
3772
3778
|
});
|
|
3773
3779
|
}
|
|
3774
3780
|
getConfig() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentlink-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "AgentLink client SDK for cross-domain storage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"iframe"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"agentlink-core": "^1.0.
|
|
26
|
+
"agentlink-core": "^1.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^20.0.0",
|