asset-pipe-js-writer
Advanced tools
+7
-7
@@ -1,2 +0,2 @@ | ||
| "use strict"; | ||
| 'use strict'; | ||
@@ -19,7 +19,7 @@ const Browserify = require('browserify'); | ||
| objectMode: true, | ||
| transform: function (obj, enc, next) { | ||
| transform (obj, enc, next) { | ||
| dictionary[obj.id] = common.hasher(obj.source); | ||
| this.push(obj); | ||
| next(); | ||
| } | ||
| }, | ||
| }); | ||
@@ -31,3 +31,3 @@ browserify.pipeline.get('deps').push(hasher); | ||
| objectMode: true, | ||
| transform: function (obj, enc, next) { | ||
| transform (obj, enc, next) { | ||
| obj.id = dictionary[obj.id]; | ||
@@ -39,3 +39,3 @@ Object.keys(obj.deps).forEach((key) => { | ||
| next(); | ||
| } | ||
| }, | ||
| }); | ||
@@ -52,6 +52,6 @@ browserify.pipeline.get('label').splice(0, 1, labeler); | ||
| objectMode: true, | ||
| transform: function (obj, enc, next) { | ||
| transform (obj, enc, next) { | ||
| this.push(obj); | ||
| next(); | ||
| } | ||
| }, | ||
| }); | ||
@@ -58,0 +58,0 @@ browserify.pipeline.get('pack').splice(0, 1, packer); |
+10
-7
| { | ||
| "name": "asset-pipe-js-writer", | ||
| "version": "1.0.0-alpha.6", | ||
| "version": "1.0.0-alpha.7", | ||
| "author": { | ||
@@ -24,5 +24,2 @@ "name": "Trygve Lie", | ||
| ], | ||
| "engines": { | ||
| "node" : "7.x" | ||
| }, | ||
| "bugs": { | ||
@@ -35,11 +32,17 @@ "url": "https://github.com/asset-pipe/asset-pipe-js-writer/issues" | ||
| "readable-stream": "2.2.2", | ||
| "browserify": "13.1.1", | ||
| "browserify": "14.1.0", | ||
| "JSONStream": "1.3.0" | ||
| }, | ||
| "devDependencies": { | ||
| "tap": "8.0.1" | ||
| "eslint": "^3.15.0", | ||
| "eslint-config-finn": "^1.0.1", | ||
| "tap": "10.1.0" | ||
| }, | ||
| "scripts": { | ||
| "lint": "eslint .", | ||
| "test": "tap test/*.js" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "lib" | ||
| ] | ||
| } |
-32
| { | ||
| "env": { | ||
| "browser": true, | ||
| "node": true, | ||
| "es6": true | ||
| }, | ||
| "ecmaFeatures": { | ||
| "arrowFunctions": true, | ||
| "binaryLiterals": true, | ||
| "blockBindings": true, | ||
| "classes": true, | ||
| "defaultParams": true, | ||
| "destructuring": true, | ||
| "forOf": true, | ||
| "generators": true, | ||
| "modules": true, | ||
| "objectLiteralComputedProperties": true, | ||
| "objectLiteralDuplicateProperties": true, | ||
| "objectLiteralShorthandMethods": true, | ||
| "objectLiteralShorthandProperties": true, | ||
| "octalLiterals": true, | ||
| "regexUFlag": true, | ||
| "regexYFlag": true, | ||
| "spread": true, | ||
| "superInFunctions": true, | ||
| "templateStrings": true, | ||
| "unicodeCodePointEscapes": true, | ||
| "globalReturn": true | ||
| } | ||
| } |
Sorry, the diff of this file is not supported yet
| language: node_js | ||
| node_js: | ||
| - "7" | ||
| - "6" | ||
| script: | ||
| - npm test | ||
| "use strict"; | ||
| const mod = require('./mod.js'); | ||
| console.log('hello from main'); | ||
| console.log(mod()); |
| "use strict"; | ||
| module.exports = () => { | ||
| return 'hello from mod'; | ||
| }; |
| "use strict"; | ||
| const tap = require('tap'); | ||
| const Writer = require('../'); | ||
| tap.test('foo() - bar', function (t) { | ||
| // var writer = new Writer('./test/mock/main.js'); | ||
| // writer.bundle().pipe(process.stdout); | ||
| t.equal(true, true); | ||
| t.end(); | ||
| }); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2733
-31.28%3
200%3
-66.67%48
-26.15%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated