New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

karma-rollup-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-rollup-preprocessor - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

9

CHANGELOG.md

@@ -8,2 +8,11 @@ # Change Log

## [4.0.2] - 2017-07-30
### Changed
- Require at least Rollup v0.45. [#21](https://github.com/jlmakes/karma-rollup-preprocessor/pull/21)
### Changed
- Update depedency versions.
## [4.0.1] - 2017-07-14

@@ -10,0 +19,0 @@

19

lib/index.js

@@ -14,2 +14,3 @@ 'use strict'

let cache
let buffer

@@ -42,2 +43,4 @@ /**

buffer = bundle
/**

@@ -66,11 +69,11 @@ * Map all dependencies of the current file

// Return the promise so that errors will be handled by the `catch` statement below.
return Promise.resolve(bundle.generate(config)).then((generated) => {
const processed = (config.sourceMap === 'inline')
? generated.code + `\n//# sourceMappingURL=${generated.map.toUrl()}\n`
: generated.code
return bundle.generate(config)
})
.then(generated => {
const processed = (config.sourceMap === 'inline')
? generated.code + `\n//# sourceMappingURL=${generated.map.toUrl()}\n`
: generated.code
cache = bundle
done(null, processed)
})
cache = buffer
done(null, processed)
})

@@ -77,0 +80,0 @@ .catch(error => {

{
"name": "karma-rollup-preprocessor",
"version": "4.0.1",
"version": "4.0.2",
"description": "Karma preprocessor to bundle ES2015 modules using Rollup",

@@ -28,7 +28,7 @@ "main": "lib/index.js",

"dependencies": {
"rollup": "^0.x",
"rollup": "^0.45",
"lodash": "^4.17.4"
},
"devDependencies": {
"eslint": "^3.11.1",
"eslint": "^4.2.0",
"jasmine-core": "^2.4.1",

@@ -40,3 +40,3 @@ "karma": "^1.3.0",

"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^2.0.0"
"rollup-plugin-node-resolve": "^3.0.0"
},

@@ -43,0 +43,0 @@ "author": "Julian Lloyd",

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