Socket
Socket
Sign inDemoInstall

workerize-loader

Package Overview
Dependencies
82
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

7

dist/index.js

@@ -95,3 +95,4 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

if (current.resource !== entry) return;
let exports = CACHE[entry] || (CACHE[entry] = {});
let key = current.nameForCondition();
let exports = CACHE[key] || (CACHE[key] = {});

@@ -115,5 +116,5 @@ if (decl.id) {

worker.file = entries[0].files[0];
let entry = entries[0].entryModule.resource;
let key = entries[0].entryModule.nameForCondition();
let contents = compilation.assets[worker.file].source();
let exports = Object.keys(CACHE[entry] || {});
let exports = Object.keys(CACHE[key] || {});

@@ -120,0 +121,0 @@ if (options.inline) {

{
"name": "workerize-loader",
"version": "1.2.0",
"version": "1.2.1",
"description": "Automatically move a module into a Web Worker (Webpack loader)",

@@ -11,3 +11,3 @@ "main": "dist/index.js",

"dev": "karmatic watch --no-headless",
"test": "npm run build && karmatic",
"test": "npm run build && karmatic && NODE_ENV=production karmatic -p",
"release": "npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"

@@ -14,0 +14,0 @@ },

@@ -105,3 +105,4 @@ import path from 'path';

let exports = CACHE[entry] || (CACHE[entry] = {});
let key = current.nameForCondition();
let exports = CACHE[key] || (CACHE[key] = {});

@@ -129,5 +130,5 @@ if (decl.id) {

let entry = entries[0].entryModule.resource;
let key = entries[0].entryModule.nameForCondition();
let contents = compilation.assets[worker.file].source();
let exports = Object.keys(CACHE[entry] || {});
let exports = Object.keys(CACHE[key] || {});

@@ -134,0 +135,0 @@ // console.log('Workerized exports: ', exports.join(', '));

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc