1 | {
|
2 | "name": "sinon",
|
3 | "description": "JavaScript test spies, stubs and mocks.",
|
4 | "keywords": [
|
5 | "sinon",
|
6 | "test",
|
7 | "testing",
|
8 | "unit",
|
9 | "stub",
|
10 | "spy",
|
11 | "fake",
|
12 | "time",
|
13 | "clock",
|
14 | "mock",
|
15 | "xhr",
|
16 | "assert"
|
17 | ],
|
18 | "version": "12.0.1",
|
19 | "homepage": "https://sinonjs.org/",
|
20 | "author": "Christian Johansen",
|
21 | "repository": {
|
22 | "type": "git",
|
23 | "url": "http://github.com/sinonjs/sinon.git"
|
24 | },
|
25 | "bugs": {
|
26 | "url": "http://github.com/sinonjs/sinon/issues"
|
27 | },
|
28 | "funding": {
|
29 | "type": "opencollective",
|
30 | "url": "https://opencollective.com/sinon"
|
31 | },
|
32 | "license": "BSD-3-Clause",
|
33 | "scripts": {
|
34 | "test-node": "mocha --recursive -R dot \"test/**/*-test.js\"",
|
35 | "test-dev": "npm run test-node -- --watch -R min",
|
36 | "test-headless": "mochify --no-detect-globals --recursive -R dot --grep WebWorker --invert --plugin [ proxyquire-universal ] \"test/**/*-test.js\"",
|
37 | "test-coverage": "nyc npm run test-headless -- --transform [ babelify --ignore [ test ] --plugins [ babel-plugin-istanbul ] ]",
|
38 | "test-cloud": "npm run test-headless -- --wd",
|
39 | "test-webworker": "mochify --no-detect-globals --https-server 8080 --no-request-interception test/webworker/webworker-support-assessment.js",
|
40 | "test-esm": "mocha -r esm test/es2015/module-support-assessment-test.es6",
|
41 | "test-esm-bundle": "node test/es2015/check-esm-bundle-is-runnable.js",
|
42 | "test-docker-image": "docker-compose up",
|
43 | "test-runnable-examples": "docs/release-source/release/examples/run-test.sh",
|
44 | "test": "npm run test-node && npm run test-headless && npm run test-webworker && npm run test-esm",
|
45 | "check-dependencies": "dependency-check package.json --no-dev --ignore-module esm",
|
46 | "build": "node ./build.cjs",
|
47 | "build-docs": "cd docs; bundle exec jekyll build",
|
48 | "serve-docs": "cd docs; bundle exec jekyll serve --incremental --verbose",
|
49 | "lint": "eslint '**/*.{js,cjs,mjs}'",
|
50 | "pretest-webworker": "npm run build",
|
51 | "prebuild": "rimraf pkg && npm run check-dependencies",
|
52 | "postbuild": "npm run test-esm-bundle",
|
53 | "prebuild-docs": "./scripts/update-compatibility.js",
|
54 | "prepublishOnly": "npm run build",
|
55 | "prettier:check": "prettier --check '**/*.{js,css,md}'",
|
56 | "prettier:write": "prettier --write '**/*.{js,css,md}'",
|
57 | "preversion": "./scripts/preversion.sh",
|
58 | "version": "changes --commits --footer",
|
59 | "postversion": "./scripts/postversion.sh"
|
60 | },
|
61 | "nyc": {
|
62 | "instrument": false,
|
63 | "temp-dir": "coverage/.nyc_output",
|
64 | "reporter": [
|
65 | "text",
|
66 | "lcovonly"
|
67 | ]
|
68 | },
|
69 | "lint-staged": {
|
70 | "*.{js,css,md}": "prettier --check",
|
71 | "*.js": "eslint --quiet",
|
72 | "*.mjs": "eslint --quiet --ext mjs --parser-options=sourceType:module"
|
73 | },
|
74 | "dependencies": {
|
75 | "@sinonjs/commons": "^1.8.3",
|
76 | "@sinonjs/fake-timers": "^8.1.0",
|
77 | "@sinonjs/samsam": "^6.0.2",
|
78 | "diff": "^5.0.0",
|
79 | "nise": "^5.1.0",
|
80 | "supports-color": "^7.2.0"
|
81 | },
|
82 | "devDependencies": {
|
83 | "@babel/core": "^7.14.3",
|
84 | "@sinonjs/eslint-config": "^4.0.2",
|
85 | "@sinonjs/eslint-plugin-no-prototype-methods": "^0.1.1",
|
86 | "@sinonjs/referee": "^8.0.2",
|
87 | "@studio/changes": "^2.2.0",
|
88 | "babel-plugin-istanbul": "^6.0.0",
|
89 | "babelify": "^10.0.0",
|
90 | "browserify": "^16.5.2",
|
91 | "debug": "^4.3.1",
|
92 | "dependency-check": "^4.1.0",
|
93 | "esm": "^3.2.25",
|
94 | "husky": "^6.0.0",
|
95 | "lint-staged": "^11.0.0",
|
96 | "mocha": "^8.4.0",
|
97 | "mochify": "^7.1.1",
|
98 | "nyc": "^15.1.0",
|
99 | "prettier": "^2.3.0",
|
100 | "proxyquire": "^2.1.3",
|
101 | "proxyquire-universal": "^3.0.1",
|
102 | "proxyquireify": "^3.2.1",
|
103 | "puppeteer": "^9.1.1",
|
104 | "rimraf": "^3.0.2",
|
105 | "shelljs": "^0.8.4"
|
106 | },
|
107 | "files": [
|
108 | "lib",
|
109 | "pkg",
|
110 | "scripts/support-sinon.js",
|
111 | "AUTHORS",
|
112 | "CONTRIBUTING.md",
|
113 | "CHANGELOG.md",
|
114 | "LICENSE",
|
115 | "README.md"
|
116 | ],
|
117 | "browser": "./lib/sinon.js",
|
118 | "main": "./lib/sinon.js",
|
119 | "module": "./pkg/sinon-esm.js",
|
120 | "exports": {
|
121 | "require": "./lib/sinon.js",
|
122 | "import": "./pkg/sinon-esm.js"
|
123 | },
|
124 | "type": "module",
|
125 | "cdn": "./pkg/sinon.js",
|
126 | "jsdelivr": "./pkg/sinon.js",
|
127 | "esm": {
|
128 | "cjs": {
|
129 | "mutableNamespace": false,
|
130 | "cache": true
|
131 | },
|
132 | "mode": "auto"
|
133 | },
|
134 | "husky": {
|
135 | "hooks": {
|
136 | "pre-commit": "lint-staged"
|
137 | }
|
138 | }
|
139 | }
|