-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
116 lines (116 loc) · 3.92 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"name": "@exness-tech/mock-xhr-request",
"version": "1.0.7",
"description": "Mock axios requests from the browser console",
"repository": {
"type": "git",
"url": "https://github.com/exness/mock-xhr-request"
},
"license": "MIT",
"author": "Sergey Popov <prototype944953@gmail.com>",
"homepage": "https://github.com/exness/mock-xhr-request",
"files": [
"esm",
"lib",
"lazy"
],
"exports": {
".": {
"types": "./esm/index.d.ts",
"module": "./esm/index.js",
"node": "./lib/index.js",
"default": "./lib/index.js"
},
"./lazy": {
"types": "./esm/lazy.d.ts",
"module": "./esm/lazy.js",
"default": "./lib/lazy.js",
"node": "./lib/lazy.js"
},
"./package.json": "./package.json"
},
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"module": "esm/index.js",
"sideEffects": false,
"scripts": {
"prepack": "yarn build",
"handle-lazy": "mkdir -p ./lazy && cp ./esm/*.d.ts ./lazy && mv ./esm/lazy.d.ts ./lazy/index.d.ts && rimraf ./lazy/lazy.d.ts",
"build": "yarn clean && yarn build-js && yarn build-esm && yarn handle-lazy",
"build-js": "yarn compile-js && yarn create-types-js && rimraf lib/**/__tests__",
"build-esm": "yarn compile-esm && yarn create-types-esm && rimraf esm/**/__tests__",
"compile-js": "cross-env BABEL_ENV=commonjs babel src --extensions .ts,.tsx,.js -d lib/ src/ --ignore ./**/*/__tests__",
"compile-esm": "cross-env BABEL_ENV=esm babel src --extensions .ts,.tsx,.js -d esm/ src/ --ignore ./**/*/__tests__",
"create-types-js": "tsc --emitDeclarationOnly -outDir lib",
"create-types-esm": "tsc --emitDeclarationOnly -outDir esm",
"clean": "rimraf esm && rimraf lib && rimraf lazy",
"prettier": "prettier --write 'src/**/*.{ts,js}'",
"eslint": "./node_modules/.bin/eslint --max-warnings 0 src",
"type-check": "tsc --noEmit",
"test": "jest",
"prepare": "husky install"
},
"keywords": [
"mock",
"mock-xhr",
"mock-xhr-request",
"axios",
"mock-request"
],
"husky": {
"hooks": {
"pre-commit": "yarn type-check && yarn prettier && yarn eslint",
"pre-push": "yarn test",
"prepare-commit-msg": "./git-commit-message.sh"
}
},
"dependencies": {
"fast-deep-equal": "^3.1.3",
"is-buffer": "^2.0.5"
},
"peerDependencies": {
"axios": ">= 0.17.0"
},
"devDependencies": {
"@babel/cli": "^7.15.4",
"@babel/core": "^7.15.5",
"@babel/generator": "^7.15.4",
"@babel/node": "^7.15.4",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-decorators": "^7.15.4",
"@babel/plugin-proposal-export-default-from": "^7.14.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
"@babel/plugin-proposal-object-rest-spread": "^7.15.6",
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-regenerator": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.6",
"@babel/preset-typescript": "^7.15.0",
"@types/jest": "^27.0.1",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"axios": "^1.2.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^27.2.0",
"babel-loader": "^8.2.2",
"babel-plugin-parameter-decorator": "^1.0.16",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"babel-preset-jest": "^27.2.0",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-flowtype": "^5.9.2",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.0",
"husky": "^8.0.3",
"jest": "^27.1.0",
"jest-environment-jsdom": "^27.2.0",
"lint-staged": "^11.1.2",
"prettier": "^2.4.0",
"rimraf": "^3.0.2",
"typescript": "^4.4.3"
}
}