Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

magicast

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magicast - npm Package Compare versions

Comparing version 0.2.11 to 0.3.0

dist/shared/magicast.8e177158.d.cts

3

dist/helpers.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc