@wessberg/di-compiler
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -31,8 +31,8 @@ import * as TS from 'typescript'; | ||
function getModifierLikes(node) { | ||
var _a, _b; | ||
const modifiers = "modifiers" in node && Array.isArray(node.modifiers) ? node.modifiers : []; | ||
if ("decorators" in node && Array.isArray(node.decorators)) { | ||
return [...((_a = node.decorators) !== null && _a !== void 0 ? _a : []), ...((_b = node.modifiers) !== null && _b !== void 0 ? _b : [])]; | ||
return [...node.decorators, ...modifiers]; | ||
} | ||
else { | ||
return node.modifiers; | ||
return modifiers; | ||
} | ||
@@ -39,0 +39,0 @@ } |
export * from "./common/common.js"; | ||
export * from "./common/di-options.js"; | ||
export * from "./common/transform-options.js"; | ||
export type * from "./common/transform-options.js"; | ||
export type * from "./common/di-options.js"; |
{ | ||
"name": "@wessberg/di-compiler", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "A Custom Transformer for Typescript that enables compile-time Dependency Injection", | ||
@@ -12,3 +12,3 @@ "scripts": { | ||
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"", | ||
"test": "ava", | ||
"test": "cross-env NODE_NO_WARNINGS=1 FORCE_COLOR=3 NODE_OPTIONS=\"--loader=tsx --max_old_space_size=6144\" ava", | ||
"prebuild": "pnpm run clean", | ||
@@ -23,4 +23,4 @@ "build": "pnpm run prebuild && pnpm run rollup", | ||
"release": "np --no-cleanup --no-yarn", | ||
"update:check": "pnpx npm-check-updates -x typescript-*,ava --dep dev,prod", | ||
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava --dep dev,prod && pnpm update && pnpm install" | ||
"update:check": "pnpx npm-check-updates -x typescript-* --dep dev,prod", | ||
"update:commit": "pnpx npm-check-updates -u -x typescript-* --dep dev,prod && pnpm update && pnpm install" | ||
}, | ||
@@ -58,30 +58,32 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^18.11.18", | ||
"@types/prettier": "^2.7.2", | ||
"@types/semver": "^7.3.13", | ||
"@typescript-eslint/eslint-plugin": "^5.48.2", | ||
"@typescript-eslint/parser": "^5.48.2", | ||
"eslint-plugin-deprecation": "1.3.3", | ||
"@wessberg/ts-config": "^3.1.0", | ||
"@types/node": "^20.4.7", | ||
"@types/prettier": "^2.7.3", | ||
"@types/semver": "^7.5.0", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"eslint-plugin-deprecation": "1.5.0", | ||
"@wessberg/ts-config": "^4.0.0", | ||
"@wessberg/prettier-config": "^1.0.0", | ||
"rollup-plugin-ts": "^3.2.0", | ||
"semver": "^7.3.8", | ||
"ava": "3.15.0", | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jsdoc": "^39.6.7", | ||
"@prettier/sync": "0.3.0", | ||
"rollup-plugin-ts": "^3.4.1", | ||
"semver": "^7.5.4", | ||
"ava": "^5.3.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.46.0", | ||
"eslint-config-prettier": "^8.10.0", | ||
"eslint-plugin-import": "^2.28.0", | ||
"eslint-plugin-jsdoc": "^46.4.5", | ||
"husky": "^8.0.3", | ||
"np": "^7.6.3", | ||
"pnpm": "^7.25.1", | ||
"prettier": "^2.8.3", | ||
"np": "^8.0.4", | ||
"pnpm": "^8.6.11", | ||
"prettier": "^3.0.1", | ||
"pretty-quick": "^3.1.3", | ||
"rimraf": "^4.1.1", | ||
"rollup": "^3.10.1", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.27.1", | ||
"sandhog": "^2.0.2", | ||
"standard-changelog": "^2.0.27", | ||
"ts-node": "^10.9.1", | ||
"npm-check-updates": "^16.6.2", | ||
"@esbuild-kit/esm-loader": "^2.5.4", | ||
"typescript": "^4.9.4", | ||
"standard-changelog": "^3.0.0", | ||
"tsx": "^3.12.7", | ||
"npm-check-updates": "^16.10.17", | ||
"@esbuild-kit/esm-loader": "^2.5.5", | ||
"typescript": "^5.1.6", | ||
"typescript-3-4-1": "npm:typescript@3.4.1", | ||
@@ -101,3 +103,5 @@ "typescript-3-5-1": "npm:typescript@3.5.1", | ||
"typescript-4-7-2": "npm:typescript@4.7.2", | ||
"typescript-4-8-2": "npm:typescript@4.8.2" | ||
"typescript-4-8-2": "npm:typescript@4.8.2", | ||
"typescript-4-9-4": "npm:typescript@4.9.4", | ||
"typescript-5-0-4": "npm:typescript@5.0.4" | ||
}, | ||
@@ -107,9 +111,9 @@ "dependencies": { | ||
"helpertypes": "^0.0.19", | ||
"pirates": "^4.0.5", | ||
"get-tsconfig": "4.3.0", | ||
"pirates": "^4.0.6", | ||
"get-tsconfig": "^4.6.2", | ||
"ts-evaluator": "^1.1.0", | ||
"compatfactory": "^2.0.9" | ||
"compatfactory": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=3.x || >= 4.x" | ||
"typescript": ">=3.x || >= 4.x || >= 5.x" | ||
}, | ||
@@ -142,3 +146,3 @@ "repository": { | ||
"engines": { | ||
"node": ">=14.19.0" | ||
"node": ">=16.15.1" | ||
}, | ||
@@ -148,19 +152,11 @@ "prettier": "@wessberg/prettier-config", | ||
"files": [ | ||
"test/**/**.test.ts" | ||
"test/**/*.test.ts" | ||
], | ||
"verbose": true, | ||
"timeout": "400s", | ||
"nonSemVerExperiments": { | ||
"configurableModuleFormat": true | ||
}, | ||
"concurrency": 1, | ||
"extensions": { | ||
"ts": "module" | ||
}, | ||
"nodeArguments": [ | ||
"--loader=ts-node/esm" | ||
], | ||
"environmentVariables": { | ||
"FORCE_COLOR": "3" | ||
} | ||
} | ||
} |
@@ -59,5 +59,5 @@ <!-- SHADOW_SECTION_LOGO_START --> | ||
| <a href="https://usebubbles.com"><img alt="Bubbles" src="https://uploads-ssl.webflow.com/5d682047c28b217055606673/5e5360be16879c1d0dca6514_icon-thin-128x128%402x.png" height="70" /></a> | <a href="https://www.xerox.com"><img alt="Xerox" src="https://avatars.githubusercontent.com/u/9158512?s=200&v=4" height="70" /></a> | <a href="https://changelog.me"><img alt="Trent Raymond" src="https://avatars.githubusercontent.com/u/1509616?v=4" height="70" /></a> | <a href="https://scrubtheweb.com"><img alt="scrubtheweb" src="https://avatars.githubusercontent.com/u/41668218?v=4" height="70" /></a> | <a href="https://github.com/hjoelh"><img alt="Joel" src="https://avatars.githubusercontent.com/u/68335961?v=4" height="70" /></a> | | ||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | ||
| [Bubbles](https://usebubbles.com)<br><strong>Twitter</strong>: [@usebubbles](https://twitter.com/usebubbles) | [Xerox](https://www.xerox.com) | [Trent Raymond](https://changelog.me) | [scrubtheweb](https://scrubtheweb.com) | [Joel](https://github.com/hjoelh) | | ||
| <a href="https://changelog.me"><img alt="Trent Raymond" src="https://avatars.githubusercontent.com/u/1509616?v=4" height="70" /></a> | <a href="https://scrubtheweb.com/computers/programming/1"><img alt="scrubtheweb" src="https://avatars.githubusercontent.com/u/41668218?v=4" height="70" /></a> | | ||
| -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| [Trent Raymond](https://changelog.me) | [scrubtheweb](https://scrubtheweb.com/computers/programming/1) | | ||
@@ -64,0 +64,0 @@ ### Patreon |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
386206
47
+ Addedcompatfactory@3.0.0(transitive)
+ Addedget-tsconfig@4.10.0(transitive)
+ Addedresolve-pkg-maps@1.0.0(transitive)
- Removedcompatfactory@2.0.9(transitive)
- Removedget-tsconfig@4.3.0(transitive)
Updatedcompatfactory@^3.0.0
Updatedget-tsconfig@^4.6.2
Updatedpirates@^4.0.6