Comparing version 0.2.11 to 0.3.0
@@ -1,4 +0,3 @@ | ||
import { a as Proxified, P as ProxifiedModule, e as ProxifiedFunctionCall, g as ProxifiedObject } from './shared/magicast.98b73086.js'; | ||
import { a as Proxified, P as ProxifiedModule, e as ProxifiedFunctionCall, g as ProxifiedObject } from './shared/magicast.8e177158.js'; | ||
import { VariableDeclarator } from '@babel/types'; | ||
import 'recast'; | ||
@@ -5,0 +4,0 @@ declare function deepMergeObject(magicast: Proxified<any>, object: any): void; |
@@ -1,4 +0,3 @@ | ||
import { Options } from 'recast'; | ||
import { P as ProxifiedModule, a as Proxified, G as GenerateOptions } from './shared/magicast.98b73086.js'; | ||
export { C as CodeFormatOptions, I as ImportItemInput, L as Loc, b as ParsedFileNode, d as ProxifiedArray, e as ProxifiedFunctionCall, h as ProxifiedIdentifier, j as ProxifiedImportItem, i as ProxifiedImportsMap, f as ProxifiedNewExpression, g as ProxifiedObject, k as ProxifiedValue, c as ProxyBase, l as ProxyType, T as Token, m as detectCodeFormat } from './shared/magicast.98b73086.js'; | ||
import { O as Options, P as ProxifiedModule, a as Proxified, G as GenerateOptions } from './shared/magicast.8e177158.js'; | ||
export { C as CodeFormatOptions, I as ImportItemInput, L as Loc, b as ParsedFileNode, d as ProxifiedArray, e as ProxifiedFunctionCall, h as ProxifiedIdentifier, j as ProxifiedImportItem, i as ProxifiedImportsMap, f as ProxifiedNewExpression, g as ProxifiedObject, k as ProxifiedValue, c as ProxyBase, l as ProxyType, T as Token, m as detectCodeFormat } from './shared/magicast.8e177158.js'; | ||
import { Node } from '@babel/types'; | ||
@@ -17,4 +16,4 @@ export { Node as ASTNode } from '@babel/types'; | ||
declare function writeFile(node: { | ||
ast: Node; | ||
} | Node, filename?: string, options?: Options): Promise<void>; | ||
$ast: Node; | ||
} | Node, filename: string, options?: Options): Promise<void>; | ||
@@ -21,0 +20,0 @@ interface MagicastErrorOptions { |
{ | ||
"name": "magicast", | ||
"version": "0.2.11", | ||
"version": "0.3.0", | ||
"description": "Modify a JS/TS file and write back magically just like JSON!", | ||
@@ -30,2 +30,3 @@ "repository": "unjs/magicast", | ||
"build": "unbuild", | ||
"prepare": "esno ./scripts/vendor.ts", | ||
"dev": "vitest dev", | ||
@@ -38,8 +39,10 @@ "dev:ui": "vitest dev --ui", | ||
"release": "pnpm run test run && changelogen --release && npm publish && git push --follow-tags", | ||
"test": "vitest" | ||
"test": "vitest", | ||
"test:build": "TEST_BUILD=true vitest", | ||
"test:full": "pnpm run test && pnpm run build && pnpm run test:build" | ||
}, | ||
"dependencies": { | ||
"@babel/parser": "^7.22.16", | ||
"@babel/types": "^7.22.17", | ||
"recast": "^0.23.4" | ||
"@babel/types": "^7.22.19", | ||
"source-map-js": "^1.0.2" | ||
}, | ||
@@ -50,8 +53,14 @@ "devDependencies": { | ||
"@vitest/ui": "^0.34.4", | ||
"ast-types": "^0.16.1", | ||
"changelogen": "^0.5.5", | ||
"eslint": "^8.49.0", | ||
"eslint-config-unjs": "^0.2.1", | ||
"esno": "^0.17.0", | ||
"giget": "^1.1.2", | ||
"lint-staged": "^14.0.1", | ||
"magicast": "workspace:*", | ||
"prettier": "^3.0.3", | ||
"recast": "^0.23.4", | ||
"simple-git-hooks": "^2.9.0", | ||
"source-map": "npm:source-map-js@latest", | ||
"typescript": "^5.2.2", | ||
@@ -61,2 +70,5 @@ "unbuild": "^2.0.0", | ||
}, | ||
"resolutions": { | ||
"source-map": "npm:source-map-js@latest" | ||
}, | ||
"simple-git-hooks": { | ||
@@ -71,3 +83,22 @@ "pre-commit": "pnpm lint-staged" | ||
}, | ||
"packageManager": "pnpm@8.7.4" | ||
"packageManager": "pnpm@8.7.5", | ||
"pnpm": { | ||
"overrides": { | ||
"array-includes": "npm:@nolyfill/array-includes@latest", | ||
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest", | ||
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest", | ||
"available-typed-arrays": "npm:@nolyfill/available-typed-arrays@latest", | ||
"define-properties": "npm:@nolyfill/define-properties@latest", | ||
"function-bind": "npm:@nolyfill/function-bind@latest", | ||
"gopd": "npm:@nolyfill/gopd@latest", | ||
"has": "npm:@nolyfill/has@latest", | ||
"has-symbols": "npm:@nolyfill/has-symbols@latest", | ||
"has-tostringtag": "npm:@nolyfill/has-tostringtag@latest", | ||
"is-arguments": "npm:@nolyfill/is-arguments@latest", | ||
"is-generator-function": "npm:@nolyfill/is-generator-function@latest", | ||
"object-is": "npm:@nolyfill/object-is@latest", | ||
"object.values": "npm:@nolyfill/object.values@latest", | ||
"which-typed-array": "npm:@nolyfill/which-typed-array@latest" | ||
} | ||
} | ||
} |
@@ -64,3 +64,3 @@ # 🧀 Magicast | ||
await writeFile(mod); | ||
await writeFile(mod, "config.js"); | ||
``` | ||
@@ -168,3 +168,3 @@ | ||
```js | ||
import { | ||
import { | ||
deepMergeObject, | ||
@@ -171,0 +171,0 @@ addNuxtModule, |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
643177
18243
18
5
+ Addedsource-map-js@^1.0.2
+ Addedsource-map-js@1.2.1(transitive)
- Removedrecast@^0.23.4
- Removedast-types@0.16.1(transitive)
- Removedesprima@4.0.1(transitive)
- Removedrecast@0.23.9(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedtiny-invariant@1.3.3(transitive)
- Removedtslib@2.8.1(transitive)
Updated@babel/types@^7.22.19