jubo-sdk 1.6.0-beta.2 → 1.6.0-beta.3
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/README.md +10 -0
- package/dist/JuboSdk.d.ts +5 -0
- package/dist/OldJuboSdk.d.ts +5 -0
- package/dist/index.cjs.js +32 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +32 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +32 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -399,6 +399,16 @@ Saigo = "Saigo"
|
|
|
399
399
|
| ------- | ----------- | ------- |
|
|
400
400
|
| √ | √ | x |
|
|
401
401
|
|
|
402
|
+
### getShockOnPhone()
|
|
403
|
+
|
|
404
|
+
调用手机震动
|
|
405
|
+
|
|
406
|
+
#### 平台差异说明
|
|
407
|
+
|
|
408
|
+
| **ios** | **android** | **小程序** |
|
|
409
|
+
| ------- | ----------- | ------- |
|
|
410
|
+
| √ | √ | x |
|
|
411
|
+
|
|
402
412
|
### setMessage()
|
|
403
413
|
|
|
404
414
|
传值至小程序
|
package/dist/JuboSdk.d.ts
CHANGED
package/dist/OldJuboSdk.d.ts
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -7181,12 +7181,24 @@ var OldJuboSdk = /** @class */function () {
|
|
|
7181
7181
|
* 调用震动
|
|
7182
7182
|
* @environment [ios, android]
|
|
7183
7183
|
*/
|
|
7184
|
+
Object.defineProperty(OldJuboSdk.prototype, "getShockOnPhone", {
|
|
7185
|
+
enumerable: false,
|
|
7186
|
+
configurable: true,
|
|
7187
|
+
writable: true,
|
|
7188
|
+
value: function value() {
|
|
7189
|
+
console.log('juboSDK.getShockOnPhone');
|
|
7190
|
+
}
|
|
7191
|
+
});
|
|
7192
|
+
/**
|
|
7193
|
+
* 调用手机震动
|
|
7194
|
+
* @environment [ios, android]
|
|
7195
|
+
*/
|
|
7184
7196
|
Object.defineProperty(OldJuboSdk.prototype, "getShock", {
|
|
7185
7197
|
enumerable: false,
|
|
7186
7198
|
configurable: true,
|
|
7187
7199
|
writable: true,
|
|
7188
7200
|
value: function value() {
|
|
7189
|
-
console.log('juboSDK.
|
|
7201
|
+
console.log('juboSDK.getShock');
|
|
7190
7202
|
}
|
|
7191
7203
|
});
|
|
7192
7204
|
return OldJuboSdk;
|
|
@@ -8027,6 +8039,24 @@ var JuboSdk = /** @class */function () {
|
|
|
8027
8039
|
}
|
|
8028
8040
|
}
|
|
8029
8041
|
});
|
|
8042
|
+
/**
|
|
8043
|
+
* 调用手机震动
|
|
8044
|
+
* @environment [ios, android]
|
|
8045
|
+
*/
|
|
8046
|
+
Object.defineProperty(JuboSdk.prototype, "getShockOnPhone", {
|
|
8047
|
+
enumerable: false,
|
|
8048
|
+
configurable: true,
|
|
8049
|
+
writable: true,
|
|
8050
|
+
value: function value() {
|
|
8051
|
+
console.log('juboSDK.getShockOnPhone');
|
|
8052
|
+
if (!this.detection && this.isMiniProgram) return;
|
|
8053
|
+
try {
|
|
8054
|
+
dsBridge.call('shockOnPhone', {});
|
|
8055
|
+
} catch (error) {
|
|
8056
|
+
console.log('🚀 ~ juboSDK.getShockOnPhone', error);
|
|
8057
|
+
}
|
|
8058
|
+
}
|
|
8059
|
+
});
|
|
8030
8060
|
return JuboSdk;
|
|
8031
8061
|
}();
|
|
8032
8062
|
window.JuboSdk = JuboSdk;
|
|
@@ -8054,6 +8084,6 @@ exports.default = JuboSdk;
|
|
|
8054
8084
|
exports.ls = ls;
|
|
8055
8085
|
|
|
8056
8086
|
if(typeof window !== 'undefined') {
|
|
8057
|
-
window._juboSDK_VERSION_ = '1.6.0-beta.
|
|
8087
|
+
window._juboSDK_VERSION_ = '1.6.0-beta.3'
|
|
8058
8088
|
}
|
|
8059
8089
|
//# sourceMappingURL=index.cjs.js.map
|