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 Versions

1

0.9.0

Diff

Changelog

Source

0.9.0 (2014-08-31)

Features
  • espower-source: backport espowerify to support multi-stage sourcemaps (71de737c)
twada
published 0.8.0 •

Changelog

Source

0.8.0 (2014-08-12)

Features
  • espower-source:
    • update espower to 0.8.0 (ae15a229)
    • simple xtend would be better for options handling (6bea0a92)
Breaking Changes

If you already customize instrumentation pattern using powerAssertVariableName and targetMethods, you need to migarte. To migrate, change your code from the following:

var espowerSource = require('espower-source');
var options = {
    powerAssertVariableName: 'yourAssert',
    targetMethods: {
        oneArg: [
            'okay'
        ],
        twoArgs: [
            'equal',
            'customEqual'
        ]
    }
};
var modifiedCode = espowerSource(originalCode, filepath, options);

To:

var espowerSource = require('espower-source');
var options = {
    patterns: [
        'yourAssert(value, [message])',
        'yourAssert.okay(value, [message])',
        'yourAssert.equal(actual, expected, [message])',
        'yourAssert.customEqual(actual, expected, [message])'
    ]
};
var modifiedCode = espowerSource(originalCode, filepath, options);
twada
published 0.7.3 •

twada
published 0.7.1 •

twada
published 0.7.0 •

twada
published 0.6.1 •

twada
published 0.6.0 •

twada
published 0.4.1 •

twada
published 0.4.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