chore: update deps and config

This commit is contained in:
dpiercey 2024-01-31 10:48:58 -07:00 committed by Dylan Piercey
parent 20921a8040
commit 0186565276
13 changed files with 266 additions and 217 deletions

View File

@ -1,9 +1,5 @@
{
"$schema": "https://json.schemastore.org/lintstagedrc.schema.json",
"*.{ts,js}": ["eslint --fix", "prettier --write --with-node-modules"],
"*.{json,md,css}": ["prettier --write --with-node-modules"],
"./package.json": [
"prettier --write --with-node-modules",
"sort-package-json --quiet"
]
"*.{json,md,css}": ["prettier --write --with-node-modules"]
}

View File

@ -10,9 +10,8 @@ __snapshots__
CHANGELOG.md
coverage
dist
fixtures
input.*
node_modules
node_modules
package-lock.json
package.json
tsconfig.json
snapshots

View File

@ -8,7 +8,7 @@
"name": "*",
"total": {
"min": 12923,
"gzip": 5520,
"gzip": 5527,
"brotli": 5018
}
},
@ -21,12 +21,12 @@
},
"runtime": {
"min": 4123,
"gzip": 1905,
"gzip": 1920,
"brotli": 1705
},
"total": {
"min": 4474,
"gzip": 2179,
"gzip": 2194,
"brotli": 1939
}
},
@ -34,17 +34,17 @@
"name": "counter 💧",
"user": {
"min": 204,
"gzip": 178,
"gzip": 179,
"brotli": 154
},
"runtime": {
"min": 2664,
"gzip": 1370,
"gzip": 1363,
"brotli": 1223
},
"total": {
"min": 2868,
"gzip": 1548,
"gzip": 1542,
"brotli": 1377
}
},
@ -52,17 +52,17 @@
"name": "comments",
"user": {
"min": 1216,
"gzip": 708,
"gzip": 703,
"brotli": 638
},
"runtime": {
"min": 7536,
"gzip": 3491,
"gzip": 3480,
"brotli": 3142
},
"total": {
"min": 8752,
"gzip": 4199,
"gzip": 4183,
"brotli": 3780
}
},
@ -70,17 +70,17 @@
"name": "comments 💧",
"user": {
"min": 988,
"gzip": 591,
"gzip": 588,
"brotli": 554
},
"runtime": {
"min": 8047,
"gzip": 3690,
"gzip": 3681,
"brotli": 3345
},
"total": {
"min": 9035,
"gzip": 4281,
"gzip": 4269,
"brotli": 3899
}
}

210
package-lock.json generated
View File

