Skip to content

Commit 7695d02

Browse files
committed
feat: updated to fix issues with uuid
1 parent 3515a10 commit 7695d02

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"!**/.*"
3333
],
3434
"scripts": {
35-
"example": "./uuid-fix.sh && yarn workspace expo-example",
35+
"example": "yarn workspace expo-example",
3636
"test": "jest",
37-
"typecheck": "./uuid-fix.sh && tsc --noEmit",
37+
"typecheck": "tsc --noEmit",
3838
"lint": "eslint \"**/*.{js,ts,tsx}\"",
3939
"clean": "del-cli android/build expo-example/android/build expo-example/android/app/build expo-example/ios/build lib",
40-
"build": "./uuid-fix.sh && bob build",
41-
"release": "./uuid-fix.sh && release-it"
40+
"build": "bob build",
41+
"release": "release-it"
4242
},
4343
"keywords": [
4444
"react-native",

src/CblReactNativeEngine.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ import { ReplicatorStatus } from './cblite-js/cblite/src/replicator-status';
5050
import { Result } from './cblite-js/cblite/src/result';
5151
import { Scope } from './cblite-js/cblite/src/scope';
5252

53+
import { v4 as uuidv4 } from 'uuid';
54+
import 'react-native-get-random-values';
55+
5356
export class CblReactNativeEngine implements ICoreEngine {
5457
_defaultCollectionName = '_default';
5558
_defaultScopeName = '_default';
@@ -641,4 +644,8 @@ export class CblReactNativeEngine implements ICoreEngine {
641644
);
642645
});
643646
}
647+
648+
getUUID(): string {
649+
return uuidv4().toString();
650+
}
644651
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ camelcase@^7.0.1:
25742574
caniuse-lite@^1.0.30001640:
25752575
version "1.0.30001640"
25762576

2577-
"cbl-reactnative-example@file:/Users/aaron.labeau/Developer/Couchbase/cbl-reactnative/example":
2577+
"cbl-reactnative-example@file:/Users/labeaaa/Developer/couchbase/cbl-reactnative/example":
25782578
version "0.0.1"
25792579
resolved "file:example"
25802580
dependencies:

0 commit comments

Comments
 (0)