@dittolive/ditto 4.5.2-rc.3 → 4.5.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/DittoReactNative.podspec +1 -1
- package/README.md +2 -2
- package/node/ditto.cjs.js +9657 -2
- package/node/ditto.cjs.js.map +1 -1
- package/node/ditto.cjs.pretty.js +6 -4
- package/node/ditto.cjs.pretty.js.map +1 -1
- package/node/ditto.darwin-arm64.node +0 -0
- package/node/ditto.darwin-x64.node +0 -0
- package/node/ditto.linux-arm.node +0 -0
- package/node/ditto.linux-x64.node +0 -0
- package/node/ditto.win32-x64.node +0 -0
- package/node/transports.darwin-arm64.node +0 -0
- package/node/transports.darwin-x64.node +0 -0
- package/package.json +1 -1
- package/react-native/android/build.gradle +1 -1
- package/react-native/src/sources/ditto.ts +3 -3
- package/types/ditto.d.ts +1 -1
- package/web/ditto.es6.js +1 -1
- package/web/ditto.es6.js.map +1 -1
- package/web/ditto.es6.pretty.js +5 -5
- package/web/ditto.es6.pretty.js.map +1 -1
- package/web/ditto.umd.js +1 -1
- package/web/ditto.umd.js.map +1 -1
- package/web/ditto.umd.pretty.js +5 -5
- package/web/ditto.umd.pretty.js.map +1 -1
- package/web/ditto.wasm +0 -0
package/node/ditto.cjs.pretty.js
CHANGED
|
@@ -269,6 +269,8 @@ const ditto = (function () {
|
|
|
269
269
|
if (target === 'darwin-x64') return require('./ditto.darwin-x64.node')
|
|
270
270
|
if (target === 'darwin-arm64') return require('./ditto.darwin-arm64.node')
|
|
271
271
|
if (target === 'linux-x64') return require('./ditto.linux-x64.node')
|
|
272
|
+
if (target === 'linux-arm') return require('./ditto.linux-arm.node')
|
|
273
|
+
if (target === 'win32-x64') return require('./ditto.win32-x64.node')
|
|
272
274
|
} catch (error) {
|
|
273
275
|
throw new Error("Couldn't load native module 'ditto." + target + ".node' due to error:" + error.toString())
|
|
274
276
|
}
|
|
@@ -1785,7 +1787,7 @@ class AttachmentToken {
|
|
|
1785
1787
|
|
|
1786
1788
|
// NOTE: this is patched up with the actual build version by Jake task
|
|
1787
1789
|
// build:package and has to be a valid semantic version as defined here: https://semver.org.
|
|
1788
|
-
const fullBuildVersionString = '4.5.2
|
|
1790
|
+
const fullBuildVersionString = '4.5.2';
|
|
1789
1791
|
|
|
1790
1792
|
//
|
|
1791
1793
|
// Copyright © 2021 DittoLive Incorporated. All rights reserved.
|
|
@@ -9167,10 +9169,10 @@ class Ditto {
|
|
|
9167
9169
|
*
|
|
9168
9170
|
* @throws {Error} if called in a React Native environment.
|
|
9169
9171
|
*/
|
|
9170
|
-
disableSyncWithV3() {
|
|
9172
|
+
async disableSyncWithV3() {
|
|
9171
9173
|
const dittoHandle = Bridge.ditto.handleFor(this);
|
|
9172
|
-
return this.
|
|
9173
|
-
dittoDisableSyncWithV3(dittoHandle.deref());
|
|
9174
|
+
return this.deferCloseAsync(async () => {
|
|
9175
|
+
await dittoDisableSyncWithV3(dittoHandle.deref());
|
|
9174
9176
|
});
|
|
9175
9177
|
}
|
|
9176
9178
|
/**
|