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

cross-blob

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-blob - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

14

index.d.ts
/// <reference lib="dom"/>
export = Blob;
// /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
declare interface CrossBlob extends Blob {
stream(): ReadableStream
text(): Promise<string>
arrayBuffer(): Promise<ArrayBuffer>
}
declare const CrossBlob: {
prototype: CrossBlob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): CrossBlob;
};
export = CrossBlob;

10

index.js
"use strict"
const BrowserBlob = require("blob")
const NodeBlob = require("fetch-blob")
const envCrosser = require("env-crosser")
module.exports = envCrosser({
browser: BrowserBlob,
worker: BrowserBlob,
node: NodeBlob,
})
module.exports = require("fetch-blob")
{
"name": "cross-blob",
"version": "1.1.1",
"version": "1.2.0",
"description": "Cross-platform Blob implementation for NodeJS and the Web.",

@@ -9,2 +9,3 @@ "repository": "https://github.com/Richienb/cross-blob.git",

"main": "index.js",
"browser": "browser.js",
"files": [

@@ -29,5 +30,4 @@ "index.js",

"dependencies": {
"blob": "^0.0.5",
"env-crosser": "^1.0.0",
"fetch-blob": "^1.0.4"
"blob-polyfill": "^4.0.20190430",
"fetch-blob": "^1.0.5"
},

@@ -37,2 +37,3 @@ "devDependencies": {

"eslint-config-richienb": "^0.2.3",
"get-stream": "^5.1.0",
"is-blob": "^2.1.0",

@@ -45,4 +46,12 @@ "xo": "^0.25.3"

"xo": {
"extends": "richienb/node"
"extends": "richienb/node",
"overrides": [
{
"files": "test.js",
"rules": {
"node/no-unsupported-features/node-builtins": 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