@ -25,9 +25,9 @@
"@types/babel__traverse": "^7.20.5",
"@types/jsdom": "^21.1.6",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.8",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@types/node": "^20.11.13",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"~ts": "file:scripts/babel-register.js",
"babel-plugin-minprops": "^2.0.1",
"bluebird": "^3.7.2",
@ -40,19 +40,19 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"express": "^4.18.2",
"husky": "^9.0.6",
"husky": "^9.0.7",
"it-fails": "^1.0.7",
"jsdom": "^24.0.0",
"jsdom-context-require": "^5.1.1",
"kleur": "^4.1.5",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.1",
"mocha": "^10.2.0",
"mocha-autotest": "^1.1.2",
"mocha-snap": "^5.0.0",
"prettier": "^3.2.4",
"prettier-plugin-packagejson": "^2.4.10",
"pretty-format": "^29.7.0",
"rollup": "^4.9.6",
"sort-package-json": "^2.6.0",
"table": "^6.8.1",
"through": "^2.3.8",
"through2": "^4.0.2",
@ -212,9 +212,9 @@
}
},
"node_modules/@babel/helper-create-class-features-plugin": {
"version": "7.23.9",
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.9.tgz",
"integrity": "sha512-B2L9neXTIyPQoXDm+NtovPvG6VOLWnaXu3BIeVDWwdKFgG30oNa6CqVGiJPDWQwIAK49t9gnQI9c6K6RzabiKw==",
"version": "7.23.10",
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.10.tgz",
"integrity": "sha512-2XpP2XhkXzgxecPNEEK8Vz8Asj9aRxt08oKOqtiZoqV2UGZ5T+EkyP9sXQ9nwMxBIG34a7jmasVqoMop7VdPUw==",
"dependencies": {
"@babel/helper-annotate-as-pure": "^7.22.5",
"@babel/helper-environment-visitor": "^7.22.20",
@ -3020,6 +3020,18 @@
"node": ">= 8"
}
},
"node_modules/@pkgr/core": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz",
"integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==",
"dev": true,
"engines": {
"node": "^12.20.0 || ^14.18.0 || >=16.0.0"
},
"funding": {
"url": "https://opencollective.com/unts"
}
},
"node_modules/@rollup/plugin-terser": {
"version": "0.4.4",
"resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz",
@ -3298,9 +3310,9 @@
"dev": true
},
"node_modules/@types/node": {
"version": "20.11.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.8.tgz",
"integrity": "sha512-i7omyekpPTNdv4Jb/Rgqg0RU8YqLcNsI12quKSDkRXNfx7Wxdm6HhK1awT3xTgEkgxPn3bvnSpiEAc7a7Lpyow==",
"version": "20.11.13",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.13.tgz",
"integrity": "sha512-5G4zQwdiQBSWYTDAH1ctw2eidqdhMJaNsiIDKHFr55ihz5Trl2qqR8fdrT732yPBho5gkNxXm67OxWFBqX9aPg==",
"dev": true,
"dependencies": {
"undici-types": "~5.26.4"
@ -3325,16 +3337,16 @@
"dev": true
},
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.19.1.tgz",
"integrity": "sha512-roQScUGFruWod9CEyoV5KlCYrubC/fvG8/1zXuT0WTcxX87GnMMmnksMwSg99lo1xiKrBzw2icsJPMAw1OtKxg==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.20.0.tgz",
"integrity": "sha512-fTwGQUnjhoYHeSF6m5pWNkzmDDdsKELYrOBxhjMrofPqCkoC2k3B2wvGHFxa1CTIqkEn88nlW1HVMztjo2K8Hg==",
"dev": true,
"dependencies": {
"@eslint-community/regexpp": "^4.5.1",
"@typescript-eslint/scope-manager": "6.19.1",
"@typescript-eslint/type-utils": "6.19.1",
"@typescript-eslint/utils": "6.19.1",
"@typescript-eslint/visitor-keys": "6.19.1",
"@typescript-eslint/scope-manager": "6.20.0",
"@typescript-eslint/type-utils": "6.20.0",
"@typescript-eslint/utils": "6.20.0",
"@typescript-eslint/visitor-keys": "6.20.0",
"debug": "^4.3.4",
"graphemer": "^1.4.0",
"ignore": "^5.2.4",
@ -3393,15 +3405,15 @@
"dev": true
},
"node_modules/@typescript-eslint/parser": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.1.tgz",
"integrity": "sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.20.0.tgz",
"integrity": "sha512-bYerPDF/H5v6V76MdMYhjwmwgMA+jlPVqjSDq2cRqMi8bP5sR3Z+RLOiOMad3nsnmDVmn2gAFCyNgh/dIrfP/w==",
"dev": true,
"dependencies": {
"@typescript-eslint/scope-manager": "6.19.1",
"@typescript-eslint/types": "6.19.1",
"@typescript-eslint/typescript-estree": "6.19.1",
"@typescript-eslint/visitor-keys": "6.19.1",
"@typescript-eslint/scope-manager": "6.20.0",
"@typescript-eslint/types": "6.20.0",
"@typescript-eslint/typescript-estree": "6.20.0",
"@typescript-eslint/visitor-keys": "6.20.0",
"debug": "^4.3.4"
},
"engines": {
@ -3421,13 +3433,13 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.1.tgz",
"integrity": "sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.20.0.tgz",
"integrity": "sha512-p4rvHQRDTI1tGGMDFQm+GtxP1ZHyAh64WANVoyEcNMpaTFn3ox/3CcgtIlELnRfKzSs/DwYlDccJEtr3O6qBvA==",
"dev": true,
"dependencies": {
"@typescript-eslint/types": "6.19.1",
"@typescript-eslint/visitor-keys": "6.19.1"
"@typescript-eslint/types": "6.20.0",
"@typescript-eslint/visitor-keys": "6.20.0"
},
"engines": {
"node": "^16.0.0 || >=18.0.0"
@ -3438,13 +3450,13 @@
}
},
"node_modules/@typescript-eslint/type-utils": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.19.1.tgz",
"integrity": "sha512-0vdyld3ecfxJuddDjACUvlAeYNrHP/pDeQk2pWBR2ESeEzQhg52DF53AbI9QCBkYE23lgkhLCZNkHn2hEXXYIg==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.20.0.tgz",
"integrity": "sha512-qnSobiJQb1F5JjN0YDRPHruQTrX7ICsmltXhkV536mp4idGAYrIyr47zF/JmkJtEcAVnIz4gUYJ7gOZa6SmN4g==",
"dev": true,
"dependencies": {
"@typescript-eslint/typescript-estree": "6.19.1",
"@typescript-eslint/utils": "6.19.1",
"@typescript-eslint/typescript-estree": "6.20.0",
"@typescript-eslint/utils": "6.20.0",
"debug": "^4.3.4",
"ts-api-utils": "^1.0.1"
},
@ -3465,9 +3477,9 @@
}
},
"node_modules/@typescript-eslint/types": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.1.tgz",
"integrity": "sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.20.0.tgz",
"integrity": "sha512-MM9mfZMAhiN4cOEcUOEx+0HmuaW3WBfukBZPCfwSqFnQy0grXYtngKCqpQN339X3RrwtzspWJrpbrupKYUSBXQ==",
"dev": true,
"engines": {
"node": "^16.0.0 || >=18.0.0"
@ -3478,13 +3490,13 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.1.tgz",
"integrity": "sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.20.0.tgz",
"integrity": "sha512-RnRya9q5m6YYSpBN7IzKu9FmLcYtErkDkc8/dKv81I9QiLLtVBHrjz+Ev/crAqgMNW2FCsoZF4g2QUylMnJz+g==",
"dev": true,
"dependencies": {
"@typescript-eslint/types": "6.19.1",
"@typescript-eslint/visitor-keys": "6.19.1",
"@typescript-eslint/types": "6.20.0",
"@typescript-eslint/visitor-keys": "6.20.0",
"debug": "^4.3.4",
"globby": "^11.1.0",
"is-glob": "^4.0.3",
@ -3539,17 +3551,17 @@
"dev": true
},
"node_modules/@typescript-eslint/utils": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.19.1.tgz",
"integrity": "sha512-JvjfEZuP5WoMqwh9SPAPDSHSg9FBHHGhjPugSRxu5jMfjvBpq5/sGTD+9M9aQ5sh6iJ8AY/Kk/oUYVEMAPwi7w==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.20.0.tgz",
"integrity": "sha512-/EKuw+kRu2vAqCoDwDCBtDRU6CTKbUmwwI7SH7AashZ+W+7o8eiyy6V2cdOqN49KsTcASWsC5QeghYuRDTyOOg==",
"dev": true,
"dependencies": {
"@eslint-community/eslint-utils": "^4.4.0",
"@types/json-schema": "^7.0.12",
"@types/semver": "^7.5.0",
"@typescript-eslint/scope-manager": "6.19.1",
"@typescript-eslint/types": "6.19.1",
"@typescript-eslint/typescript-estree": "6.19.1",
"@typescript-eslint/scope-manager": "6.20.0",
"@typescript-eslint/types": "6.20.0",
"@typescript-eslint/typescript-estree": "6.20.0",
"semver": "^7.5.4"
},
"engines": {
@ -3597,12 +3609,12 @@
"dev": true
},
"node_modules/@typescript-eslint/visitor-keys": {
"version": "6.19.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.1.tgz",
"integrity": "sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==",
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.20.0.tgz",
"integrity": "sha512-E8Cp98kRe4gKHjJD4NExXKz/zOJ1A2hhZc+IMVD6i7w4yjIvh6VyuRI0gRtxAsXtoC35uGMaQ9rjI2zJaXDEAw==",
"dev": true,
"dependencies": {
"@typescript-eslint/types": "6.19.1",
"@typescript-eslint/types": "6.20.0",
"eslint-visitor-keys": "^3.4.1"
},
"engines": {
@ -4314,9 +4326,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001580",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz",
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==",
"version": "1.0.30001581",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001581.tgz",
"integrity": "sha512-whlTkwhqV2tUmP3oYhtNfaWGYHDdS3JYFQBKXxcUR9qqPWsRhFHhoISO2Xnl/g0xyKzht9mI1LZpiNWfMzHixQ==",
"funding": [
{
"type": "opencollective",
@ -5074,9 +5086,9 @@
"dev": true
},
"node_modules/electron-to-chromium": {
"version": "1.4.648",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.648.tgz",
"integrity": "sha512-EmFMarXeqJp9cUKu/QEciEApn0S/xRcpZWuAm32U7NgoZCimjsilKXHRO9saeEW55eHZagIDg6XTUOv32w9pjg=="
"version": "1.4.651",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.651.tgz",
"integrity": "sha512-jjks7Xx+4I7dslwsbaFocSwqBbGHQmuXBJUK9QBZTIrzPq3pzn6Uf2szFSP728FtLYE3ldiccmlkOM/zhGKCpA=="
},
"node_modules/emoji-regex": {
"version": "10.3.0",
@ -6770,9 +6782,9 @@
}
},
"node_modules/husky": {
"version": "9.0.6",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz",
"integrity": "sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==",
"version": "9.0.7",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz",
"integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==",
"dev": true,
"bin": {
"husky": "bin.js"
@ -7558,9 +7570,9 @@
"dev": true
},
"node_modules/lint-staged": {
"version": "15.2.0",
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.2.0.tgz",
"integrity": "sha512-TFZzUEV00f+2YLaVPWBWGAMq7So6yQx+GG8YRMDeOEIf95Zn5RyiLMsEiX4KTNl9vq/w+NqRJkLA1kPIo15ufQ==",
"version": "15.2.1",
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.2.1.tgz",
"integrity": "sha512-dhwAPnM85VdshybV9FWI/9ghTvMLoQLEXgVMx+ua2DN7mdfzd/tRfoU2yhMcBac0RHkofoxdnnJUokr8s4zKmQ==",
"dev": true,
"dependencies": {
"chalk": "5.3.0",
@ -7568,7 +7580,7 @@
"debug": "4.3.4",
"execa": "8.0.1",
"lilconfig": "3.0.0",
"listr2": "8.0.0",
"listr2": "8.0.1",
"micromatch": "4.0.5",
"pidtree": "0.6.0",
"string-argv": "0.3.2",
@ -7611,9 +7623,9 @@
"integrity": "sha512-U6NLzBRyrAsJs9AAjuBYifXtNYnAIDPIp81rNpxNoypXBR7qi/LhsuUWX5399zuTg1sBEQyOnWDYFrBQ28vk/w=="
},
"node_modules/listr2": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/listr2/-/listr2-8.0.0.tgz",
"integrity": "sha512-u8cusxAcyqAiQ2RhYvV7kRKNLgUvtObIbhOX2NCXqvp1UU32xIg5CT22ykS2TPKJXZWJwtK3IKLiqAGlGNE+Zg==",
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/listr2/-/listr2-8.0.1.tgz",
"integrity": "sha512-ovJXBXkKGfq+CwmKTjluEqFi3p4h8xvkxGQQAQan22YCgef4KZ1mKGjzfGh6PL6AW5Csw0QiQPNuQyH+6Xk3hA==",
"dev": true,
"dependencies": {
"cli-truncate": "^4.0.0",
@ -7871,9 +7883,9 @@
}
},
"node_modules/magic-string": {
"version": "0.30.5",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz",
"integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==",
"version": "0.30.6",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.6.tgz",
"integrity": "sha512-n62qCLbPjNjyo+owKtveQxZFZTBm+Ms6YoGD23Wew6Vw337PElFNifQpknPruVRQV57kVShPnLGo9vWxVhpPvA==",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.15"
},
@ -9178,6 +9190,24 @@
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/prettier-plugin-packagejson": {
"version": "2.4.10",
"resolved": "https://registry.npmjs.org/prettier-plugin-packagejson/-/prettier-plugin-packagejson-2.4.10.tgz",
"integrity": "sha512-qFzOfQDHi1tzvVJRuZ2jh1j6IFV5MURh5m5WDt+qfEMOf4SSL5RpwSysiX8u0W1PJYsM0vKJGNULt43wwteKiQ==",
"dev": true,
"dependencies": {
"sort-package-json": "2.7.0",
"synckit": "0.9.0"
},
"peerDependencies": {
"prettier": ">= 1.16.0"
},
"peerDependenciesMeta": {
"prettier": {
"optional": true
}
}
},
"node_modules/pretty-format": {
"version": "29.7.0",
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
@ -10206,9 +10236,9 @@
"dev": true
},
"node_modules/sort-package-json": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/sort-package-json/-/sort-package-json-2.6.0.tgz",
"integrity": "sha512-XSQ+lY9bAYA8ZsoChcEoPlgcSMaheziEp1beox1JVxy1SV4F2jSq9+h2rJ+3mC/Dhu9Ius1DLnInD5AWcsDXZw==",
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/sort-package-json/-/sort-package-json-2.7.0.tgz",
"integrity": "sha512-6AayF8bp6L+WROgpbhTMUtB9JSFmpGHjmW7DyaNPS1HwlTw2oSVlUUtlkHSEZmg5o89F3zvLBZNvMeZ1T4fjQg==",
"dev": true,
"dependencies": {
"detect-indent": "^7.0.1",
@ -10622,6 +10652,22 @@
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
"dev": true
},
"node_modules/synckit": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.0.tgz",
"integrity": "sha512-7RnqIMq572L8PeEzKeBINYEJDDxpcH8JEgLwUqBd3TkofhFRbkq4QLR0u+36avGAhCRbk2nnmjcW9SE531hPDg==",
"dev": true,
"dependencies": {
"@pkgr/core": "^0.1.0",
"tslib": "^2.6.2"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
"funding": {
"url": "https://opencollective.com/unts"
}
},
"node_modules/table": {
"version": "6.8.1",
"resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz",
@ -10975,6 +11021,12 @@
"json5": "lib/cli.js"
}
},
"node_modules/tslib": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==",
"dev": true
},
"node_modules/tty-table": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/tty-table/-/tty-table-4.2.3.tgz",
@ -11773,7 +11825,8 @@
},
"packages/babel-utils/node_modules/jsesc": {
"version": "3.0.2",
"license": "MIT",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz",
"integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==",
"bin": {
"jsesc": "bin/jsesc"
},
@ -11816,7 +11869,8 @@
},
"packages/compiler/node_modules/jsesc": {
"version": "3.0.2",
"license": "MIT",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz",
"integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==",
"bin": {
"jsesc": "bin/jsesc"
},

View File

@ -10,10 +10,10 @@
"build:types": "npm run build:types --ws --if-present && tsc -b tsconfig.build.json",
"change": "changeset add",
"ci:test": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" MARKO_DEBUG=1 c8 npm test",
"format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && sort-package-json './{,packages/*/}package.json' --quiet",
"format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write",
"lint": "npm run lint:eslint && npm run lint:prettier -- -l",
"lint:eslint": "eslint -f visualstudio .",
"lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml}\" --with-node-modules",
"lint:eslint": "eslint --format visualstudio .",
"lint:prettier": "prettier . --with-node-modules",
"prepare": "husky",
"release": "node scripts/set-pkg-main npm && npm run build && changeset publish && node scripts/set-pkg-main dev && npm ci",
"report": "open ./coverage/lcov-report/index.html",
@ -38,9 +38,9 @@
"@types/babel__traverse": "^7.20.5",
"@types/jsdom": "^21.1.6",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.8",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@types/node": "^20.11.13",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"babel-plugin-minprops": "^2.0.1",
"bluebird": "^3.7.2",
"c8": "^9.1.0",
@ -52,19 +52,19 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"express": "^4.18.2",
"husky": "^9.0.6",
"husky": "^9.0.7",
"it-fails": "^1.0.7",
"jsdom": "^24.0.0",
"jsdom-context-require": "^5.1.1",
"kleur": "^4.1.5",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.1",
"mocha": "^10.2.0",
"mocha-autotest": "^1.1.2",
"mocha-snap": "^5.0.0",
"prettier": "^3.2.4",
"pretty-format": "^29.7.0",
"prettier-plugin-packagejson": "^2.4.10",
"rollup": "^4.9.6",
"sort-package-json": "^2.6.0",
"table": "^6.8.1",
"through": "^2.3.8",
"through2": "^4.0.2",

View File

@ -87,7 +87,7 @@ for (const type in t.NODE_FIELDS) {
const struct = ['type: "' + type + '";'];
const args = [];
fieldNames.forEach(fieldName => {
fieldNames.forEach((fieldName) => {
const field = fields[fieldName];
// Future / annoying TODO:
// MemberExpression.property, ObjectProperty.key and ObjectMethod.key need special cases; either:
@ -107,13 +107,13 @@ for (const type in t.NODE_FIELDS) {
args.push(
`${t.toBindingIdentifierName(fieldName)}${
isNullable(field) ? "?:" : ":"
} ${typeAnnotation}`
} ${typeAnnotation}`,
);
} else {
args.push(
`${t.toBindingIdentifierName(fieldName)}: ${typeAnnotation}${
isNullable(field) ? " | undefined" : ""
}`
}`,
);
}
}
@ -134,13 +134,13 @@ for (const type in t.NODE_FIELDS) {
// super and import are reserved words in JavaScript
if (type !== "Super" && type !== "Import") {
lines.push(
`export function ${toFunctionName(type)}(${args.join(", ")}): ${type};`
`export function ${toFunctionName(type)}(${args.join(", ")}): ${type};`,
);
} else {
const functionName = toFunctionName(type);
lines.push(
`declare function _${functionName}(${args.join(", ")}): ${type};`,
`export { _${functionName} as ${functionName}}`
`export { _${functionName} as ${functionName}}`,
);
}
}
@ -158,14 +158,14 @@ for (const typeName of t.TYPES) {
lines.push(`/** @deprecated Use \`is${realName}\` */`);
}
lines.push(
`export function is${typeName}(node: object | null | undefined, opts?: object | null): ${result};`
`export function is${typeName}(node: object | null | undefined, opts?: object | null): ${result};`,
);
if (isDeprecated) {
lines.push(`/** @deprecated Use \`assert${realName}\` */`);
}
lines.push(
`export function assert${typeName}(node: object | null | undefined, opts?: object | null): void;`
`export function assert${typeName}(node: object | null | undefined, opts?: object | null): void;`,
);
}
@ -338,7 +338,7 @@ lines.push(
`export function matchesPattern(node: Node | null | undefined, match: string | ReadonlyArray<string>, allowPartial?: boolean): node is MemberExpression`,
// eslint-disable-next-line max-len
`export function validate<T extends Node, K extends keyof T>(n: Node | null | undefined, key: K, value: T[K]): void;`,
`export function validate(n: Node, key: string, value: any): void;`
`export function validate(n: Node, key: string, value: any): void;`,
);
for (const type in t.DEPRECATED_KEYS) {
@ -352,7 +352,7 @@ export type ${type} = ${t.DEPRECATED_KEYS[type]};\n
for (const type in t.FLIPPED_ALIAS_KEYS) {
const types = t.FLIPPED_ALIAS_KEYS[type];
code += `export type ${type} = ${types
.map(type => `${type}`)
.map((type) => `${type}`)
.join(" | ")};\n`;
}
code += "\n";
@ -373,7 +373,7 @@ process.stdout.write(code);
function areAllRemainingFieldsNullable(fieldName, fieldNames, fields) {
const index = fieldNames.indexOf(fieldName);
return fieldNames.slice(index).every(_ => isNullable(fields[_]));
return fieldNames.slice(index).every((_) => isNullable(fields[_]));
}
function hasDefault(field) {
@ -416,12 +416,12 @@ function stringifyValidator(validator, nodePrefix) {
}
if (validator.oneOfNodeTypes) {
return validator.oneOfNodeTypes.map(_ => nodePrefix + _).join(" | ");
return validator.oneOfNodeTypes.map((_) => nodePrefix + _).join(" | ");
}
if (validator.oneOfNodeOrValueTypes) {
return validator.oneOfNodeOrValueTypes
.map(_ => {
.map((_) => {
return isValueType(_) ? _ : nodePrefix + _;
})
.join(" | ");
@ -435,7 +435,7 @@ function stringifyValidator(validator, nodePrefix) {
return (
"{ " +
Object.keys(validator.shapeOf)
.map(shapeKey => {
.map((shapeKey) => {
const propertyDefinition = validator.shapeOf[shapeKey];
if (propertyDefinition.validate) {
const isOptional =

View File

@ -1,2 +1,2 @@
#!/usr/bin/env node
require('./markoc.js');
require("./markoc.js");

View File

@ -1,85 +1,85 @@
{
"name": "marko",
"version": "5.32.7",
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
"keywords": [
"front-end",
"templating",
"template",
"async",
"streaming",
"components",
"ui",
"vdom",
"dom",
"morphdom",
"virtual",
"virtual-dom"
],
"homepage": "https://markojs.com/",
"repository": {
"type": "git",
"url": "https://github.com/marko-js/marko.git"
},
"license": "MIT",
"author": "Patrick Steele-Idem <pnidem@gmail.com>",
"maintainers": [
"Patrick Steele-Idem <pnidem@gmail.com>",
"Michael Rawlings <ml.rawlings@gmail.com>",
"Phillip Gates-Idem <phillip.idem@gmail.com>",
"Austin Kelleher <a@alk.im>",
"Dylan Piercey <pierceydylan@gmail.com>",
"Martin Aberer"
],
"main": "index.js",
"browser": {
"./compiler.js": "./compiler-browser.marko",
"./components.js": "./components-browser.marko",
"./legacy-components.js": "./legacy-components-browser.marko",
"./index.js": "./index-browser.marko"
},
"types": "index.d.ts",
"bin": {
"markoc": "bin/markoc"
},
"files": [
"bin",
"dist",
"docs",
"src",
"compiler-browser.marko",
"compiler.js",
"components-browser.marko",
"components.js",
"legacy-components-browser.marko",
"legacy-components.js",
"env.js",
"index.d.ts",
"index-browser.marko",
"index.js",
"node-require.js",
"tags-html.d.ts"
],
"scripts": {
"build": "babel ./src --out-dir ./dist --delete-dir-on-start --copy-files --config-file ../../babel.config.js --env-name=production"
},
"dependencies": {
"@marko/compiler": "^5.34.6",
"@marko/translator-default": "^5.31.13",
"app-module-path": "^2.2.0",
"argly": "^1.2.0",
"browser-refresh-client": "1.1.4",
"complain": "^1.6.0",
"csstype": "^3.1.3",
"events-light": "^1.0.5",
"listener-tracker": "^2.0.0",
"minimatch": "^9.0.3",
"raptor-util": "^3.2.0",
"resolve-from": "^5.0.0",
"self-closing-tags": "^1.0.1",
"warp10": "^2.1.0"
},
"logo": {
"url": "https://raw.githubusercontent.com/marko-js/branding/master/marko-logo-small.png"
}
"name": "marko",
"version": "5.32.7",
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
"keywords": [
"front-end",
"templating",
"template",
"async",
"streaming",
"components",
"ui",
"vdom",
"dom",
"morphdom",
"virtual",
"virtual-dom"
],
"homepage": "https://markojs.com/",
"repository": {
"type": "git",
"url": "https://github.com/marko-js/marko.git"
},
"license": "MIT",
"author": "Patrick Steele-Idem <pnidem@gmail.com>",
"maintainers": [
"Patrick Steele-Idem <pnidem@gmail.com>",
"Michael Rawlings <ml.rawlings@gmail.com>",
"Phillip Gates-Idem <phillip.idem@gmail.com>",
"Austin Kelleher <a@alk.im>",
"Dylan Piercey <pierceydylan@gmail.com>",
"Martin Aberer"
],
"main": "index.js",
"browser": {
"./compiler.js": "./compiler-browser.marko",
"./components.js": "./components-browser.marko",
"./legacy-components.js": "./legacy-components-browser.marko",
"./index.js": "./index-browser.marko"
},
"types": "index.d.ts",
"bin": {
"markoc": "bin/markoc"
},
"files": [
"bin",
"dist",
"docs",
"src",
"compiler-browser.marko",
"compiler.js",
"components-browser.marko",
"components.js",
"legacy-components-browser.marko",
"legacy-components.js",
"env.js",
"index.d.ts",
"index-browser.marko",
"index.js",
"node-require.js",
"tags-html.d.ts"
],
"scripts": {
"build": "babel ./src --out-dir ./dist --delete-dir-on-start --copy-files --config-file ../../babel.config.js --env-name=production"
},
"dependencies": {
"@marko/compiler": "^5.34.6",
"@marko/translator-default": "^5.31.13",
"app-module-path": "^2.2.0",
"argly": "^1.2.0",
"browser-refresh-client": "1.1.4",
"complain": "^1.6.0",
"csstype": "^3.1.3",
"events-light": "^1.0.5",
"listener-tracker": "^2.0.0",
"minimatch": "^9.0.3",
"raptor-util": "^3.2.0",
"resolve-from": "^5.0.0",
"self-closing-tags": "^1.0.1",
"warp10": "^2.1.0"
},
"logo": {
"url": "https://raw.githubusercontent.com/marko-js/branding/master/marko-logo-small.png"
}
}

View File

@ -1,5 +1,5 @@
{
"browser": {
"./test-init.js": "./test-init-browser.js"
}
"browser": {
"./test-init.js": "./test-init-browser.js"
}
}

View File

@ -1,4 +1,4 @@
{
"name": "marko-test",
"version": "1.0.0"
"name": "marko-test",
"version": "1.0.0"
}

View File

@ -5,6 +5,6 @@
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"tsBuildInfoFile": "dist/.tsbuildinfo"
}
"tsBuildInfoFile": "dist/.tsbuildinfo",
},
}

View File

@ -5,11 +5,11 @@
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"tsBuildInfoFile": "dist/.tsbuildinfo"
"tsBuildInfoFile": "dist/.tsbuildinfo",
},
"references": [
{
"path": "../runtime-tags"
}
]
"path": "../runtime-tags",
},
],
}

View File

@ -24,6 +24,6 @@
"moduleResolution": "bundler",
"allowUnreachableCode": false,
"allowImportingTsExtensions": true,
"forceConsistentCasingInFileNames": true
}
"forceConsistentCasingInFileNames": true,
},
}