From e04abf524afa2d1530aeae6e9c2369888faa75f0 Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Tue, 8 Dec 2020 09:36:13 +1300 Subject: [PATCH 1/4] feat: add shim for window --- packages/insomnia-app/send-request/webpack.config.babel.js | 1 + packages/insomnia-app/send-request/window-shim/index.js | 6 ++++++ packages/insomnia-app/send-request/window-shim/package.json | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 packages/insomnia-app/send-request/window-shim/index.js create mode 100644 packages/insomnia-app/send-request/window-shim/package.json diff --git a/packages/insomnia-app/send-request/webpack.config.babel.js b/packages/insomnia-app/send-request/webpack.config.babel.js index c28127b55..c25592bda 100644 --- a/packages/insomnia-app/send-request/webpack.config.babel.js +++ b/packages/insomnia-app/send-request/webpack.config.babel.js @@ -46,5 +46,6 @@ module.exports = { plugins: [ // Set the APP_ID environment variable because it's required to access the app config new webpack.DefinePlugin({ 'process.env.APP_ID': JSON.stringify('com.insomnia.designer') }), + new webpack.ProvidePlugin({ window: path.resolve(path.join(__dirname, './window-shim')) }), ], }; diff --git a/packages/insomnia-app/send-request/window-shim/index.js b/packages/insomnia-app/send-request/window-shim/index.js new file mode 100644 index 000000000..f0410034f --- /dev/null +++ b/packages/insomnia-app/send-request/window-shim/index.js @@ -0,0 +1,6 @@ +module.exports = { + localStorage: { + getItem: () => undefined, + setItem: () => {}, + }, +}; diff --git a/packages/insomnia-app/send-request/window-shim/package.json b/packages/insomnia-app/send-request/window-shim/package.json new file mode 100644 index 000000000..ec88afb32 --- /dev/null +++ b/packages/insomnia-app/send-request/window-shim/package.json @@ -0,0 +1,4 @@ +{ + "name": "window-shim", + "main": "index.js" +} From e4450405cafd7dc62a07c2f836cb800b7aa0e554 Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Tue, 8 Dec 2020 10:55:36 +1300 Subject: [PATCH 2/4] lib@2.2.27 --- lerna.json | 2 +- packages/insomnia-app/package-lock.json | 2 +- packages/insomnia-app/package.json | 2 +- packages/insomnia-inso/package-lock.json | 2 +- packages/insomnia-inso/package.json | 4 ++-- packages/insomnia-send-request/package-lock.json | 2 +- packages/insomnia-send-request/package.json | 2 +- packages/insomnia-smoke-test/package-lock.json | 2 +- packages/insomnia-smoke-test/package.json | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lerna.json b/lerna.json index c925e5e0b..5acff4707 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "tagVersionPrefix": "lib@", - "version": "2.2.26", + "version": "2.2.27", "includeMergedTags": true, "packages": [ "packages/*", diff --git a/packages/insomnia-app/package-lock.json b/packages/insomnia-app/package-lock.json index 1e3df5b98..7534e6ead 100644 --- a/packages/insomnia-app/package-lock.json +++ b/packages/insomnia-app/package-lock.json @@ -1,6 +1,6 @@ { "name": "insomnia-app", - "version": "2.2.26", + "version": "2.2.27", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/insomnia-app/package.json b/packages/insomnia-app/package.json index 7a9a49b72..fb0cfc0d0 100644 --- a/packages/insomnia-app/package.json +++ b/packages/insomnia-app/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "2.2.26", + "version": "2.2.27", "name": "insomnia-app", "homepage": "https://konghq.com", "description": "The Collaborative API Design Tool", diff --git a/packages/insomnia-inso/package-lock.json b/packages/insomnia-inso/package-lock.json index f76b9d833..a5e742fec 100644 --- a/packages/insomnia-inso/package-lock.json +++ b/packages/insomnia-inso/package-lock.json @@ -1,6 +1,6 @@ { "name": "insomnia-inso", - "version": "2.2.26", + "version": "2.2.27", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/insomnia-inso/package.json b/packages/insomnia-inso/package.json index 91f379a68..0838c4654 100644 --- a/packages/insomnia-inso/package.json +++ b/packages/insomnia-inso/package.json @@ -1,6 +1,6 @@ { "name": "insomnia-inso", - "version": "2.2.26", + "version": "2.2.27", "homepage": "https://insomnia.rest", "description": "A CLI for Insomnia Designer - the collaborative API design tool.", "author": "Kong ", @@ -80,7 +80,7 @@ "insomnia-plugin-request": "^2.2.24", "insomnia-plugin-response": "^2.2.25", "insomnia-plugin-uuid": "^2.2.24", - "insomnia-send-request": "^2.2.26", + "insomnia-send-request": "^2.2.27", "insomnia-testing": "^2.2.26", "lodash.flattendeep": "^4.4.0", "mkdirp": "^1.0.4", diff --git a/packages/insomnia-send-request/package-lock.json b/packages/insomnia-send-request/package-lock.json index 33cb45450..69f0baa44 100644 --- a/packages/insomnia-send-request/package-lock.json +++ b/packages/insomnia-send-request/package-lock.json @@ -1,6 +1,6 @@ { "name": "insomnia-send-request", - "version": "2.2.26", + "version": "2.2.27", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/insomnia-send-request/package.json b/packages/insomnia-send-request/package.json index 93396c4a7..c929d6d14 100644 --- a/packages/insomnia-send-request/package.json +++ b/packages/insomnia-send-request/package.json @@ -1,6 +1,6 @@ { "name": "insomnia-send-request", - "version": "2.2.26", + "version": "2.2.27", "main": "dist/index.js", "dependencies": { "@stoplight/spectral": "^5.4.0", diff --git a/packages/insomnia-smoke-test/package-lock.json b/packages/insomnia-smoke-test/package-lock.json index 3ff211dbb..3b2d2ee67 100644 --- a/packages/insomnia-smoke-test/package-lock.json +++ b/packages/insomnia-smoke-test/package-lock.json @@ -1,6 +1,6 @@ { "name": "insomnia-smoke-test", - "version": "2.2.26", + "version": "2.2.27", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/insomnia-smoke-test/package.json b/packages/insomnia-smoke-test/package.json index 6f29df657..fa0d4ad2c 100644 --- a/packages/insomnia-smoke-test/package.json +++ b/packages/insomnia-smoke-test/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "insomnia-smoke-test", - "version": "2.2.26", + "version": "2.2.27", "scripts": { "spectron:core:build": "cross-env BUNDLE=build xvfb-maybe jest --detectOpenHandles --testPathPattern core", "spectron:designer:build": "cross-env BUNDLE=build xvfb-maybe jest --detectOpenHandles --testPathPattern designer", From 15e046dfc1dd9ae86a979179aeb30ad51be3d0fb Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Tue, 8 Dec 2020 11:12:00 +1300 Subject: [PATCH 3/4] chore: lock node-libcurl in send-request --- packages/insomnia-send-request/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia-send-request/package.json b/packages/insomnia-send-request/package.json index c929d6d14..a63ddbfe9 100644 --- a/packages/insomnia-send-request/package.json +++ b/packages/insomnia-send-request/package.json @@ -27,7 +27,7 @@ "multiparty": "^4.2.1", "nedb": "^1.8.0", "node-forge": "^0.9.1", - "node-libcurl": "^2.2.0", + "node-libcurl": "2.2.0", "nunjucks": "^3.2.1", "oauth-1.0a": "^2.2.6", "openapi-2-kong": "^2.2.26", From 71c7dbba4721d6a7874b343e4cf18d056686b453 Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Tue, 8 Dec 2020 11:21:36 +1300 Subject: [PATCH 4/4] lib@2.2.28 --- lerna.json | 2 +- packages/insomnia-inso/package-lock.json | 2 +- packages/insomnia-inso/package.json | 4 ++-- packages/insomnia-send-request/package-lock.json | 2 +- packages/insomnia-send-request/package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lerna.json b/lerna.json index 5acff4707..f88469300 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "tagVersionPrefix": "lib@", - "version": "2.2.27", + "version": "2.2.28", "includeMergedTags": true, "packages": [ "packages/*", diff --git a/packages/insomnia-inso/package-lock.json b/packages/insomnia-inso/package-lock.json index a5e742fec..c9edf95be 100644 --- a/packages/insomnia-inso/package-lock.json +++ b/packages/insomnia-inso/package-lock.json @@ -1,6 +1,6 @@ { "name": "insomnia-inso", - "version": "2.2.27", + "version": "2.2.28", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/insomnia-inso/package.json b/packages/insomnia-inso/package.json index 0838c4654..a95bd53e2 100644 --- a/packages/insomnia-inso/package.json +++ b/packages/insomnia-inso/package.json @@ -1,6 +1,6 @@ { "name": "insomnia-inso", - "version": "2.2.27", + "version": "2.2.28", "homepage": "https://insomnia.rest", "description": "A CLI for Insomnia Designer - the collaborative API design tool.", "author": "Kong ", @@ -80,7 +80,7 @@ "insomnia-plugin-request": "^2.2.24", "insomnia-plugin-response": "^2.2.25", "insomnia-plugin-uuid": "^2.2.24", - "insomnia-send-request": "^2.2.27", + "insomnia-send-request": "^2.2.28", "insomnia-testing": "^2.2.26", "lodash.flattendeep": "^4.4.0", "mkdirp": "^1.0.4", diff --git a/packages/insomnia-send-request/package-lock.json b/packages/insomnia-send-request/package-lock.json index 69f0baa44..c1b951679 100644 --- a/packages/insomnia-send-request/package-lock.json +++ b/packages/insomnia-send-request/package-lock.json @@ -1,6 +1,6 @@ { "name": "insomnia-send-request", - "version": "2.2.27", + "version": "2.2.28", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/insomnia-send-request/package.json b/packages/insomnia-send-request/package.json index a63ddbfe9..cda68fbc1 100644 --- a/packages/insomnia-send-request/package.json +++ b/packages/insomnia-send-request/package.json @@ -1,6 +1,6 @@ { "name": "insomnia-send-request", - "version": "2.2.27", + "version": "2.2.28", "main": "dist/index.js", "dependencies": { "@stoplight/spectral": "^5.4.0",