Socket
Socket
Sign inDemoInstall

babel-plugin-knifecycle

Package Overview
Dependencies
4
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 2.0.0

dist/index.mjs

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# [2.0.0](https://github.com/nfroidure/babel-plugin-knifecycle/compare/v1.2.0...v2.0.0) (2020-05-17)
# [1.2.0](https://github.com/nfroidure/babel-plugin-knifecycle/compare/v1.1.1...v1.2.0) (2020-03-11)

@@ -2,0 +6,0 @@

51

package.json
{
"name": "babel-plugin-knifecycle",
"version": "1.2.0",
"version": "2.0.0",
"description": "A Babel plugin to transform Knifecycle auto* functions to their raw equivalent.",

@@ -11,3 +11,3 @@ "keywords": [

],
"main": "dist/index.js",
"main": "dist/index",
"metapak": {

@@ -37,3 +37,5 @@ "configs": [

"cli": "env NODE_ENV=${NODE_ENV:-cli}",
"compile": "babel src --out-dir=dist --source-maps=true",
"compile": "rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs",
"compile:cjs": "babel --env-name=cjs --out-dir=dist --source-maps=true src",
"compile:mjs": "babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src",
"cover": "npm run jest -- --coverage",

@@ -57,19 +59,22 @@ "coveralls": "npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",

"license": "MIT",
"dependencies": {
"knifecycle": "^9.1.1"
},
"devDependencies": {
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/register": "^7.8.3",
"babel-eslint": "^10.0.3",
"commitizen": "^4.0.3",
"conventional-changelog-cli": "^2.0.31",
"coveralls": "^3.0.9",
"cz-conventional-changelog": "^3.0.2",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^24.9.0",
"metapak": "^3.1.6",
"metapak-nfroidure": "9.8.2",
"prettier": "^1.19.1"
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/register": "^7.9.0",
"babel-eslint": "^10.1.0",
"commitizen": "^4.1.2",
"conventional-changelog-cli": "^2.0.34",
"coveralls": "^3.1.0",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^7.0.0",
"eslint-plugin-prettier": "^3.1.3",
"jest": "^26.0.1",
"metapak": "^3.1.9",
"metapak-nfroidure": "10.2.0",
"prettier": "^2.0.5"
},

@@ -82,3 +87,3 @@ "repository": {

"engines": {
"node": ">=8.12.0"
"node": ">=10.19.0"
},

@@ -161,3 +166,3 @@ "files": [

"targets": {
"node": "8.12.0"
"node": "10.19.0"
}

@@ -175,5 +180,3 @@ }

"homepage": "https://github.com/nfroidure/babel-plugin-knifecycle#readme",
"dependencies": {
"knifecycle": "^8.0.1"
}
"module": "dist/index.mjs"
}

@@ -11,3 +11,3 @@ import { parseName } from 'knifecycle/dist/util';

babel.types.arrayExpression(
injections.map(i => babel.types.stringLiteral(i)),
injections.map((i) => babel.types.stringLiteral(i)),
),

@@ -36,3 +36,3 @@ );

babel.types.arrayExpression(
injections.map(i => babel.types.stringLiteral(i)),
injections.map((i) => babel.types.stringLiteral(i)),
),

@@ -91,3 +91,3 @@ ...autoFunctionPath.node.arguments.slice(1),

);
_forEachCallExpression(path, localNode, path => {
_forEachCallExpression(path, localNode, (path) => {
const functionDefinitionPath = _findFunctionDefinitionPath(

@@ -124,3 +124,3 @@ path,

binding.referencePaths.forEach(path => {
binding.referencePaths.forEach((path) => {
if (!path.parentPath.isCallExpression()) {

@@ -127,0 +127,0 @@ return;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc