|
4 | 4 | "publishConfig": {
|
5 | 5 | "access": "public"
|
6 | 6 | },
|
| 7 | + "type": "module", |
7 | 8 | "description": "Octokit plugin for GitHub's recommended request throttling",
|
8 | 9 | "scripts": {
|
9 | 10 | "build": "node scripts/build.mjs && tsc -p tsconfig.json",
|
10 | 11 | "lint": "prettier --check '{src,scripts,test}/**/*' '!*/generated/**' README.md package.json",
|
11 | 12 | "lint:fix": "prettier --write '{src,scripts,test}/**/*' '!*/generated/**' README.md package.json",
|
12 | 13 | "pretest": "npm run -s lint",
|
13 |
| - "test": "jest --coverage", |
| 14 | + "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --coverage", |
14 | 15 | "update-endpoints": "npm-run-all update-endpoints:*",
|
15 |
| - "update-endpoints:fetch-json": "node scripts/update-endpoints/fetch-json", |
16 |
| - "update-endpoints:code": "node scripts/update-endpoints/code", |
17 |
| - "validate:ts": "npm run build && tsc --noEmit --noImplicitAny --target es2020 --esModuleInterop --moduleResolution node test/typescript-validate.ts" |
| 16 | + "update-endpoints:fetch-json": "node scripts/update-endpoints/fetch-json.js", |
| 17 | + "update-endpoints:code": "node scripts/update-endpoints/code.js", |
| 18 | + "validate:ts": "tsc --noEmit --noImplicitAny --target es2022 --esModuleInterop --moduleResolution node16 --module node16 test/typescript-validate.ts" |
18 | 19 | },
|
19 | 20 | "repository": "github:octokit/plugin-throttling.js",
|
20 | 21 | "author": "Simon Grondin (http://github.com/SGrondin)",
|
21 | 22 | "license": "MIT",
|
22 | 23 | "dependencies": {
|
23 |
| - "@octokit/types": "^12.2.0", |
| 24 | + "@octokit/types": "^12.6.0", |
24 | 25 | "bottleneck": "^2.15.3"
|
25 | 26 | },
|
26 | 27 | "peerDependencies": {
|
27 |
| - "@octokit/core": "^5.0.0" |
| 28 | + "@octokit/core": "^6.0.0" |
28 | 29 | },
|
29 | 30 | "devDependencies": {
|
30 |
| - "@octokit/core": "^5.0.0", |
31 |
| - "@octokit/request-error": "^5.0.0", |
32 |
| - "@octokit/tsconfig": "^2.0.0", |
| 31 | + "@octokit/core": "^6.0.0", |
| 32 | + "@octokit/request-error": "^6.0.1", |
| 33 | + "@octokit/tsconfig": "^3.0.0", |
33 | 34 | "@types/fetch-mock": "^7.3.1",
|
34 | 35 | "@types/jest": "^29.0.0",
|
35 | 36 | "@types/node": "^20.0.0",
|
36 | 37 | "esbuild": "^0.20.0",
|
37 |
| - "fetch-mock": "^9.0.0", |
| 38 | + "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", |
38 | 39 | "github-openapi-graphql-query": "^4.0.0",
|
39 | 40 | "glob": "^10.2.6",
|
40 | 41 | "jest": "^29.0.0",
|
|
45 | 46 | "typescript": "^5.0.0"
|
46 | 47 | },
|
47 | 48 | "jest": {
|
| 49 | + "extensionsToTreatAsEsm": [ |
| 50 | + ".ts" |
| 51 | + ], |
48 | 52 | "transform": {
|
49 | 53 | "^.+\\.(ts|tsx)$": [
|
50 | 54 | "ts-jest",
|
51 | 55 | {
|
52 |
| - "tsconfig": "test/tsconfig.test.json" |
| 56 | + "tsconfig": "test/tsconfig.test.json", |
| 57 | + "useESM": true |
53 | 58 | }
|
54 | 59 | ]
|
55 | 60 | },
|
|
60 | 65 | "functions": 100,
|
61 | 66 | "lines": 100
|
62 | 67 | }
|
| 68 | + }, |
| 69 | + "moduleNameMapper": { |
| 70 | + "^(.+)\\.jsx?$": "$1" |
63 | 71 | }
|
64 | 72 | },
|
65 | 73 | "release": {
|
|
0 commit comments