From 5a186620b5aeafb805a16f786730e912808a4637 Mon Sep 17 00:00:00 2001 From: Abhay <67417765+AbhayAysola@users.noreply.github.com> Date: Sun, 7 Mar 2021 18:16:54 +0530 Subject: [PATCH] Update package.json to fix npm package issue #69 (#71) * Update package.json to fix npm package issue #69 * install regenerator-runtime * Remove postinstall script * Install @babel/runtime --- package-lock.json | 10 ++++------ package.json | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 15e7de93..77ceb85d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1060,10 +1060,9 @@ } }, "@babel/runtime": { - "version": "7.12.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz", - "integrity": "sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==", - "dev": true, + "version": "7.13.9", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.9.tgz", + "integrity": "sha512-aY2kU+xgJ3dJ1eU6FMB9EH8dIe8dmusF1xEku52joLvw6eAFN0AI+WxCLDnpev2LEejWBAy2sBvBOBAjI3zmvA==", "requires": { "regenerator-runtime": "^0.13.4" } @@ -6866,8 +6865,7 @@ "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==", - "dev": true + "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" }, "regenerator-transform": { "version": "0.14.5", diff --git a/package.json b/package.json index 51dc98fa..7df000c6 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build:web": "browserify dist/index.js -p tinyify --no-flat -o dist/tnb.min.js -s tnb", "test:no-build": "jest", "test": "npm run build && npm run test:no-build", - "prepare": "npm run build && npm run test:no-build", + "prepack": "npm run build && npm run test:no-build", "lint": "eslint \"./src/**/*.{js,ts}\"" }, "main": "dist/index.js", @@ -28,6 +28,7 @@ "src" ], "dependencies": { + "@babel/runtime": "^7.13.9", "axios": "^0.21.0", "core-js": "^3.7.0", "tweetnacl": "^1.0.3"