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

array-source

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-source - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

rollup.config.js

18

dist/array-source.js

@@ -1,18 +0,18 @@

// https://github.com/mbostock/array-source Version 0.0.3. Copyright 2016 Mike Bostock.
// https://github.com/mbostock/array-source Version 0.0.4. Copyright 2017 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.sources = global.sources || {}, global.sources.array = factory());
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.sources = global.sources || {}, global.sources.array = factory());
}(this, (function () { 'use strict';
function array_cancel() {
var array_cancel = function() {
this._array = null;
return Promise.resolve();
}
};
function array_read() {
var array_read = function() {
var array = this._array;
this._array = null;
return Promise.resolve(array ? {done: false, value: array} : {done: true, value: undefined});
}
};

@@ -32,2 +32,2 @@ function array(array) {

})));
})));

@@ -1,2 +0,2 @@

// https://github.com/mbostock/array-source Version 0.0.3. Copyright 2016 Mike Bostock.
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(e.sources=e.sources||{},e.sources.array=r())}(this,function(){"use strict";function e(){return this._array=null,Promise.resolve()}function r(){var e=this._array;return this._array=null,Promise.resolve(e?{done:!1,value:e}:{done:!0,value:void 0})}function n(e){return new t(e instanceof Uint8Array?e:new Uint8Array(e))}function t(e){this._array=e}return t.prototype.read=r,t.prototype.cancel=e,n});
// https://github.com/mbostock/array-source Version 0.0.4. Copyright 2017 Mike Bostock.
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(e.sources=e.sources||{},e.sources.array=r())}(this,function(){"use strict";function e(e){this._array=e}return e.prototype.read=function(){var e=this._array;return this._array=null,Promise.resolve(e?{done:!1,value:e}:{done:!0,value:void 0})},e.prototype.cancel=function(){return this._array=null,Promise.resolve()},function(r){return new e(r instanceof Uint8Array?r:new Uint8Array(r))}});
{
"name": "array-source",
"version": "0.0.3",
"version": "0.0.4",
"description": "Read arrays as standard WhatWG streams.",

@@ -23,10 +23,10 @@ "keywords": [

"scripts": {
"prepublish": "rm -rf dist && mkdir dist && rollup --banner \"$(preamble)\" -f umd -n sources.array -o dist/array-source.js -- index.js && uglifyjs --preamble \"$(preamble)\" -o dist/array-source.min.js -cm -- dist/array-source.js",
"prepublishOnly": "rm -rf dist && mkdir dist && rollup -c --banner \"$(preamble)\" && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" -o dist/array-source.min.js -c -m -- dist/array-source.js",
"postpublish": "git push && git push --tags"
},
"devDependencies": {
"package-preamble": "0.0",
"rollup": "0.34",
"uglify-js": "2"
"package-preamble": "0.1",
"rollup": "0.49",
"uglify-js": "3"
}
}
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