From 95e4a9990273e65a7180188fc5990b0127e42b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Thu, 3 Feb 2022 11:53:10 +0100 Subject: [PATCH] fix: add uuid as a dependency --- package-lock.json | 39 ++++++++++++++++++++++++--------------- package.json | 10 ++++++---- rollup.config.js | 4 ++++ 3 files changed, 34 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 23244ea..594ef4f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -965,9 +965,9 @@ "dev": true }, "@types/uuid": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.1.tgz", - "integrity": "sha512-Y2mHTRAbqfFkpjldbkHGY8JIzRN6XqYRliG8/24FcHm2D2PwW24fl5xMRTVGdrb7iMrwCaIEbLWerGIkXuFWVg==", + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", + "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==", "dev": true }, "@types/yargs": { @@ -3797,6 +3797,26 @@ "rollup-pluginutils": "^2.8.1" } }, + "rollup-plugin-inject": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz", + "integrity": "sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==", + "dev": true, + "requires": { + "estree-walker": "^0.6.1", + "magic-string": "^0.25.3", + "rollup-pluginutils": "^2.8.1" + } + }, + "rollup-plugin-node-polyfills": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.1.tgz", + "integrity": "sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==", + "dev": true, + "requires": { + "rollup-plugin-inject": "^3.0.0" + } + }, "rollup-plugin-node-resolve": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.2.0.tgz", @@ -4427,18 +4447,7 @@ "uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true - }, - "uuidv4": { - "version": "6.2.12", - "resolved": "https://registry.npmjs.org/uuidv4/-/uuidv4-6.2.12.tgz", - "integrity": "sha512-UnN4ThIYWhv3ZUE8UwDnnCvh4JafCNu+sQkxmLyjCVwK3rjLfkg3DYiEv6oCMDIAIVEDP4INg4kX/C5hKaRzZA==", - "dev": true, - "requires": { - "@types/uuid": "8.3.1", - "uuid": "8.3.2" - } + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" }, "v8-compile-cache": { "version": "2.3.0", diff --git a/package.json b/package.json index 7e620db..7120552 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "devDependencies": { "@babel/runtime": "^7.14.0", "@types/jest": "^27.0.1", + "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^4.32.0", "@typescript-eslint/parser": "^4.32.0", "eslint": "^7.32.0", @@ -39,18 +40,19 @@ "rollup": "^1.20.3", "rollup-plugin-babel-minify": "^9.0.0", "rollup-plugin-commonjs": "^10.1.0", + "rollup-plugin-node-polyfills": "^0.2.1", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-typescript2": "^0.24.0", "rollup-plugin-uglify": "^6.0.2", "ts-jest": "^27.0.5", + "tslib": "2.3.1", "tslint": "^5.18.0", "typescript": "^4.4.3", - "uglify-js": "^3.6.0", - "uuidv4": "6.2.12", - "tslib": "2.3.1" + "uglify-js": "^3.6.0" }, "dependencies": { "@react-native-async-storage/async-storage": "^1.15.17", - "tiny-emitter": "^2.1.0" + "tiny-emitter": "^2.1.0", + "uuid": "^8.3.2" } } diff --git a/rollup.config.js b/rollup.config.js index 634a4b3..171c985 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,6 +3,9 @@ import minify from 'rollup-plugin-babel-minify'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; +import nodePolyfills from 'rollup-plugin-node-polyfills'; + + export default { input: './src/index.ts', output: [ @@ -13,6 +16,7 @@ export default { } ], plugins: [ + nodePolyfills(), resolve({ }), commonjs({ // rollup-plugin-commonjs