attr-transform.macro
Advanced tools
Comparing version 0.0.13 to 0.0.14
{ | ||
"name": "attr-transform.macro", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "jsx attribute pre-processor", | ||
"main": "attr-transform.macro.js", | ||
"source": "src/attr-transform.macro.ts", | ||
"types": "types/attr-transform.macro.d.ts", | ||
"type": "module", | ||
"source": "./src/macro.ts", | ||
"types": "./types/*.d.ts", | ||
"main": "./build/macro.cjs", | ||
"module": "./build/macro.es.js", | ||
"unpkg": "./build/macro.umd.js", | ||
"exports": { | ||
"require": { | ||
"default": "./build/macro.cjs", | ||
"types": "./build/macro.d.ts" | ||
}, | ||
"import": { | ||
"default": "./build/macro.es.js", | ||
"types": "./build/macro.d.ts" | ||
} | ||
}, | ||
"files": [ | ||
"attr-transform.macro.js", | ||
"attr-transform.macro.js.map", | ||
"types/attr-transform.config.d.ts", | ||
"types/attr-transform.macro.d.ts" | ||
"build", | ||
"types" | ||
], | ||
"scripts": { | ||
"build": "microbundle", | ||
"dev": "concurrently yarn:dev:* -p none", | ||
"dev:macro": "NODE_ENV=dev nodemon -q --watch './src/**/*.ts' --watch package.json -x \"yarn build:macro\" --delay .2", | ||
"dev:sandbox": "NODE_ENV=dev nodemon -q --watch sandbox/in.tsx --watch attr-transform.config.js --watch package.json --watch attr-transform.macro.js -x \"yarn build:sandbox\" --delay .2", | ||
"build": "yarn run build:macro", | ||
"build:macro": "microbundle -i \"./src/attr-transform.macro.ts\" -f cjs -o ./attr-transform.macro.js --target node", | ||
"build:sandbox": "babel sandbox/in.tsx -o sandbox/out.js", | ||
"dev:sandbox1": "NODE_ENV=dev nodemon -q --watch './sandbox/in1.tsx' --watch attr-transform.config.js --watch build/attr-transform.macro.js -x \"yarn build:sandbox1\" --delay .2", | ||
"dev:sandbox2": "NODE_ENV=dev nodemon -q --watch './sandbox/in2.tsx' --watch attr-transform.config.js --watch build/attr-transform.macro.js -x \"yarn build:sandbox2\" --delay .2", | ||
"build:macro": "microbundle", | ||
"build:sandbox1": "babel sandbox/in1.tsx -o sandbox/out/in1.jsx", | ||
"build:sandbox2": "babel sandbox/in2.tsx -o sandbox/out/in2.jsx", | ||
"test": "yarn build && jest", | ||
@@ -25,10 +38,2 @@ "test:update": "yarn build && jest --u", | ||
}, | ||
"nodemonConfig": { | ||
"ignore": [], | ||
"watch": [ | ||
"src" | ||
], | ||
"ext": "ts", | ||
"delay": "0" | ||
}, | ||
"repository": { | ||
@@ -56,29 +61,30 @@ "type": "git", | ||
"dependencies": { | ||
"@babel/template": "^7.21.9", | ||
"@babel/template": "^7.22.5", | ||
"babel-plugin-macros": "^3.1.0", | ||
"cli-color": "^2.0.3" | ||
"cli-color": "^2.0.3", | ||
"node-x-path": "^0.0.32" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.21.5", | ||
"@babel/core": "^7.22.1", | ||
"@babel/parser": "^7.22.4", | ||
"@babel/plugin-syntax-jsx": "^7.21.4", | ||
"@babel/plugin-transform-react-jsx": "^7.22.3", | ||
"@babel/preset-env": "^7.22.4", | ||
"@babel/preset-react": "^7.22.3", | ||
"@babel/preset-typescript": "^7.21.5", | ||
"@babel/template": "^7.21.9", | ||
"@babel/traverse": "^7.22.4", | ||
"@babel/types": "^7.22.4", | ||
"@emotion/react": "^11.11.0", | ||
"@babel/cli": "^7.22.5", | ||
"@babel/core": "^7.22.5", | ||
"@babel/parser": "^7.22.5", | ||
"@babel/plugin-syntax-jsx": "^7.22.5", | ||
"@babel/plugin-transform-react-jsx": "^7.22.5", | ||
"@babel/preset-env": "^7.22.5", | ||
"@babel/preset-react": "^7.22.5", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@babel/template": "^7.22.5", | ||
"@babel/traverse": "^7.22.5", | ||
"@babel/types": "^7.22.5", | ||
"@emotion/react": "^11.11.1", | ||
"@emotion/styled": "^11.11.0", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/babel-plugin-macros": "^3.1.0", | ||
"@types/babel__traverse": "^7.20.0", | ||
"@types/babel__traverse": "^7.20.1", | ||
"@types/cli-color": "^2.0.2", | ||
"@types/jest": "^29.5.1", | ||
"@types/node": "^20.2.5", | ||
"@types/react": "^18.2.7", | ||
"@types/jest": "^29.5.2", | ||
"@types/node": "^20.3.0", | ||
"@types/react": "^18.2.11", | ||
"babel-plugin-tester": "^11.0.4", | ||
"concurrently": "^8.0.1", | ||
"concurrently": "^8.2.0", | ||
"glob-all": "^3.3.1", | ||
@@ -91,3 +97,3 @@ "jest": "^29.5.0", | ||
"resolve": "^1.22.2", | ||
"rome": "12.1.2", | ||
"rome": "12.1.3", | ||
"tailwindcss": "^3.3.2", | ||
@@ -97,5 +103,5 @@ "ts-jest": "^29.1.0", | ||
"twin.macro": "^3.3.1", | ||
"typescript": "^5.0.4", | ||
"x-stringify": "^0.0.1" | ||
"typescript": "^5.1.3", | ||
"x-stringify": "^0.0.5" | ||
} | ||
} |
@@ -489,4 +489,4 @@ # attr-transform.macro | ||
- `onlyTranformation` only print the transformation result (not the full debug info) | ||
- `onlyFiles` Only print to file matching this string / regex (default: undefined = all files) | ||
```ts | ||
@@ -493,0 +493,0 @@ module.exports = { |
@@ -20,2 +20,3 @@ import { MacroParams } from "babel-plugin-macros" | ||
onlyTranformation?: true | ||
onlyFiles?: string | RegExp | (string | RegExp)[] | ||
colors?: boolean | ||
@@ -22,0 +23,0 @@ } |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
210438
23
Yes
4
448
3
3
1
+ Addednode-x-path@^0.0.32
+ Addednode-x-path@0.0.32(transitive)
Updated@babel/template@^7.22.5