{"_id":"magicast","_rev":"3782599","name":"magicast","description":"Modify a JS/TS file and write back magically just like JSON!","dist-tags":{"latest":"0.3.5"},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"time":{"modified":"2025-05-16T07:38:15.000Z","created":"2023-02-15T11:27:27.527Z","0.3.5":"2024-08-27T09:04:34.382Z","0.3.4":"2024-04-12T00:54:11.849Z","0.3.3":"2024-01-14T20:00:41.912Z","0.3.2":"2023-11-11T00:24:28.597Z","0.3.1":"2023-11-09T15:22:28.457Z","0.3.0":"2023-09-15T11:28:06.881Z","0.2.11":"2023-09-14T01:17:28.514Z","0.2.10":"2023-07-27T03:50:25.864Z","0.2.9":"2023-05-31T13:15:55.788Z","0.2.8":"2023-05-24T09:17:06.515Z","0.2.7":"2023-05-16T18:08:09.419Z","0.2.6":"2023-05-08T14:18:04.384Z","0.2.5":"2023-05-06T13:27:54.089Z","0.2.4":"2023-04-20T15:11:24.184Z","0.2.3":"2023-04-09T11:37:49.190Z","0.2.2":"2023-04-07T15:20:23.339Z","0.2.1":"2023-04-06T08:07:50.108Z","0.2.0":"2023-04-05T09:23:01.654Z","0.1.1":"2023-02-15T12:21:01.559Z","0.0.0":"2023-02-15T11:27:27.527Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"versions":{"0.3.5":{"name":"magicast","version":"0.3.5","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","prepare":"esno ./scripts/vendor.ts","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache . && prettier -c .","lint:fix":"eslint --cache . --fix && prettier -c . -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest","test:build":"TEST_BUILD=true vitest","test:full":"pnpm run test --run && pnpm run build && pnpm run test:build --run"},"dependencies":{"@babel/parser":"^7.25.4","@babel/types":"^7.25.4","source-map-js":"^1.2.0"},"devDependencies":{"@types/node":"^20.16.1","@vitest/coverage-v8":"^1.6.0","@vitest/ui":"^1.6.0","ast-types":"^0.16.1","changelogen":"^0.5.5","eslint":"^9.9.1","eslint-config-unjs":"^0.3.2","esno":"^4.7.0","giget":"^1.2.3","lint-staged":"^15.2.9","magicast":"workspace:*","prettier":"^3.3.3","recast":"^0.23.9","simple-git-hooks":"^2.11.1","source-map":"npm:source-map-js@latest","typescript":"^5.5.4","unbuild":"^2.0.0","vitest":"^1.6.0"},"resolutions":{"source-map":"npm:source-map-js@latest"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.15.9","pnpm":{"overrides":{"array-includes":"npm:@nolyfill/array-includes@latest","array.prototype.findlastindex":"npm:@nolyfill/array.prototype.findlastindex@latest","array.prototype.flat":"npm:@nolyfill/array.prototype.flat@latest","array.prototype.flatmap":"npm:@nolyfill/array.prototype.flatmap@latest","hasown":"npm:@nolyfill/hasown@latest","object.fromentries":"npm:@nolyfill/object.fromentries@latest","object.groupby":"npm:@nolyfill/object.groupby@latest","object.values":"npm:@nolyfill/object.values@latest"}},"_id":"magicast@0.3.5","gitHead":"2212670be0eeaf3ba6f97ffc39c2a40e5bf7f914","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"shasum":"8301c3c7d66704a0771eb1bad74274f0ec036739","size":122103,"noattachment":false,"key":"/magicast/-/magicast-0.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.3.5.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.3.5_1724749474260_0.19595425225905116"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-27T09:04:34.382Z","publish_time":1724749474382,"_source_registry_name":"default","_cnpm_publish_time":1724749474382},"0.3.4":{"name":"magicast","version":"0.3.4","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","prepare":"esno ./scripts/vendor.ts","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest","test:build":"TEST_BUILD=true vitest","test:full":"pnpm run test --run && pnpm run build && pnpm run test:build --run"},"dependencies":{"@babel/parser":"^7.24.4","@babel/types":"^7.24.0","source-map-js":"^1.2.0"},"devDependencies":{"@types/node":"^20.12.7","@vitest/coverage-v8":"^1.5.0","@vitest/ui":"^1.5.0","ast-types":"^0.16.1","changelogen":"^0.5.5","eslint":"^8.57.0","eslint-config-unjs":"^0.2.1","esno":"^4.7.0","giget":"^1.2.3","lint-staged":"^15.2.2","magicast":"workspace:*","prettier":"^3.2.5","recast":"^0.23.6","simple-git-hooks":"^2.11.1","source-map":"npm:source-map-js@latest","typescript":"^5.4.5","unbuild":"^2.0.0","vitest":"^1.5.0"},"resolutions":{"source-map":"npm:source-map-js@latest"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.15.6","pnpm":{"overrides":{"array-includes":"npm:@nolyfill/array-includes@latest","array.prototype.findlastindex":"npm:@nolyfill/array.prototype.findlastindex@latest","array.prototype.flat":"npm:@nolyfill/array.prototype.flat@latest","array.prototype.flatmap":"npm:@nolyfill/array.prototype.flatmap@latest","hasown":"npm:@nolyfill/hasown@latest","object.fromentries":"npm:@nolyfill/object.fromentries@latest","object.groupby":"npm:@nolyfill/object.groupby@latest","object.values":"npm:@nolyfill/object.values@latest"}},"_id":"magicast@0.3.4","gitHead":"be4576402652b20e506dfa6f258f1ddafc9047a5","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"bbda1791d03190a24b00ff3dd18151e7fd381d19","size":121868,"noattachment":false,"key":"/magicast/-/magicast-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.3.4.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.3.4_1712883251632_0.8341288863327516"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-12T00:54:11.849Z","publish_time":1712883251849,"_source_registry_name":"default","_cnpm_publish_time":1712883251849},"0.3.3":{"name":"magicast","version":"0.3.3","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","prepare":"esno ./scripts/vendor.ts","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest","test:build":"TEST_BUILD=true vitest","test:full":"pnpm run test --run && pnpm run build && pnpm run test:build--run"},"dependencies":{"@babel/parser":"^7.23.6","@babel/types":"^7.23.6","source-map-js":"^1.0.2"},"devDependencies":{"@types/node":"^20.11.0","@vitest/coverage-v8":"^1.2.0","@vitest/ui":"^1.2.0","ast-types":"^0.16.1","changelogen":"^0.5.5","eslint":"^8.56.0","eslint-config-unjs":"^0.2.1","esno":"^4.0.0","giget":"^1.2.1","lint-staged":"^15.2.0","magicast":"workspace:*","prettier":"^3.2.2","recast":"^0.23.4","simple-git-hooks":"^2.9.0","source-map":"npm:source-map-js@latest","typescript":"^5.3.3","unbuild":"^2.0.0","vitest":"^1.2.0"},"resolutions":{"source-map":"npm:source-map-js@latest"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.14.1","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"}},"gitHead":"aa0ac9352fa2bc0798e70e63623cb48d1a1897bc","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.3.3","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"a15760f982deec9dabc5f314e318d7c6bddcb27b","size":121407,"noattachment":false,"key":"/magicast/-/magicast-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.3.3.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.3.3_1705262441757_0.749818285264265"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-14T20:00:41.912Z","publish_time":1705262441912,"_source_registry_name":"default","_cnpm_publish_time":1705262441912},"0.3.2":{"name":"magicast","version":"0.3.2","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","prepare":"esno ./scripts/vendor.ts","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest","test:build":"TEST_BUILD=true vitest","test:full":"pnpm run test && pnpm run build && pnpm run test:build"},"dependencies":{"@babel/parser":"^7.23.3","@babel/types":"^7.23.3","source-map-js":"^1.0.2"},"devDependencies":{"@types/node":"^20.9.0","@vitest/coverage-v8":"^0.34.6","@vitest/ui":"^0.34.6","ast-types":"^0.16.1","changelogen":"^0.5.5","eslint":"^8.53.0","eslint-config-unjs":"^0.2.1","esno":"^0.17.0","giget":"^1.1.3","lint-staged":"^15.0.2","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","unbuild":"^2.0.0","vitest":"^0.34.6"},"resolutions":{"source-map":"npm:source-map-js@latest"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.10.2","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"}},"gitHead":"f9b707f8eee8bbc6f29aa1adb8bf50b69b0cdf77","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.3.2","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"42dcade5573ed8f10f5540f9d04964e21dba9130","size":121108,"noattachment":false,"key":"/magicast/-/magicast-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.3.2.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.3.2_1699662268382_0.6832716851407545"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-11T00:24:28.597Z","publish_time":1699662268597,"_source_registry_name":"default","_cnpm_publish_time":1699662268597},"0.3.1":{"name":"magicast","version":"0.3.1","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","prepare":"esno ./scripts/vendor.ts","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest","test:build":"TEST_BUILD=true vitest","test:full":"pnpm run test && pnpm run build && pnpm run test:build"},"dependencies":{"@babel/parser":"^7.23.3","@babel/types":"^7.23.3","source-map-js":"^1.0.2"},"devDependencies":{"@types/node":"^20.9.0","@vitest/coverage-v8":"^0.34.6","@vitest/ui":"^0.34.6","ast-types":"^0.16.1","changelogen":"^0.5.5","eslint":"^8.53.0","eslint-config-unjs":"^0.2.1","esno":"^0.17.0","giget":"^1.1.3","lint-staged":"^15.0.2","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","unbuild":"^2.0.0","vitest":"^0.34.6"},"resolutions":{"source-map":"npm:source-map-js@latest"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.10.2","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"}},"gitHead":"32be90efe6be8036088c0a6c39c740f3f0efb13a","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.3.1","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"6b8977f448a122026dd2269b823974cb76019f83","size":121098,"noattachment":false,"key":"/magicast/-/magicast-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.3.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.3.1_1699543348229_0.4046902365773264"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-09T15:22:28.457Z","publish_time":1699543348457,"_source_registry_name":"default","_cnpm_publish_time":1699543348457},"0.3.0":{"name":"magicast","version":"0.3.0","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","prepare":"esno ./scripts/vendor.ts","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","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.19","source-map-js":"^1.0.2"},"devDependencies":{"@types/node":"^20.6.0","@vitest/coverage-v8":"^0.34.4","@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","unbuild":"^2.0.0","vitest":"^0.34.4"},"resolutions":{"source-map":"npm:source-map-js@latest"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"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"}},"gitHead":"1a9f943cac75b6c0ec769c22c632e1d483ad9c20","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.3.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"ff290510757da4cb55bc15cb90c9ef34db80a7f5","size":121108,"noattachment":false,"key":"/magicast/-/magicast-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.3.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.3.0_1694777286619_0.13570080088065128"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-15T11:28:06.881Z","publish_time":1694777286881,"_source_registry_name":"default","_cnpm_publish_time":1694777286881},"0.2.11":{"name":"magicast","version":"0.2.11","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.22.16","@babel/types":"^7.22.17","recast":"^0.23.4"},"devDependencies":{"@types/node":"^20.6.0","@vitest/coverage-v8":"^0.34.4","@vitest/ui":"^0.34.4","changelogen":"^0.5.5","eslint":"^8.49.0","eslint-config-unjs":"^0.2.1","lint-staged":"^14.0.1","prettier":"^3.0.3","simple-git-hooks":"^2.9.0","typescript":"^5.2.2","unbuild":"^2.0.0","vitest":"^0.34.4"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.7.4","gitHead":"0d65b2301b928484de4f8ead6928f2553d3746aa","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.11","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"d5d9339ec59e5322cf331460d8e3db2f6585f5d5","size":22269,"noattachment":false,"key":"/magicast/-/magicast-0.2.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.11.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.11_1694654248146_0.34234532210223323"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-14T01:17:28.514Z","publish_time":1694654248514,"_source_registry_name":"default","_cnpm_publish_time":1694654248514},"0.2.10":{"name":"magicast","version":"0.2.10","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.22.7","@babel/types":"^7.22.5","recast":"^0.23.3"},"devDependencies":{"@types/node":"^20.4.5","@vitest/coverage-c8":"^0.33.0","@vitest/ui":"^0.33.0","changelogen":"^0.5.4","eslint":"^8.45.0","eslint-config-unjs":"^0.2.1","lint-staged":"^13.2.3","prettier":"^2.8.8","simple-git-hooks":"^2.9.0","typescript":"^5.1.6","unbuild":"^1.2.1","vitest":"^0.33.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.6.10","gitHead":"4faf4870cafa6752261dfd20cfcc152b9d4043cb","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.10","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"648240897aeac561168caf79e38960a6c2b4969c","size":19869,"noattachment":false,"key":"/magicast/-/magicast-0.2.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.10.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.10_1690429825694_0.558172438415671"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-27T03:50:25.864Z","publish_time":1690429825864,"_source_registry_name":"default","_cnpm_publish_time":1690429825864},"0.2.9":{"name":"magicast","version":"0.2.9","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.22.4","@babel/types":"^7.22.4","recast":"^0.23.2"},"devDependencies":{"@types/node":"^18.16.16","@vitest/coverage-c8":"^0.31.2","@vitest/ui":"^0.31.2","changelogen":"^0.5.3","eslint":"^8.41.0","eslint-config-unjs":"^0.2.0","lint-staged":"^13.2.2","prettier":"^2.8.8","simple-git-hooks":"^2.8.1","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.31.2"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.6.0","gitHead":"d9ef2ebb3224e0061bcecc0c365b768d271b140f","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.9","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"9b5de1c6ba40b3fa626834017f0f11800a033cbe","size":18853,"noattachment":false,"key":"/magicast/-/magicast-0.2.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.9.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.9_1685538955554_0.09886609933708401"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-31T13:15:55.788Z","publish_time":1685538955788,"_source_registry_name":"default","_cnpm_publish_time":1685538955788},"0.2.8":{"name":"magicast","version":"0.2.8","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.21.9","@babel/types":"^7.21.5","recast":"^0.23.2"},"devDependencies":{"@types/node":"^18.16.14","@vitest/coverage-c8":"^0.31.1","@vitest/ui":"^0.31.1","changelogen":"^0.5.3","eslint":"^8.41.0","eslint-config-unjs":"^0.1.0","lint-staged":"^13.2.2","prettier":"^2.8.8","simple-git-hooks":"^2.8.1","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.31.1"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.5.1","gitHead":"9edc7f500f0f5e1609c5e43468332a92fead45f0","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.8","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"02b298c65fbc5b7d1fce52ef779c59caf68cc9cf","size":18827,"noattachment":false,"key":"/magicast/-/magicast-0.2.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.8.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.8_1684919826290_0.6148045175514358"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-24T09:17:06.515Z","publish_time":1684919826515,"_source_registry_name":"default","_cnpm_publish_time":1684919826515},"0.2.7":{"name":"magicast","version":"0.2.7","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.21.8","@babel/types":"^7.21.5","recast":"^0.23.2"},"devDependencies":{"@types/node":"^18.16.10","@vitest/coverage-c8":"^0.31.0","@vitest/ui":"^0.31.0","changelogen":"^0.5.3","eslint":"^8.40.0","eslint-config-unjs":"^0.1.0","lint-staged":"^13.2.2","prettier":"^2.8.8","simple-git-hooks":"^2.8.1","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.31.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.5.1","gitHead":"c71901332f2c981463a4cc0408b916484faf96ef","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.7","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"bb31576b23566ecb230e561575199a09d8a5d1bd","size":18818,"noattachment":false,"key":"/magicast/-/magicast-0.2.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.7.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.7_1684260489217_0.8778350530991328"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-16T18:08:09.419Z","publish_time":1684260489419,"_source_registry_name":"default","_cnpm_publish_time":1684260489419},"0.2.6":{"name":"magicast","version":"0.2.6","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.21.8","@babel/types":"^7.21.5","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.16.5","@vitest/coverage-c8":"^0.31.0","@vitest/ui":"^0.31.0","changelogen":"^0.5.3","eslint":"^8.40.0","eslint-config-unjs":"^0.1.0","lint-staged":"^13.2.2","prettier":"^2.8.8","simple-git-hooks":"^2.8.1","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.31.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.4.0","gitHead":"63bdc374d65cd4fa7235318717e946e8faf6db96","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.6","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"08c9f1900177ca1896e9c07981912171d4ed8ec1","size":18796,"noattachment":false,"key":"/magicast/-/magicast-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.6.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.6_1683555484224_0.6381529874881477"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-08T14:18:04.384Z","publish_time":1683555484384,"_source_registry_name":"default","_cnpm_publish_time":1683555484384},"0.2.5":{"name":"magicast","version":"0.2.5","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./dist/helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm run test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.21.8","@babel/types":"^7.21.5","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.16.5","@vitest/coverage-c8":"^0.31.0","@vitest/ui":"^0.31.0","changelogen":"^0.5.3","eslint":"^8.40.0","eslint-config-unjs":"^0.1.0","lint-staged":"^13.2.2","prettier":"^2.8.8","simple-git-hooks":"^2.8.1","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.31.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.4.0","gitHead":"16034fe342e314387164d901403283020a43c6dd","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.5","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"c3a082483f07ebeb375f61f3c0219cd1737f9fe4","size":18748,"noattachment":false,"key":"/magicast/-/magicast-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.5.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.5_1683379673941_0.2673851374125429"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-06T13:27:54.089Z","publish_time":1683379674089,"_source_registry_name":"default","_cnpm_publish_time":1683379674089},"0.2.4":{"name":"magicast","version":"0.2.4","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./dist/helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm test run && changelogen --release && npm publish && git push --follow-tags","test":"vitest"},"dependencies":{"@babel/parser":"^7.21.4","@babel/types":"^7.21.4","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.15.12","@vitest/coverage-c8":"^0.30.1","@vitest/ui":"^0.30.1","changelogen":"^0.5.3","eslint":"^8.38.0","eslint-config-unjs":"^0.1.0","lint-staged":"^13.2.1","prettier":"^2.8.7","simple-git-hooks":"^2.8.1","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.30.1"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*.{ts,js,mjs,cjs}":["eslint --fix","prettier -w"]},"packageManager":"pnpm@8.3.1","gitHead":"d5565e3d012b42723212f8b863588d80ed610621","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.4","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"73cf3e88166ec9db724709b1871553b3e6817400","size":18555,"noattachment":false,"key":"/magicast/-/magicast-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.4.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.4_1682003484012_0.9298434937412252"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-20T15:11:24.184Z","publish_time":1682003484184,"_cnpm_publish_time":1682003484184},"0.2.3":{"name":"magicast","version":"0.2.3","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./dist/helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"@babel/parser":"^7.21.4","@babel/types":"^7.21.4","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.15.11","@vitest/coverage-c8":"^0.29.8","@vitest/ui":"^0.29.8","changelogen":"^0.5.2","eslint":"^8.37.0","eslint-config-unjs":"^0.1.0","prettier":"^2.8.7","typescript":"^5.0.3","unbuild":"^1.2.0","vitest":"^0.29.8"},"packageManager":"pnpm@8.1.1","gitHead":"f8dc7963ef22664c5ed90f54d2fb29df6bf70f22","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.3","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"38738f4edec99f71508f7a2c6e1e1d702f429546","size":18079,"noattachment":false,"key":"/magicast/-/magicast-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.3.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.3_1681040268963_0.7030680172412305"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-09T11:37:49.190Z","publish_time":1681040269190,"_cnpm_publish_time":1681040269190},"0.2.2":{"name":"magicast","version":"0.2.2","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./dist/helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","dev:ui":"vitest dev --ui","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"@babel/parser":"^7.21.4","@babel/types":"^7.21.4","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.15.11","@vitest/coverage-c8":"^0.29.8","@vitest/ui":"^0.29.8","changelogen":"^0.5.2","eslint":"^8.37.0","eslint-config-unjs":"^0.1.0","prettier":"^2.8.7","typescript":"^5.0.3","unbuild":"^1.2.0","vitest":"^0.29.8"},"packageManager":"pnpm@8.1.1","gitHead":"581fd16d27f8837d82598bc69a3e36d479cfaeb9","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.2","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"c23da008f9967056cc4816f91c58a41247f634ba","size":17799,"noattachment":false,"key":"/magicast/-/magicast-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.2.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.2_1680880823187_0.9443739566635714"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-07T15:20:23.339Z","publish_time":1680880823339,"_cnpm_publish_time":1680880823339},"0.2.1":{"name":"magicast","version":"0.2.1","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./dist/helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"@babel/parser":"^7.21.4","@babel/types":"^7.21.4","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.15.11","@vitest/coverage-c8":"^0.29.8","changelogen":"^0.5.2","eslint":"^8.37.0","eslint-config-unjs":"^0.1.0","prettier":"^2.8.7","typescript":"^5.0.3","unbuild":"^1.2.0","vitest":"^0.29.8"},"packageManager":"pnpm@8.1.1","gitHead":"df326b23e1ccabf5a9d7211e6ac6e031a90749d9","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.1","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"1525dc62f06fbea3c30245a42968b69b2890821c","size":17650,"noattachment":false,"key":"/magicast/-/magicast-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.1_1680768469950_0.3864268054390363"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-06T08:07:50.108Z","publish_time":1680768470108,"_cnpm_publish_time":1680768470108},"0.2.0":{"name":"magicast","version":"0.2.0","description":"Modify a JS/TS file and write back magically just like JSON!","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./helpers":{"types":"./dist/helpers.d.ts","import":"./dist/helpers.mjs","require":"./dist/helpers.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","typecheck":"tsc --noEmit","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"@babel/parser":"^7.21.4","@babel/types":"^7.21.4","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.15.11","@vitest/coverage-c8":"^0.29.8","changelogen":"^0.5.2","eslint":"^8.37.0","eslint-config-unjs":"^0.1.0","prettier":"^2.8.7","typescript":"^5.0.3","unbuild":"^1.2.0","vitest":"^0.29.8"},"packageManager":"pnpm@8.1.1","gitHead":"510d4e3af223688df06b23a142d18f2d866150a7","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.2.0","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"922dd91721b99eae28c83f559699140d55c07a03","size":17125,"noattachment":false,"key":"/magicast/-/magicast-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.2.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.2.0_1680686581484_0.18250798612724872"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-05T09:23:01.654Z","publish_time":1680686581654,"_cnpm_publish_time":1680686581654},"0.1.1":{"name":"magicast","version":"0.1.1","description":"[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href]","repository":{"type":"git","url":"git+https://github.com/unjs/magicast.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"@babel/parser":"^7.20.15","@types/estree":"^1.0.0","recast":"^0.22.0"},"devDependencies":{"@types/node":"^18.13.0","@vitest/coverage-c8":"^0.28.5","changelogen":"^0.4.1","eslint":"^8.34.0","eslint-config-unjs":"^0.1.0","prettier":"^2.8.4","typescript":"^4.9.5","unbuild":"^1.1.1","vitest":"^0.28.5"},"packageManager":"pnpm@7.27.0","gitHead":"69536e643160bc2da64836828a5dbd3d7b18e376","bugs":{"url":"https://github.com/unjs/magicast/issues"},"homepage":"https://github.com/unjs/magicast#readme","_id":"magicast@0.1.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"f3cfc60be9fe56507240d3b55be73f4328f7b222","size":5771,"noattachment":false,"key":"/magicast/-/magicast-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.1.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.1.1_1676463661348_0.47369467059423376"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-15T12:21:01.559Z","publish_time":1676463661559,"_cnpm_publish_time":1676463661559},"0.0.0":{"name":"magicast","version":"0.0.0","_id":"magicast@0.0.0","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"d0461a30134058ef3e831861f8732a0906b420af","size":142,"noattachment":false,"key":"/magicast/-/magicast-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/magicast/download/magicast-0.0.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/magicast_0.0.0_1676460447413_0.44604875719860226"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-15T11:27:27.527Z","publish_time":1676460447527,"_cnpm_publish_time":1676460447527}},"readme":"# ???? Magicast\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![Codecov][codecov-src]][codecov-href]\n[![License][license-src]][license-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n\nProgrammatically modify JavaScript and TypeScript source codes with a simplified, elegant and familiar syntax. Built on top of the [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) parsed by [recast](https://github.com/benjamn/recast) and [babel](https://babeljs.io/).\n\n❯ ???????? **Magical** modify a JS/TS file and write back magically just like JSON!<br>\n❯ ???? **Exports/Import** manipulate module's imports and exports at ease<br>\n❯ ???? **Function Arguments** easily manipulate arguments passed to a function call, like `defineConfig()`<br>\n❯ ???? **Smart Formatting** preseves the formatting style (quotes, tabs, etc.) from the original code<br>\n❯ ????‍???? **Readable** get rid of the complexity of AST manipulation and make your code super readable<br>\n\n## Install\n\nInstall npm package:\n\n```sh\nyarn add --dev magicast\n\nnpm install -D magicast\n\npnpm add -D magicast\n```\n\nImport utilities:\n\n```js\nimport { parseModule, generateCode, builders, createNode } from \"magicast\";\n```\n\n## Examples\n\n**Example:** Modify a file:\n\n`config.js`:\n\n```js\nexport default {\n  foo: [\"a\"],\n};\n```\n\nCode to modify and append `b` to `foo` prop of defaultExport:\n\n```js\nimport { loadFile, writeFile } from \"magicast\";\n\nconst mod = await loadFile(\"config.js\");\n\nmod.exports.default.foo.push(\"b\");\n\nawait writeFile(mod, \"config.js\");\n```\n\nUpdated `config.js`:\n\n```js\nexport default {\n  foo: [\"a\", \"b\"],\n};\n```\n\n**Example:** Directly use AST utils:\n\n```js\nimport { parseModule, generateCode } from \"magicast\";\n\n// Parse to AST\nconst mod = parseModule(`export default { }`);\n\n// Ensure foo is an array\nmod.exports.default.foo ||= [];\n// Add a new array member\nmod.exports.default.foo.push(\"b\");\nmod.exports.default.foo.unshift(\"a\");\n\n// Generate code\nconst { code, map } = generateCode(mod);\n```\n\nGenerated code:\n\n```js\nexport default {\n  foo: [\"a\", \"b\"],\n};\n```\n\n**Example:** Get the AST directly:\n\n```js\nimport { parseModule, generateCode } from \"magicast\";\n\nconst mod = parseModule(`export default { }`);\n\nconst ast = mod.exports.default.$ast;\n// do something with ast\n```\n\n**Example:** Function arguments:\n\n```js\nimport { parseModule, generateCode } from \"magicast\";\n\nconst mod = parseModule(`export default defineConfig({ foo: 'bar' })`);\n\n// Support for both bare object export and `defineConfig` wrapper\nconst options =\n  mod.exports.default.$type === \"function-call\"\n    ? mod.exports.default.$args[0]\n    : mod.exports.default;\n\nconsole.log(options.foo); // bar\n```\n\n**Example:** Create a function call:\n\n```js\nimport { parseModule, generateCode, builders } from \"magicast\";\n\nconst mod = parseModule(`export default {}`);\n\nconst options = (mod.exports.default.list = builders.functionCall(\n  \"create\",\n  [1, 2, 3],\n));\n\nconsole.log(mod.generateCode()); // export default { list: create([1, 2, 3]) }\n```\n\n## Notes\n\nAs JavaScript is a very dynamic language, you should be aware that Magicast's convention **CAN NOT cover all possible cases**. Magicast serves as a simple and maintainable interface to update static-ish JavaScript code. When interacting with Magicast node, be aware that every option might have chance to throw an error depending on the input code. We recommend to always wrap the code in a `try/catch` block (even better to do some defensive coding), for example:\n\n```ts\nimport { loadFile, writeFile } from \"magicast\";\n\nfunction updateConfig() {\n  try {\n    const mod = await loadFile(\"config.js\");\n\n    mod.exports.default.foo.push(\"b\");\n\n    await writeFile(mod);\n  } catch {\n    console.error(\"Unable to update config.js\");\n    console.error(\n      \"Please update it manually with the following instructions: ...\",\n    );\n    // handle error\n  }\n}\n```\n\n## Browser / Worker Support\n\nThe main export of `magicast` contains filesystem utilities. If you want to use it in a browser or worker, import from `magicast/core` instead.\n\n```js\nimport { parseModule } from \"magicast/core\";\n```\n\n## High Level Helpers\n\nWe also experiment to provide a few high level helpers to make common tasks easier. You could import them from `magicast/helpers`. They might be moved to a separate package in the future.\n\n```js\nimport {\n  deepMergeObject,\n  addNuxtModule,\n  addVitePlugin,\n  // ...\n} from \"magicast/helpers\";\n```\n\nWe recommend to check out the [source code](./src/helpers) and [test cases](./test/helpers) for more details.\n\n## Development\n\n- Clone this repository\n- Install latest LTS version of [Node.js](https://nodejs.org/en/)\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\n## License\n\nMade with ????\n\nPublished under [MIT License](./LICENSE).\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/magicast?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-version-href]: https://npmjs.com/package/magicast\n[npm-downloads-src]: https://img.shields.io/npm/dm/magicast?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/magicast\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/magicast/main?style=flat&colorA=18181B&colorB=F0DB4F\n[codecov-href]: https://codecov.io/gh/unjs/magicast\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/magicast?style=flat&colorA=18181B&colorB=F0DB4F\n[bundle-href]: https://bundlephobia.com/result?p=magicast\n[license-src]: https://img.shields.io/github/license/unjs/magicast.svg?style=flat&colorA=18181B&colorB=F0DB4F\n[license-href]: https://github.com/unjs/magicast/blob/main/LICENSE\n[jsdocs-src]: https://img.shields.io/badge/jsDocs.io-reference-18181B?style=flat&colorA=18181B&colorB=F0DB4F\n[jsdocs-href]: https://www.jsdocs.io/package/magicast\n","_attachments":{},"homepage":"https://github.com/unjs/magicast#readme","bugs":{"url":"https://github.com/unjs/magicast/issues"},"license":"MIT"}