Socket
Socket
Sign inDemoInstall

espower

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

espower - npm Package Versions

1245

1.0.0

Diff

Changelog

Source

1.0.0 (2015-05-25)

Features
  • transfer to power-assert-js organization (c3b79559)
  • support deepStrictEqual and notDeepStrictEqual (9d98bc17)
  • sourceRoot option. If set, filepath in power-assert output will be relative from sourceRoot
  • visitorKeys option to customize AST traversal
twada
published 0.11.0 •

Changelog

Source

0.11.0 (2015-04-18)

Bug Fixes
  • throw Error if AST is already instrumented (1d47bdc3)
Features
twada
published 0.10.0 •

Changelog

Source

0.10.0 (2014-11-11)

twada
published 0.9.1 •

Changelog

Source

0.9.1 (2014-09-15)

Bug Fixes
  • espower: decide to be skipped first, then enter node (9d0a778a)
twada
published 0.9.0 •

Changelog

Source

0.9.0 (2014-08-21)

Features
  • espower:
    • adjust filepath in power-assert output if sourceMap option is given (f919d59d)
    • adjust line number in power-assert output if sourceMap option is given (8c035d89)
twada
published 0.8.0 •

Changelog

Source

0.8.0 (2014-08-12)

Features
Breaking Changes
  • option powerAssertVariableName is now deprecated and ignored. Please use patterns option instead (2f023f91)
  • option targetMethods is now deprecated and ignored. Please use patterns option instead (e75e5d35)

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

var options = {
    powerAssertVariableName: 'yourAssert',
    targetMethods: {
        oneArg: [
            'okay'
        ],
        twoArgs: [
            'equal',
            'customEqual'
        ]
    }
};
var modifiedAst = espower(jsAst, options);

To:

var options = {
    patterns: [
        'yourAssert(value, [message])',
        'yourAssert.okay(value, [message])',
        'yourAssert.equal(actual, expected, [message])',
        'yourAssert.customEqual(actual, expected, [message])'
    ]
};
var modifiedAst = espower(jsAst, options);
twada
published 0.7.0 •

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