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

h2x-generate

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h2x-generate - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

LICENSE

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

<a name="1.1.0"></a>
# [1.1.0](https://github.com/smooth-code/h2x/tree/master/packages/h2x-generate/compare/v1.0.0...v1.1.0) (2018-09-15)
### Features
* upgrade to JSDOM v12 ([#14](https://github.com/smooth-code/h2x/tree/master/packages/h2x-generate/issues/14)) ([949a80c](https://github.com/smooth-code/h2x/tree/master/packages/h2x-generate/commit/949a80c))
<a name="1.0.0"></a>

@@ -8,0 +20,0 @@ # [1.0.0](https://github.com/smooth-code/h2x/tree/master/packages/h2x-generate/compare/v0.1.9...v1.0.0) (2018-05-14)

15

lib/Generator.js

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", {

});
exports.default = void 0;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class Generator {
constructor() {
this.output = '';
this.level = 0;
_defineProperty(this, "output", '');
_defineProperty(this, "level", 0);
}

@@ -24,4 +29,6 @@

}
}
exports.default = Generator;
var _default = Generator;
exports.default = _default;

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -6,19 +6,17 @@ Object.defineProperty(exports, "__esModule", {

});
exports.default = void 0;
var _h2xTraverse = require('h2x-traverse');
var _h2xTraverse = _interopRequireDefault(require("h2x-traverse"));
var _h2xTraverse2 = _interopRequireDefault(_h2xTraverse);
var _Generator = _interopRequireDefault(require("./Generator"));
var _Generator = require('./Generator');
var _Generator2 = _interopRequireDefault(_Generator);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function generate(ast, opts) {
const generator = new _Generator2.default();
(0, _h2xTraverse2.default)(ast, opts, generator);
const generator = new _Generator.default();
(0, _h2xTraverse.default)(ast, opts, generator);
return generator.output;
}
exports.default = generate;
var _default = generate;
exports.default = _default;
{
"name": "h2x-generate",
"description": "Convert h2x AST into code.",
"version": "1.0.0",
"version": "1.1.0",
"repository": "https://github.com/smooth-code/h2x/tree/master/packages/h2x-generate",

@@ -10,8 +10,11 @@ "author": "Bergé Greg <berge.greg@gmail.com>",

"main": "lib/index.js",
"scripts": {
"prebuild": "rm -rf lib/",
"build": "babel --config-file ../../babel.config.js -d lib --ignore \"**/*.test.js\" src",
"prepublishOnly": "yarn run build"
},
"dependencies": {
"h2x-traverse": "^1.0.0"
"h2x-traverse": "^1.1.0"
},
"devDependencies": {
"h2x-parse": "^1.0.0"
}
"gitHead": "c9230056a48c0b647ac1e6839f219997a3f2061a"
}
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