ts-clone-node
Advanced tools
Comparing version 2.0.4 to 3.0.0
import * as TS from "typescript"; | ||
type MetaNode = TS.Node & { | ||
interface Modifiersable { | ||
modifiers?: TS.NodeArray<TS.ModifierLike>; | ||
} | ||
type MetaNode = TS.Node & Modifiersable & { | ||
jsDoc?: TS.JSDoc[]; | ||
@@ -26,4 +29,4 @@ _original?: MetaNode; | ||
interface CloneNodeOptions<T extends MetaNode = MetaNode> { | ||
hook: CloneNodeHookFactory<T>; | ||
finalize: CloneNodeFinalizerCallback<T>; | ||
hook: CloneNodeHookFactory<T & Modifiersable>; | ||
finalize: CloneNodeFinalizerCallback<T & Modifiersable>; | ||
typescript: typeof TS; | ||
@@ -52,2 +55,3 @@ // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
declare function cloneNode<T extends MetaNode>(node: T | undefined, options?: Partial<CloneNodeOptions<T>>): T | undefined; | ||
export { cloneNode, preserveNode, setParentNodes, CloneNodeOptions, CloneNodeHook }; | ||
export { cloneNode, preserveNode, setParentNodes }; | ||
export type { CloneNodeOptions, CloneNodeHook }; |
{ | ||
"name": "ts-clone-node", | ||
"version": "2.0.4", | ||
"version": "3.0.0", | ||
"description": "A library that helps you clone Nodes from a Typescript AST", | ||
@@ -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=4096\" ava", | ||
"prebuild": "pnpm run clean", | ||
@@ -23,3 +23,3 @@ "build": "pnpm run prebuild && pnpm run rollup", | ||
"update:check": "pnpx npm-check-updates -x typescript-* --dep dev,prod", | ||
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava --dep dev,prod && pnpm update && pnpm install" | ||
"update:commit": "pnpx npm-check-updates -u -x typescript-* --dep dev,prod && pnpm update && pnpm install" | ||
}, | ||
@@ -50,32 +50,34 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/semver": "^7.3.13", | ||
"@types/node": "^18.11.18", | ||
"@types/prettier": "^2.7.2", | ||
"@typescript-eslint/eslint-plugin": "^5.48.1", | ||
"@typescript-eslint/parser": "^5.48.1", | ||
"@wessberg/ts-config": "^2.0.4", | ||
"@types/semver": "^7.5.0", | ||
"@types/node": "^20.4.6", | ||
"@types/prettier": "^2.7.3", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"@wessberg/ts-config": "^4.0.0", | ||
"@wessberg/prettier-config": "1.0.0", | ||
"@prettier/sync": "0.3.0", | ||
"crosspath": "2.0.0", | ||
"dotcjs": "1.0.1", | ||
"rollup-plugin-ts": "^3.1.0", | ||
"rollup-plugin-ts": "^3.2.0", | ||
"sandhog": "^2.0.2", | ||
"ava": "^3.15.0", | ||
"eslint": "^8.31.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.6.4", | ||
"ava": "^5.3.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.46.0", | ||
"eslint-config-prettier": "^8.9.0", | ||
"eslint-plugin-import": "^2.28.0", | ||
"eslint-plugin-jsdoc": "^46.4.5", | ||
"husky": "^8.0.3", | ||
"np": "7.6.3", | ||
"pnpm": "^7.23.0", | ||
"prettier": "^2.8.2", | ||
"np": "8.0.4", | ||
"pnpm": "^8.6.11", | ||
"prettier": "^3.0.0", | ||
"pretty-quick": "^3.1.3", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^3.9.1", | ||
"standard-changelog": "^2.0.27", | ||
"ts-node": "^10.9.1", | ||
"semver": "^7.3.8", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.27.0", | ||
"standard-changelog": "^3.0.0", | ||
"tsx": "^3.12.7", | ||
"semver": "^7.5.4", | ||
"helpertypes": "^0.0.19", | ||
"tslib": "^2.4.1", | ||
"npm-check-updates": "^16.6.2", | ||
"typescript": "^4.9.4", | ||
"tslib": "^2.6.1", | ||
"npm-check-updates": "^16.10.17", | ||
"typescript": "5.1.6", | ||
"typescript-3-0-1": "npm:typescript@3.0.1", | ||
@@ -99,9 +101,11 @@ "typescript-3-1-1": "npm:typescript@3.1.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" | ||
}, | ||
"dependencies": { | ||
"compatfactory": "^2.0.9" | ||
"compatfactory": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^3.x || ^4.x" | ||
"typescript": "^3.x || ^4.x || ^5.x" | ||
}, | ||
@@ -137,15 +141,6 @@ "exports": { | ||
"timeout": "400s", | ||
"nonSemVerExperiments": { | ||
"configurableModuleFormat": true | ||
}, | ||
"extensions": { | ||
"ts": "module" | ||
}, | ||
"nodeArguments": [ | ||
"--loader=ts-node/esm" | ||
], | ||
"environmentVariables": { | ||
"FORCE_COLOR": "3" | ||
} | ||
} | ||
} |
@@ -58,5 +58,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) | | ||
@@ -63,0 +63,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 too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
935119
4488
53
+ Addedcompatfactory@3.0.0(transitive)
+ Addedtypescript@5.6.3(transitive)
- Removedcompatfactory@2.0.9(transitive)
- Removedtypescript@4.9.5(transitive)
Updatedcompatfactory@^3.0.0