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

espower-source

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

espower-source - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

13

index.js

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

/*
/**
* espower-source - Power Assert instrumentor from source to source.

@@ -19,4 +19,5 @@ *

var espowerOptions, modifiedAst, generatedOutput, code, map,
jsAst = esprima.parse(jsCode, {tolerant: true, loc: true, tokens: true, source: filepath});
var jsAst, espowerOptions, modifiedAst, escodegenOutput, code, map;
jsAst = esprima.parse(jsCode, {tolerant: true, loc: true, tokens: true, source: filepath});
espowerOptions = merge(merge(espower.defaultOptions(), options), {

@@ -28,8 +29,8 @@ destructive: true,

modifiedAst = espower(jsAst, espowerOptions);
generatedOutput = escodegen.generate(modifiedAst, {
escodegenOutput = escodegen.generate(modifiedAst, {
sourceMap: true,
sourceMapWithCode: true
});
code = generatedOutput.code; // Generated source code
map = sourceMap.fromJSON(generatedOutput.map);
code = escodegenOutput.code; // Generated source code
map = sourceMap.fromJSON(escodegenOutput.map);
map.sourcemap.sourcesContent = [jsCode];

@@ -36,0 +37,0 @@ return code + '\n' + map.toComment() + '\n';

{
"name": "espower-source",
"version": "0.4.0",
"version": "0.4.1",
"description": "Power Assert instrumentor from source to source",

@@ -29,12 +29,12 @@ "keywords": [

"dependencies": {
"espower": "^0.4.1",
"esprima": "^1.1.1",
"escodegen": "^1.3.1",
"convert-source-map": "^0.3.3",
"lodash.merge": "^2.4.1"
"espower": "~0.4.1",
"esprima": "~1.1.1",
"escodegen": "~1.3.1",
"convert-source-map": "~0.3.3",
"lodash.merge": "~2.4.1"
},
"devDependencies": {
"expect.js": "^0.3.1",
"jshint": "^2.4.4",
"mocha": "^1.18.2"
"expect.js": "~0.3.1",
"jshint": "~2.4.4",
"mocha": "~1.18.2"
},

@@ -41,0 +41,0 @@ "engines": {

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