1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

fix: compile for es2021

This commit is contained in:
James Cook 2021-12-12 14:19:24 +00:00
parent 0e5e762203
commit 33f235c7d7
3 changed files with 56 additions and 47 deletions

View file

@ -1,29 +1,31 @@
{
"name": "classcharts-api",
"version": "0.0.8",
"description": "",
"repository": {
"url": "https://github.com/jamesatjaminit/classcharts-api"
},
"main": "./dist/index.js",
"scripts": {
"prepare": "npm run build",
"build": "tsc",
"generateDocs": "pnpm typedoc --entryPointStrategy expand ./src"
},
"author": "",
"license": "ISC",
"dependencies": {
"undici": "^4.10.3"
},
"files": [
"dist/**",
"types.d.ts"
],
"devDependencies": {
"@types/node": "^16.11.10",
"typedoc": "^0.22.9",
"typescript": "^4.5.2"
},
"types": "./dist/index.d.ts"
}
"name": "classcharts-api",
"version": "0.0.10",
"description": "",
"repository": {
"url": "https://github.com/jamesatjaminit/classcharts-api"
},
"main": "./dist/index.js",
"scripts": {
"prepare": "npm run build",
"build": "tsc",
"generateDocs": "pnpm typedoc --entryPointStrategy expand ./src",
"test": "jest"
},
"author": "",
"license": "ISC",
"dependencies": {
"undici": "^4.11.3"
},
"files": [
"dist/**",
"types.d.ts"
],
"devDependencies": {
"@types/node": "^16.11.12",
"dotenv": "^10.0.0",
"typedoc": "^0.22.10",
"typescript": "^4.5.3"
},
"types": "./dist/index.d.ts"
}

43
pnpm-lock.yaml generated
View file

@ -1,23 +1,25 @@
lockfileVersion: 5.3
specifiers:
'@types/node': ^16.11.6
typedoc: ^0.22.7
typescript: ^4.4.4
undici: ^4.9.2
'@types/node': ^16.11.12
dotenv: ^10.0.0
typedoc: ^0.22.10
typescript: ^4.5.3
undici: ^4.11.3
dependencies:
undici: 4.9.2
undici: 4.11.3
devDependencies:
'@types/node': 16.11.6
typedoc: 0.22.7_typescript@4.4.4
typescript: 4.4.4
'@types/node': 16.11.12
dotenv: 10.0.0
typedoc: 0.22.10_typescript@4.5.3
typescript: 4.5.3
packages:
/@types/node/16.11.6:
resolution: {integrity: sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==}
/@types/node/16.11.12:
resolution: {integrity: sha512-+2Iggwg7PxoO5Kyhvsq9VarmPbIelXP070HMImEpbtGCoyWNINQj4wzjbQCXzdHTRXnqufutJb5KAURZANNBAw==}
dev: true
/balanced-match/1.0.2:
@ -35,6 +37,11 @@ packages:
resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=}
dev: true
/dotenv/10.0.0:
resolution: {integrity: sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==}
engines: {node: '>=10'}
dev: true
/fs.realpath/1.0.0:
resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=}
dev: true
@ -112,29 +119,29 @@ packages:
vscode-textmate: 5.2.0
dev: true
/typedoc/0.22.7_typescript@4.4.4:
resolution: {integrity: sha512-ndxxp+tU1Wczvdxp4u2/PvT1qjD6hdFdSdehpORHjE+JXmMkl2bftXCR0upHmsnesBG7VCcr8vfgloGHIH8glQ==}
/typedoc/0.22.10_typescript@4.5.3:
resolution: {integrity: sha512-hQYZ4WtoMZ61wDC6w10kxA42+jclWngdmztNZsDvIz7BMJg7F2xnT+uYsUa7OluyKossdFj9E9Ye4QOZKTy8SA==}
engines: {node: '>= 12.10.0'}
hasBin: true
peerDependencies:
typescript: 4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x
typescript: 4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x || 4.5.x
dependencies:
glob: 7.2.0
lunr: 2.3.9
marked: 3.0.8
minimatch: 3.0.4
shiki: 0.9.12
typescript: 4.4.4
typescript: 4.5.3
dev: true
/typescript/4.4.4:
resolution: {integrity: sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==}
/typescript/4.5.3:
resolution: {integrity: sha512-eVYaEHALSt+s9LbvgEv4Ef+Tdq7hBiIZgii12xXJnukryt3pMgJf6aKhoCZ3FWQsu6sydEnkg11fYXLzhLBjeQ==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true
/undici/4.9.2:
resolution: {integrity: sha512-O8D4fp0cT7/bOMe7XE2oc0PaBCyc0GsahzQ+nMSeWW0o0+EB2ykXYNhU0kY2nKP589zzS91pLj979NtJrBRwFQ==}
/undici/4.11.3:
resolution: {integrity: sha512-bLOCH2juB9gAkqE4a4zb+eMGhI8XD4SH1tF9Qu9J3Y8TA379Xxg7lWRMiDvc36pRWV1z9/HICv05fXkeeLw1Dg==}
engines: {node: '>=12.18'}
dev: false

View file

@ -9,7 +9,7 @@
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
"target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"target": "es2021", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */