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

ascjs

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ascjs - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

5

bin.js

@@ -5,8 +5,9 @@ #!/usr/bin/env node

const $ascjs = require('./index.js');
const escape = str => str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
const ascjs = input => {
const output = $ascjs(input);
let output = $ascjs(input);
return noDefault ?
output
.replace(`${$ascjs.EXPORT}.default`, 'module.exports')
.replace($ascjs.IMPORT, ($0, index) => {
.replace(new RegExp(escape($ascjs.IMPORT), 'g'), ($0, index) => {
index += $0.length + 9;

@@ -13,0 +14,0 @@ const module = output.slice(index, output.indexOf(')', index + 1)).trim();

2

package.json
{
"name": "ascjs",
"version": "6.0.0",
"version": "6.0.1",
"description": "ES2015 to CommonJS import/export transformer",

@@ -5,0 +5,0 @@ "bin": "bin.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