@agoric/transform-bang
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -234,11 +234,11 @@ 'use strict'; | ||
// Promise.resolve(...).get/put/post/delete | ||
const babelAst = parse(rs.src, { | ||
const ast = parse(rs.src, { | ||
plugins: ['infixBang'], | ||
}); | ||
// Create the source from the ast. | ||
const output = generate(babelAst, {}, rs.src); | ||
const output = generate(ast, {}, rs.src); | ||
// console.log(`have src`, output.code); | ||
return { | ||
...rs, | ||
babelAst, | ||
ast, | ||
src: output.code, | ||
@@ -245,0 +245,0 @@ }; |
@@ -232,11 +232,11 @@ /** | ||
// Promise.resolve(...).get/put/post/delete | ||
const babelAst = parse(rs.src, { | ||
const ast = parse(rs.src, { | ||
plugins: ['infixBang'], | ||
}); | ||
// Create the source from the ast. | ||
const output = generate(babelAst, {}, rs.src); | ||
const output = generate(ast, {}, rs.src); | ||
// console.log(`have src`, output.code); | ||
return { | ||
...rs, | ||
babelAst, | ||
ast, | ||
src: output.code, | ||
@@ -243,0 +243,0 @@ }; |
@@ -238,11 +238,11 @@ (function (global, factory) { | ||
// Promise.resolve(...).get/put/post/delete | ||
const babelAst = parse(rs.src, { | ||
const ast = parse(rs.src, { | ||
plugins: ['infixBang'], | ||
}); | ||
// Create the source from the ast. | ||
const output = generate(babelAst, {}, rs.src); | ||
const output = generate(ast, {}, rs.src); | ||
// console.log(`have src`, output.code); | ||
return { | ||
...rs, | ||
babelAst, | ||
ast, | ||
src: output.code, | ||
@@ -249,0 +249,0 @@ }; |
{ | ||
"name": "@agoric/transform-bang", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "transform-bang", | ||
@@ -15,2 +15,7 @@ "main": "dist/transform-bang.cjs.js", | ||
"devDependencies": { | ||
"@agoric/acorn-infix-bang": "0.0.3", | ||
"@agoric/babel-parser": "^7.5.0-infixBang.1", | ||
"@babel/generator": "^7.5.0", | ||
"acorn": "^6.2.0", | ||
"astring": "^1.4.0", | ||
"eslint": "^5.11.1", | ||
@@ -25,8 +30,6 @@ "eslint-config-airbnb": "^17.1.0", | ||
"rollup": "^1.16.6", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"tap-spec": "^5.0.0", | ||
"tape": "^4.9.2", | ||
"tape-promise": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"@agoric/babel-parser": "^7.5.0-infixBang.1", | ||
"@babel/generator": "^7.5.0" | ||
"tape-promise": "^4.0.0" | ||
}, | ||
@@ -33,0 +36,0 @@ "dependencies": { |
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
37239
18