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

@agoric/bundle-source

Package Overview
Dependencies
Maintainers
5
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/bundle-source - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

19

CHANGELOG.md

@@ -6,2 +6,21 @@ # Change Log

## [1.1.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/bundle-source@1.1.2-alpha.0...@agoric/bundle-source@1.1.2) (2020-04-13)
**Note:** Version bump only for package @agoric/bundle-source
## [1.1.2-alpha.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/bundle-source@1.1.1...@agoric/bundle-source@1.1.2-alpha.0) (2020-04-12)
### Bug Fixes
* rewrite HTML comments and import expressions for SES's sake ([1a970f6](https://github.com/Agoric/agoric-sdk/commit/1a970f65b67e047711e53949a286f1587b9a2e75))
## [1.1.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/bundle-source@1.1.1-alpha.0...@agoric/bundle-source@1.1.1) (2020-04-02)

@@ -8,0 +27,0 @@

8

package.json
{
"name": "@agoric/bundle-source",
"version": "1.1.1",
"version": "1.1.2",
"description": "Create source bundles from ES Modules",

@@ -20,4 +20,4 @@ "main": "src/index.js",

"dependencies": {
"@agoric/acorn-eventual-send": "^2.0.1",
"@agoric/evaluate": "^2.2.2",
"@agoric/acorn-eventual-send": "^2.0.2",
"@agoric/evaluate": "^2.2.3",
"@agoric/harden": "^0.0.4",

@@ -47,3 +47,3 @@ "@rollup/plugin-commonjs": "^11.0.2",

},
"gitHead": "fc87e3b1e172e7246b12bd112d31f8ca756e4015"
"gitHead": "a5fe2624fedcf3b8adf46ed6c157c29fd459b2ed"
}

@@ -12,2 +12,6 @@ import { rollup as rollup0 } from 'rollup';

// eslint-disable-next-line no-useless-concat
const IMPORT_RE = new RegExp('\\b(import)' + '(\\s*(?:\\(|/[/*]))', 'g');
const HTML_COMMENT_RE = new RegExp(`(?:${'<'}!--|--${'>'})`, 'g');
export default async function bundleSource(

@@ -55,3 +59,8 @@ startFilename,

}
sourceBundle[fileName] = code;
// Rewrite apparent import expressions so that they don't fail under SES.
// We also do apparent HTML comments.
const defangedCode = code
.replace(IMPORT_RE, '$1notreally')
.replace(HTML_COMMENT_RE, '<->');
sourceBundle[fileName] = defangedCode;
}

@@ -58,0 +67,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