cross-blob
Advanced tools
Comparing version 1.1.1 to 1.2.0
/// <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 | ||
} | ||
} | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3599
2
14
5
+ Addedblob-polyfill@^4.0.20190430
+ Addedblob-polyfill@4.0.20200601(transitive)
- Removedblob@^0.0.5
- Removedenv-crosser@^1.0.0
- Removedblob@0.0.5(transitive)
- Removedbrowser-or-node@1.3.0(transitive)
- Removedenv-crosser@1.0.0(transitive)
Updatedfetch-blob@^1.0.5