2017-11-26 20:45:40 +00:00
|
|
|
{
|
|
|
|
"private": true,
|
2021-04-21 23:01:51 +00:00
|
|
|
"version": "2.2.35-beta.1",
|
2017-11-26 23:04:47 +00:00
|
|
|
"name": "insomnia-app",
|
2020-04-26 20:33:39 +00:00
|
|
|
"homepage": "https://konghq.com",
|
|
|
|
"description": "The Collaborative API Design Tool",
|
|
|
|
"author": "Kong <office@konghq.com>",
|
2017-11-26 23:04:47 +00:00
|
|
|
"main": "app/main.min.js",
|
2017-11-26 20:45:40 +00:00
|
|
|
"scripts": {
|
2020-05-14 22:54:07 +00:00
|
|
|
"typecheck": "flow check",
|
2020-04-26 20:33:39 +00:00
|
|
|
"test": "npm run test:jest",
|
2018-06-27 05:13:48 +00:00
|
|
|
"test:jest": "cross-env NODE_ENV=test jest --silent",
|
2017-11-26 20:45:40 +00:00
|
|
|
"test-appveyor": "npm run test -- --maxWorkers 1",
|
2017-11-30 13:07:47 +00:00
|
|
|
"start:electron": "cross-env NODE_ENV=development webpack --config ./webpack/webpack.config.electron.babel.js && electron .",
|
2017-11-26 20:45:40 +00:00
|
|
|
"start:dev-server": "webpack-dev-server --config ./webpack/webpack.config.development.babel.js",
|
2021-02-02 23:19:22 +00:00
|
|
|
"start": "concurrently -n dev,app --kill-others \"npm run start:dev-server\" \"npm run start:electron\"",
|
2019-11-26 17:22:21 +00:00
|
|
|
"storybook": "start-storybook --port 3222",
|
2017-11-26 20:45:40 +00:00
|
|
|
"build": "node ./scripts/build.js",
|
2020-06-30 19:36:15 +00:00
|
|
|
"build:sr": "webpack --config send-request/webpack.config.babel.js",
|
2018-07-12 18:47:21 +00:00
|
|
|
"package": "node ./scripts/package.js",
|
2019-10-09 20:31:42 +00:00
|
|
|
"release": "node ./scripts/release.js",
|
2020-08-10 19:12:53 +00:00
|
|
|
"bootstrap": "rimraf node_modules/graphql-language-service-interface/dist/*.flow && npm run build:sr"
|
2017-11-26 20:45:40 +00:00
|
|
|
},
|
|
|
|
"dev": {
|
2020-04-26 20:33:39 +00:00
|
|
|
"dev-server-port": 3334
|
2017-11-26 20:45:40 +00:00
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"setupFiles": [
|
|
|
|
"./__jest__/setup.js"
|
|
|
|
],
|
2020-12-09 04:42:50 +00:00
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"./__jest__/setup-after-env.js"
|
|
|
|
],
|
2017-11-26 20:45:40 +00:00
|
|
|
"moduleNameMapper": {
|
|
|
|
"\\.(css|less|png)$": "<rootDir>/__mocks__/dummy.js",
|
2020-11-11 22:44:03 +00:00
|
|
|
"^worker-loader!": "<rootDir>/__mocks__/dummy.js"
|
2017-11-26 20:45:40 +00:00
|
|
|
},
|
2021-02-09 19:55:30 +00:00
|
|
|
"modulePathIgnorePatterns": [
|
|
|
|
"<rootDir>/network/.*/__mocks__"
|
|
|
|
],
|
2017-11-26 20:45:40 +00:00
|
|
|
"testMatch": [
|
|
|
|
"**/__tests__/**/*.test.js?(x)"
|
|
|
|
],
|
|
|
|
"rootDir": "app",
|
|
|
|
"verbose": false,
|
|
|
|
"resetMocks": true,
|
|
|
|
"resetModules": true,
|
|
|
|
"collectCoverage": false,
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"**/*.js",
|
|
|
|
"!**/*.min.js",
|
|
|
|
"!**/main.development.js",
|
|
|
|
"!**/static/**",
|
|
|
|
"!**/ui/components/**",
|
|
|
|
"!**/__fixtures__/**",
|
2021-01-25 02:50:53 +00:00
|
|
|
"!**/__schemas__/**",
|
2017-11-26 20:45:40 +00:00
|
|
|
"!**/__tests__/**",
|
|
|
|
"!**/__jest__/**",
|
|
|
|
"!**/__mocks__/**",
|
|
|
|
"!**/node_modules/**"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"packedDependencies": [
|
2021-02-02 22:23:42 +00:00
|
|
|
"class-autobind-decorator",
|
2018-10-20 02:11:58 +00:00
|
|
|
"classnames",
|
2017-11-26 20:45:40 +00:00
|
|
|
"codemirror",
|
|
|
|
"codemirror-graphql",
|
2018-05-23 06:39:01 +00:00
|
|
|
"fuzzysort",
|
2017-11-29 01:50:44 +00:00
|
|
|
"graphql",
|
2020-04-26 20:33:39 +00:00
|
|
|
"insomnia-components",
|
2018-11-30 06:16:59 +00:00
|
|
|
"insomnia-cookies",
|
|
|
|
"insomnia-prettify",
|
|
|
|
"insomnia-url",
|
|
|
|
"insomnia-xpath",
|
2017-11-26 20:45:40 +00:00
|
|
|
"highlight.js",
|
2019-05-29 20:10:48 +00:00
|
|
|
"json-order",
|
2017-11-27 02:06:15 +00:00
|
|
|
"jwt-authentication",
|
|
|
|
"moment",
|
2020-10-01 18:49:05 +00:00
|
|
|
"objectpath",
|
2017-11-26 20:45:40 +00:00
|
|
|
"pdfjs-dist",
|
|
|
|
"prop-types",
|
|
|
|
"react",
|
2020-04-26 20:33:39 +00:00
|
|
|
"react-animated-tree",
|
2017-11-26 20:45:40 +00:00
|
|
|
"react-dnd",
|
|
|
|
"react-dnd-html5-backend",
|
2019-04-18 00:50:03 +00:00
|
|
|
"@hot-loader/react-dom",
|
2017-11-26 20:45:40 +00:00
|
|
|
"react-redux",
|
2018-10-20 02:11:58 +00:00
|
|
|
"react-sortable-hoc",
|
2017-11-26 20:45:40 +00:00
|
|
|
"react-tabs",
|
|
|
|
"redux",
|
|
|
|
"redux-thunk",
|
|
|
|
"reselect",
|
|
|
|
"srp-js",
|
2020-08-11 04:57:35 +00:00
|
|
|
"styled-components",
|
2020-04-26 20:33:39 +00:00
|
|
|
"swagger-ui-react",
|
2018-10-20 02:11:58 +00:00
|
|
|
"vkbeautify",
|
|
|
|
"zprint-clj"
|
2017-11-26 20:45:40 +00:00
|
|
|
],
|
|
|
|
"dependencies": {
|
2019-04-18 00:50:03 +00:00
|
|
|
"@hot-loader/react-dom": "^16.8.6",
|
2020-04-26 20:33:39 +00:00
|
|
|
"@stoplight/spectral": "^4.1.1",
|
2021-02-26 19:57:19 +00:00
|
|
|
"analytics-node": "^4.0.1",
|
2019-11-27 15:52:20 +00:00
|
|
|
"aws4": "^1.9.0",
|
2021-02-16 15:45:21 +00:00
|
|
|
"axios": "^0.21.1",
|
2021-02-02 22:23:42 +00:00
|
|
|
"class-autobind-decorator": "^3.0.1",
|
2017-11-26 20:45:40 +00:00
|
|
|
"classnames": "^2.2.5",
|
|
|
|
"clone": "^2.1.0",
|
2019-12-20 20:03:44 +00:00
|
|
|
"codemirror": "^5.50.0",
|
2019-11-27 15:52:20 +00:00
|
|
|
"codemirror-graphql": "^0.11.3",
|
2020-02-04 19:46:36 +00:00
|
|
|
"color": "^3.1.2",
|
2017-11-26 20:45:40 +00:00
|
|
|
"deep-equal": "^1.0.1",
|
2020-07-28 05:18:26 +00:00
|
|
|
"electron-context-menu": "^2.2.0",
|
2020-10-13 16:05:41 +00:00
|
|
|
"electron-log": "^4.2.4",
|
2020-04-26 20:33:39 +00:00
|
|
|
"electron-updater": "^4.2.0",
|
2020-07-28 05:18:26 +00:00
|
|
|
"font-scanner": "^0.1.2",
|
2020-07-22 13:13:06 +00:00
|
|
|
"framer-motion": "^1.11.1",
|
2018-03-29 17:23:49 +00:00
|
|
|
"fs-extra": "^5.0.0",
|
2018-05-23 06:39:01 +00:00
|
|
|
"fuzzysort": "^1.1.1",
|
2019-11-27 15:52:20 +00:00
|
|
|
"graphql": "^14.5.8",
|
2017-11-26 20:45:40 +00:00
|
|
|
"hawk": "^6.0.2",
|
2020-12-16 22:24:18 +00:00
|
|
|
"highlight.js": "^10.4.1",
|
2017-11-26 20:45:40 +00:00
|
|
|
"hkdf": "^0.0.2",
|
|
|
|
"html-entities": "^1.2.0",
|
2020-09-26 13:07:33 +00:00
|
|
|
"httpsnippet": "^1.23.0",
|
2017-11-26 20:45:40 +00:00
|
|
|
"iconv-lite": "^0.4.15",
|
2021-04-21 23:07:33 +00:00
|
|
|
"insomnia-components": "2.2.35-beta.1",
|
|
|
|
"insomnia-cookies": "2.2.35-beta.1",
|
|
|
|
"insomnia-importers": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-base64": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-cookie-jar": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-core-themes": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-file": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-hash": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-jsonpath": "2.2.35-beta.1",
|
2021-03-29 21:03:21 +00:00
|
|
|
"insomnia-plugin-kong-bundle": "^2.2.33",
|
2021-04-21 23:07:33 +00:00
|
|
|
"insomnia-plugin-now": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-os": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-prompt": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-request": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-response": "2.2.35-beta.1",
|
|
|
|
"insomnia-plugin-uuid": "2.2.35-beta.1",
|
|
|
|
"insomnia-prettify": "2.2.35-beta.1",
|
|
|
|
"insomnia-testing": "2.2.35-beta.1",
|
|
|
|
"insomnia-url": "2.2.35-beta.1",
|
|
|
|
"insomnia-xpath": "2.2.35-beta.1",
|
2021-04-01 01:36:11 +00:00
|
|
|
"isomorphic-git": "^1.8.1",
|
2021-01-18 04:56:53 +00:00
|
|
|
"js-yaml": "^3.14.1",
|
2020-06-25 22:50:39 +00:00
|
|
|
"jshint": "^2.11.1",
|
2020-03-09 18:20:22 +00:00
|
|
|
"json-order": "^1.1.0",
|
2018-11-06 02:35:53 +00:00
|
|
|
"jsonlint": "^1.6.3",
|
2019-08-07 16:17:50 +00:00
|
|
|
"jsonpath": "^1.0.2",
|
2018-10-20 02:11:58 +00:00
|
|
|
"jwt-authentication": "^0.4.0",
|
2018-01-11 11:47:25 +00:00
|
|
|
"marked": "^0.3.9",
|
2018-04-20 23:06:16 +00:00
|
|
|
"mime-types": "^2.1.18",
|
2017-11-26 20:45:40 +00:00
|
|
|
"mkdirp": "^0.5.1",
|
2018-03-06 01:09:36 +00:00
|
|
|
"moment": "^2.21.0",
|
2018-10-20 02:11:58 +00:00
|
|
|
"multiparty": "^4.2.1",
|
2017-11-26 20:45:40 +00:00
|
|
|
"nedb": "^1.8.0",
|
2020-09-18 13:18:38 +00:00
|
|
|
"node-forge": "^0.10.0",
|
2021-03-24 20:54:30 +00:00
|
|
|
"node-libcurl": "2.3.2",
|
2019-11-27 15:52:20 +00:00
|
|
|
"nunjucks": "^3.2.0",
|
2017-11-26 20:45:40 +00:00
|
|
|
"oauth-1.0a": "^2.2.2",
|
2020-10-01 18:49:05 +00:00
|
|
|
"objectpath": "^2.0.0",
|
2021-04-21 23:07:33 +00:00
|
|
|
"openapi-2-kong": "2.2.35-beta.1",
|
2020-09-17 18:05:53 +00:00
|
|
|
"papaparse": "^5.2.0",
|
2020-09-21 08:45:36 +00:00
|
|
|
"pdfjs-dist": "^2.5.207",
|
2018-04-20 23:06:16 +00:00
|
|
|
"prop-types": "^15.6.1",
|
2019-04-18 00:50:03 +00:00
|
|
|
"react": "^16.8.6",
|
2020-04-26 20:33:39 +00:00
|
|
|
"react-animated-tree": "^1.0.10",
|
2019-04-18 00:50:03 +00:00
|
|
|
"react-dnd": "^7.4.5",
|
|
|
|
"react-dnd-html5-backend": "^7.4.4",
|
|
|
|
"react-redux": "^7.0.1",
|
2018-06-08 20:47:49 +00:00
|
|
|
"react-sortable-hoc": "^0.8.3",
|
2020-04-26 20:33:39 +00:00
|
|
|
"react-tabs": "^3.0.0",
|
2019-04-18 00:50:03 +00:00
|
|
|
"redux": "^4.0.1",
|
|
|
|
"redux-thunk": "^2.3.0",
|
|
|
|
"reselect": "^4.0.0",
|
2018-04-26 11:52:16 +00:00
|
|
|
"srp-js": "^0.2.1",
|
Sidebar code mirror interactions (#2433)
* Lifting path clicked up to sidebar root
* Abstracting out path click to story (and app)
* Adding click to scroll, updating sidebar components
* Scroll fix for sidebar
* Cleaning up log
* PR feedback
* PR Feedback, fix schemas & request body rendering
* PR feedback & cleanup
* Prop value checking, selection positioning
* Pulling remote import
* Styled components into insomnia-app, obj destructuring, typing
* Refactoring item path mapping
* Abstracting the mapping of specs for position, bumping down styled components version.
* Directly passing ... rest args initial work
* Pulling logs, removing array concatenation
* Pulling click handler out of render method
* Rolling position mapping into scroll positining method
* Opening up type, could be number/string/array
* Update package-lock.json
* Grabbing height from window, typing API vars, checking path
* Creating scroll method dedicated to design mode
* Moving typing of spec related content to Props def.
* Type checking on sections, invalid section component
2020-08-03 17:57:12 +00:00
|
|
|
"styled-components": "^4.4.1",
|
2020-04-26 20:33:39 +00:00
|
|
|
"swagger-ui-react": "^3.24.3",
|
2017-11-26 20:45:40 +00:00
|
|
|
"tough-cookie": "^2.3.1",
|
2020-04-26 20:33:39 +00:00
|
|
|
"url-join": "^4.0.1",
|
2017-11-26 20:45:40 +00:00
|
|
|
"uuid": "^3.0.0",
|
|
|
|
"vkbeautify": "^0.99.1",
|
2018-09-30 19:25:44 +00:00
|
|
|
"whatwg-fetch": "^2.0.1",
|
2019-04-18 03:50:23 +00:00
|
|
|
"yaml": "^1.5.0",
|
Sidebar code mirror interactions (#2433)
* Lifting path clicked up to sidebar root
* Abstracting out path click to story (and app)
* Adding click to scroll, updating sidebar components
* Scroll fix for sidebar
* Cleaning up log
* PR feedback
* PR Feedback, fix schemas & request body rendering
* PR feedback & cleanup
* Prop value checking, selection positioning
* Pulling remote import
* Styled components into insomnia-app, obj destructuring, typing
* Refactoring item path mapping
* Abstracting the mapping of specs for position, bumping down styled components version.
* Directly passing ... rest args initial work
* Pulling logs, removing array concatenation
* Pulling click handler out of render method
* Rolling position mapping into scroll positining method
* Opening up type, could be number/string/array
* Update package-lock.json
* Grabbing height from window, typing API vars, checking path
* Creating scroll method dedicated to design mode
* Moving typing of spec related content to Props def.
* Type checking on sections, invalid section component
2020-08-03 17:57:12 +00:00
|
|
|
"yaml-source-map": "^2.1.1",
|
2019-08-02 19:37:25 +00:00
|
|
|
"zprint-clj": "0.2.0"
|
2017-11-26 20:45:40 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2019-04-18 00:50:03 +00:00
|
|
|
"@babel/plugin-proposal-class-properties": "^7.4.0",
|
2020-04-28 18:29:51 +00:00
|
|
|
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
2020-11-11 22:44:03 +00:00
|
|
|
"@develohpanda/fluent-builder": "^2.1.2",
|
2020-11-10 00:30:27 +00:00
|
|
|
"@grpc/grpc-js": "^1.1.8",
|
|
|
|
"@grpc/proto-loader": "^0.5.5",
|
2020-04-26 21:29:51 +00:00
|
|
|
"@octokit/rest": "^17.6.0",
|
2020-01-06 18:33:47 +00:00
|
|
|
"@storybook/addon-info": "^5.2.8",
|
2019-11-26 17:22:21 +00:00
|
|
|
"@storybook/react": "^5.2.6",
|
2020-12-09 04:42:50 +00:00
|
|
|
"@testing-library/dom": "^7.28.1",
|
2020-11-11 22:44:03 +00:00
|
|
|
"@testing-library/jest-dom": "^5.11.5",
|
|
|
|
"@testing-library/react": "^11.1.1",
|
2020-11-16 22:01:50 +00:00
|
|
|
"@testing-library/react-hooks": "^3.4.2",
|
2017-11-26 20:45:40 +00:00
|
|
|
"concurrently": "^3.5.0",
|
|
|
|
"cross-env": "^2.0.0",
|
2019-04-18 00:50:03 +00:00
|
|
|
"css-loader": "^2.1.1",
|
2021-03-15 20:23:56 +00:00
|
|
|
"electron": "9.3.5",
|
2020-04-26 20:33:39 +00:00
|
|
|
"electron-builder": "^22.5.1",
|
|
|
|
"electron-builder-squirrel-windows": "^22.5.1",
|
|
|
|
"electron-notarize": "^0.3.0",
|
2019-10-09 20:31:42 +00:00
|
|
|
"fast-glob": "^3.1.0",
|
2019-04-18 00:50:03 +00:00
|
|
|
"file-loader": "^3.0.1",
|
Differential (Additive/Removal) patching when switching between design / debug (#3124)
* fix(import) do differential patching for design activity imports
This patch adds differential patching for imports that occur during the switching between
design and debug tabs inside of Designer. As reported through #2971, and others, this patch
favors existing data over imported data, values that exist already on the document will remain
unchanged, only new values (including array based values) will be added / removed.
This also includes a bypass feature for urls, currently these options are not exposed through
the interface but could be. This feature is an object to allow for future properties for
preference-based patching.
- Adds `options.enableDiffBasedPatching` and `options.enableDiffDeep` to `importRaw` for backwards compat.
- Adds `options.bypassDiffProps.url` for url bypassing and use an object for future items.
- Adds `diffPatchObj` based on differential patching for objects (works with arrays as well).
Future ideas:
- `hasBeenModifiedByUser` property map object to allow changing properties that haven't been touched by the user with options.
fixes: #2971, #2882, #3038, #2442
* adds some basic tests
- also adds jest (which was (mistakenly) not there before)
- does not call `.hasOwnProperty` directly, per https://eslint.org/docs/rules/no-prototype-builtins (which, we will add more formally at a later date)
* don't special-case workspaces
this ensures the behavior of the initial PR is more preserved
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-03-03 17:57:09 +00:00
|
|
|
"jest": "^26.0.1",
|
2018-10-17 17:26:19 +00:00
|
|
|
"less": "^3.8.1",
|
2018-04-18 18:20:49 +00:00
|
|
|
"less-loader": "^4.1.0",
|
2020-02-06 13:41:56 +00:00
|
|
|
"license-checker": "^25.0.1",
|
2017-11-26 20:45:40 +00:00
|
|
|
"ncp": "^2.0.0",
|
2020-04-26 20:33:39 +00:00
|
|
|
"prompt-run": "^1.4.5",
|
2021-02-02 22:23:42 +00:00
|
|
|
"react-hot-loader": "^4.13.0",
|
2020-11-16 22:01:50 +00:00
|
|
|
"react-test-renderer": "^16.14.0",
|
2021-02-25 20:13:37 +00:00
|
|
|
"redux-mock-store": "^1.5.4",
|
2020-06-16 19:46:13 +00:00
|
|
|
"source-map-loader": "^1.0.0",
|
2020-08-24 20:40:40 +00:00
|
|
|
"spectron": "^11.1.0",
|
2019-04-18 00:50:03 +00:00
|
|
|
"style-loader": "^0.23.1",
|
|
|
|
"url-loader": "^1.1.2",
|
2021-01-28 10:46:19 +00:00
|
|
|
"val-loader": "^2.1.2",
|
2020-08-10 19:12:53 +00:00
|
|
|
"webpack": "^4.44.1",
|
2020-07-28 05:18:26 +00:00
|
|
|
"webpack-cli": "^3.3.12",
|
2020-08-10 19:12:53 +00:00
|
|
|
"webpack-dev-server": "^3.11.0",
|
2018-04-18 18:20:49 +00:00
|
|
|
"webpack-target-electron-renderer": "^0.4.0",
|
2018-10-20 02:11:58 +00:00
|
|
|
"worker-loader": "^2.0.0"
|
2017-11-26 20:45:40 +00:00
|
|
|
}
|
|
|
|
}
|