babel-plugin-codegen
Advanced tools
Comparing version 1.1.3 to 1.2.0
'use strict'; | ||
// const printAST = require('ast-pretty-print') | ||
var _require = require('babel-macros'), | ||
createMacro = _require.createMacro; | ||
var replace = require('./replace'); | ||
// this implements the babel-macros v0.5.2 API | ||
module.exports = codegenMacros; | ||
module.exports = createMacro(codegenMacros); | ||
@@ -9,0 +11,0 @@ function codegenMacros(_ref) { |
{ | ||
"name": "babel-plugin-codegen", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Generate code at build-time", | ||
@@ -11,5 +11,9 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"start": "nps", | ||
"test": "nps test", | ||
"precommit": "lint-staged && opt --in pre-commit --exec \"npm start validate\"" | ||
"add-contributor": "kcd-scripts contributors add", | ||
"build": "kcd-scripts build", | ||
"lint": "kcd-scripts lint", | ||
"test": "kcd-scripts test", | ||
"test:update": "kcd-scripts test --updateSnapshot", | ||
"validate": "kcd-scripts validate", | ||
"precommit": "kcd-scripts precommit" | ||
}, | ||
@@ -29,34 +33,24 @@ "files": [ | ||
"dependencies": { | ||
"babel-core": "^6.25.0", | ||
"babel-register": "^6.25.0", | ||
"babel-template": "^6.25.0", | ||
"babel-core": "^6.26.0", | ||
"babel-macros": "^1.0.0", | ||
"babel-register": "^6.26.0", | ||
"babel-template": "^6.26.0", | ||
"require-from-string": "^1.2.1" | ||
}, | ||
"devDependencies": { | ||
"all-contributors-cli": "^4.3.0", | ||
"ast-pretty-print": "^2.0.0", | ||
"babel-cli": "^6.24.1", | ||
"babel-jest": "^20.0.3", | ||
"babel-macros": "^0.5.2", | ||
"babel-plugin-tester": "^3.3.0", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "^6.23.0", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-register": "^6.24.1", | ||
"eslint": "^4.2.0", | ||
"eslint-config-kentcdodds": "^12.4.1", | ||
"husky": "^0.14.3", | ||
"jest": "^20.0.4", | ||
"lint-staged": "^4.0.1", | ||
"nps": "^5.4.0", | ||
"nps-utils": "^1.2.0", | ||
"opt-cli": "^1.5.1", | ||
"prettier-eslint-cli": "^4.1.1" | ||
"babel-plugin-tester": "^4.0.0", | ||
"kcd-scripts": "^0.4.0" | ||
}, | ||
"lint-staged": { | ||
"*.+(js|json)": [ | ||
"prettier-eslint --write", | ||
"git add" | ||
] | ||
"eslintConfig": { | ||
"extends": "./node_modules/kcd-scripts/eslint.js" | ||
}, | ||
"eslintIgnore": [ | ||
"node_modules", | ||
"coverage", | ||
"dist" | ||
], | ||
"babel": { | ||
"presets": "kcd-scripts/babel" | ||
}, | ||
"repository": { | ||
@@ -63,0 +57,0 @@ "type": "git", |
@@ -24,2 +24,4 @@ <div align="center"> | ||
<a href="https://app.codesponsor.io/link/PKGFLnhDiFvsUA5P4kAXfiPs/kentcdodds/babel-plugin-codegen" rel="nofollow"><img src="https://app.codesponsor.io/embed/PKGFLnhDiFvsUA5P4kAXfiPs/kentcdodds/babel-plugin-codegen.svg" style="width: 888px; height: 68px;" alt="Sponsor" /></a> | ||
## The problem | ||
@@ -26,0 +28,0 @@ |
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
21075
3
260
285
5
+ Addedbabel-macros@^1.0.0
+ Addedargparse@1.0.10(transitive)
+ Addedbabel-macros@1.2.0(transitive)
+ Addedcosmiconfig@3.1.0(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-directory@0.3.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedparse-json@3.0.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedsprintf-js@1.0.3(transitive)
Updatedbabel-core@^6.26.0
Updatedbabel-register@^6.26.0
Updatedbabel-template@^6.26.0