New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

code-jinni

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-jinni - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

CHANGELOG.md

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

## 1.2.0
* Added use strict option
## 1.1.0
* More helper api added
## 1.0.1
* Added more protection against code duplication

7

module.js

@@ -99,2 +99,6 @@ const Assert = require('assert');

useStrict() {
this.strict = true;
}
import(name, mod) {

@@ -146,3 +150,4 @@ Assert.ok(!this.external, `You cannot add import to external module ${this.getPath()}`);

Assert.ok(!this.external, `You cannot serialize external module ${this.getPath()}`);
return `${this.imports.map(imp => imp.toString()).join('')}${super.toString()}`;
return `${this.strict ?
`'use strict';` : ''}${this.imports.map(imp => imp.toString()).join('')}${super.toString()}`;
}

@@ -149,0 +154,0 @@

2

package.json
{
"name": "code-jinni",
"version": "1.1.0",
"version": "1.2.0",
"description": "Generic javascript code generator that uses actual code snippets and mantains relationship ebtween artifacts to simplify DOM construction and eventual code generation",

@@ -5,0 +5,0 @@ "main": "index.js",

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