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

jsm2c

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsm2c - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

11

lib/core/jsFile.js

@@ -87,12 +87,13 @@ 'use strict';

},
_wrapper: function (ast, exportName) {
_wrapper: function (ast) {
var wrapper = [],
ns = this.ns,
wAst;
wAst,
exportName;
exportName = ns + '.' + exportName || this.exportName;
wrapper.push('(function(' + ns + '){');
if (exportName && this.isExistsNode(ast, 'moduleExport')) {
if (this.exportName && this.isExistsNode(ast, 'moduleExport')) {
exportName = this.exportName;
wrapper.push(exportName + ' = ' + exportName + ' || {};');

@@ -99,0 +100,0 @@ }

{
"name": "jsm2c",
"version": "0.0.1",
"version": "0.0.2",
"description": "将采用commonJS规范的模块化代码,转译成闭包形式的代码",

@@ -36,3 +36,2 @@ "main": "index.js",

},
"maintainers": [

@@ -42,3 +41,3 @@ "guomilo <guomilo@gmail.com>"

"directories": {},
"devDependencies": {
"devDependencies": {
"autod": "2.5.1",

@@ -45,0 +44,0 @@ "chai": "3.5.0",

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