UNPKG

13.7 kBJSONView Raw
1{
2 "title": "Assert Helpers",
3 "name": "assert-helpers",
4 "version": "11.12.0",
5 "license": "Artistic-2.0",
6 "description": "Common utilities and helpers to make testing assertions easier",
7 "homepage": "https://github.com/bevry/assert-helpers",
8 "funding": "https://bevry.me/fund",
9 "repository": {
10 "type": "git",
11 "url": "git+https://github.com/bevry/assert-helpers.git"
12 },
13 "bugs": {
14 "url": "https://github.com/bevry/assert-helpers/issues"
15 },
16 "keywords": [
17 "assert",
18 "browser",
19 "deno",
20 "deno-edition",
21 "deno-entry",
22 "denoland",
23 "es2017",
24 "es2022",
25 "es5",
26 "expect",
27 "module",
28 "node",
29 "test",
30 "testing",
31 "tests",
32 "typed",
33 "types",
34 "typescript",
35 "util",
36 "utilities"
37 ],
38 "badges": {
39 "list": [
40 "githubworkflow",
41 "npmversion",
42 "npmdownloads",
43 "---",
44 "githubsponsors",
45 "thanksdev",
46 "patreon",
47 "liberapay",
48 "buymeacoffee",
49 "opencollective",
50 "crypto",
51 "paypal",
52 "---",
53 "discord",
54 "twitch"
55 ],
56 "config": {
57 "githubWorkflow": "bevry",
58 "githubSponsorsUsername": "balupton",
59 "thanksdevGithubUsername": "bevry",
60 "buymeacoffeeUsername": "balupton",
61 "cryptoURL": "https://bevry.me/crypto",
62 "flattrUsername": "balupton",
63 "liberapayUsername": "bevry",
64 "opencollectiveUsername": "bevry",
65 "patreonUsername": "bevry",
66 "paypalURL": "https://bevry.me/paypal",
67 "wishlistURL": "https://bevry.me/wishlist",
68 "discordServerID": "1147436445783560193",
69 "discordServerInvite": "nQuXddV7VP",
70 "twitchUsername": "balupton",
71 "githubUsername": "bevry",
72 "githubRepository": "assert-helpers",
73 "githubSlug": "bevry/assert-helpers",
74 "npmPackageName": "assert-helpers"
75 }
76 },
77 "author": "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)",
78 "authors": [
79 "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."
80 ],
81 "maintainers": [
82 "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."
83 ],
84 "contributors": [
85 "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)"
86 ],
87 "sponsors": [
88 "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher",
89 "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.",
90 "Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.",
91 "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
92 "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
93 "Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.",
94 "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"
95 ],
96 "donors": [
97 "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)",
98 "Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)",
99 "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)",
100 "Chad (https://opencollective.com/chad8)",
101 "Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)",
102 "dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)",
103 "Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)",
104 "entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)",
105 "GitHub (https://github.com/about) (https://github.com/github)",
106 "Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)",
107 "Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)",
108 "Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)",
109 "Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)",
110 "Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)",
111 "Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)",
112 "Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)",
113 "Pleo (https://www.pleo.io) (https://github.com/pleo-io)",
114 "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
115 "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
116 "Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)",
117 "Sentry (https://sentry.io) (https://github.com/getsentry)",
118 "ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)",
119 "Skunk Team (https://skunk.team) (https://github.com/skunkteam)",
120 "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)",
121 "WriterJohnBuck (https://github.com/WriterJohnBuck)"
122 ],
123 "engines": {
124 "node": ">=4"
125 },
126 "editions": [
127 {
128 "description": "TypeScript source code with Import for modules",
129 "directory": "source",
130 "entry": "index.ts",
131 "tags": [
132 "source",
133 "typescript",
134 "import"
135 ],
136 "engines": false
137 },
138 {
139 "description": "TypeScript compiled against ES2022 for web browsers with Import for modules",
140 "directory": "edition-browsers",
141 "entry": "index.js",
142 "tags": [
143 "compiled",
144 "javascript",
145 "import"
146 ],
147 "engines": {
148 "node": false,
149 "browsers": "defaults"
150 }
151 },
152 {
153 "description": "TypeScript compiled against ES2022 for Node.js 14 || 16 || 18 || 20 || 21 with Require for modules",
154 "directory": "edition-es2022",
155 "entry": "index.js",
156 "tags": [
157 "compiled",
158 "javascript",
159 "es2022",
160 "require"
161 ],
162 "engines": {
163 "node": "14 || 16 || 18 || 20 || 21",
164 "browsers": false
165 }
166 },
167 {
168 "description": "TypeScript compiled against ES2017 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
169 "directory": "edition-es2017",
170 "entry": "index.js",
171 "tags": [
172 "compiled",
173 "javascript",
174 "es2017",
175 "require"
176 ],
177 "engines": {
178 "node": "6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
179 "browsers": false
180 }
181 },
182 {
183 "description": "TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
184 "directory": "edition-es5",
185 "entry": "index.js",
186 "tags": [
187 "compiled",
188 "javascript",
189 "es5",
190 "require"
191 ],
192 "engines": {
193 "node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
194 "browsers": false
195 }
196 },
197 {
198 "description": "TypeScript compiled against ES2017 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules",
199 "directory": "edition-es2017-esm",
200 "entry": "index.js",
201 "tags": [
202 "compiled",
203 "javascript",
204 "es2017",
205 "import"
206 ],
207 "engines": {
208 "node": "12 || 14 || 16 || 18 || 20 || 21",
209 "browsers": false
210 }
211 },
212 {
213 "description": "TypeScript compiled Types with Import for modules",
214 "directory": "edition-types",
215 "entry": "index.d.ts",
216 "tags": [
217 "compiled",
218 "types",
219 "import"
220 ],
221 "engines": false
222 },
223 {
224 "description": "TypeScript source code made to be compatible with Deno",
225 "directory": "edition-deno",
226 "entry": "index.ts",
227 "tags": [
228 "typescript",
229 "import",
230 "deno"
231 ],
232 "engines": {
233 "deno": true,
234 "browsers": true
235 }
236 }
237 ],
238 "types": "edition-types/index.d.ts",
239 "type": "module",
240 "main": "index.cjs",
241 "exports": {
242 "node": {
243 "types": "./edition-types/index.d.ts",
244 "import": "./edition-es2017-esm/index.js",
245 "default": "./index.cjs",
246 "require": "./edition-es2022/index.js"
247 },
248 "browser": {
249 "types": "./edition-types/index.d.ts",
250 "import": "./edition-browsers/index.js"
251 }
252 },
253 "deno": "edition-deno/index.ts",
254 "browser": "edition-browsers/index.js",
255 "module": "edition-browsers/index.js",
256 "dependencies": {
257 "@bevry/ansi": "^6.9.0",
258 "editions": "^6.20.0",
259 "errlop": "^8.4.0"
260 },
261 "devDependencies": {
262 "@types/node": "^20.10.5",
263 "@typescript-eslint/eslint-plugin": "^6.16.0",
264 "@typescript-eslint/parser": "^6.16.0",
265 "eslint": "^8.56.0",
266 "eslint-config-bevry": "^5.3.0",
267 "eslint-config-prettier": "^9.1.0",
268 "eslint-plugin-prettier": "^5.1.2",
269 "filedirname": "^3.3.0",
270 "kava": "^7.6.0",
271 "make-deno-edition": "^2.2.0",
272 "prettier": "^3.1.1",
273 "projectz": "^4.1.1",
274 "typedoc": "^0.25.4",
275 "typescript": "5.3.3",
276 "valid-directory": "^4.8.0",
277 "valid-module": "^2.6.0"
278 },
279 "scripts": {
280 "our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
281 "our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2017 && npm run our:compile:edition-es2017-esm && npm run our:compile:edition-es2022 && npm run our:compile:edition-es5 && npm run our:compile:edition-types",
282 "our:compile:deno": "make-deno-edition --attempt",
283 "our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )",
284 "our:compile:edition-es2017": "tsc --module commonjs --target ES2017 --outDir ./edition-es2017 --project tsconfig.json && ( test ! -d edition-es2017/source || ( mv edition-es2017/source edition-temp && rm -rf edition-es2017 && mv edition-temp edition-es2017 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2017/package.json",
285 "our:compile:edition-es2017-esm": "tsc --module ESNext --target ES2017 --outDir ./edition-es2017-esm --project tsconfig.json && ( test ! -d edition-es2017-esm/source || ( mv edition-es2017-esm/source edition-temp && rm -rf edition-es2017-esm && mv edition-temp edition-es2017-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2017-esm/package.json",
286 "our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",
287 "our:compile:edition-es5": "tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json",
288 "our:compile:edition-types": "tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )",
289 "our:deploy": "printf '%s\n' 'no need for this project'",
290 "our:meta": "npm run our:meta:docs && npm run our:meta:projectz",
291 "our:meta:docs": "npm run our:meta:docs:typedoc",
292 "our:meta:docs:typedoc": "rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
293 "our:meta:projectz": "projectz --offline",
294 "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",
295 "our:release:check-changelog": "cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)",
296 "our:release:check-dirty": "git diff --exit-code",
297 "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
298 "our:release:push": "git push origin && git push origin --tags",
299 "our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"",
300 "our:setup": "npm run our:setup:install",
301 "our:setup:install": "npm install",
302 "our:test": "npm run our:verify && npm test",
303 "our:verify": "npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier",
304 "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
305 "our:verify:module": "valid-module",
306 "our:verify:prettier": "prettier --write .",
307 "test": "node ./test.cjs"
308 },
309 "eslintConfig": {
310 "extends": [
311 "bevry"
312 ]
313 },
314 "prettier": {
315 "semi": false,
316 "singleQuote": true,
317 "trailingComma": "es5",
318 "endOfLine": "lf"
319 }
320}