conjure-client
Advanced tools
Comparing version 2.8.0 to 2.9.0-rc1
@@ -17,3 +17,2 @@ /** | ||
*/ | ||
import "web-streams-polyfill"; | ||
export declare function blobToReadableStream(blobPromise: Promise<Blob>): ReadableStream<Uint8Array>; |
@@ -19,5 +19,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("web-streams-polyfill"); | ||
var ponyfill_1 = require("web-streams-polyfill/ponyfill"); | ||
function blobToReadableStream(blobPromise) { | ||
return new ReadableStream({ | ||
var underlyingSource = { | ||
start: function (controller) { | ||
@@ -33,5 +33,8 @@ var reader = new FileReader(); | ||
}, | ||
}); | ||
}; | ||
return typeof ReadableStream === "undefined" | ||
? new ponyfill_1.ReadableStream(underlyingSource) | ||
: new ReadableStream(underlyingSource); | ||
} | ||
exports.blobToReadableStream = blobToReadableStream; | ||
//# sourceMappingURL=blobReadableStreamAdapter.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const IMPLEMENTATION_VERSION = "2.8.0"; | ||
export declare const IMPLEMENTATION_VERSION = "2.9.0-rc1"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IMPLEMENTATION_VERSION = '2.8.0'; | ||
exports.IMPLEMENTATION_VERSION = '2.9.0-rc1'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "conjure-client", | ||
"version": "2.8.0", | ||
"version": "2.9.0-rc1", | ||
"description": "An HTTP bridge library for use in front end applications and generated conjure code", | ||
@@ -18,3 +18,3 @@ "sideEffects": false, | ||
"lint": "tslint 'src/**/*.ts*' --project ./src/tsconfig.json", | ||
"lint-fix": "lint --fix", | ||
"lint-fix": "yarn lint --fix", | ||
"test": "yarn downloadConjureTypeScript && yarn downloadTestServer && yarn generateSpecBindings && npm-run-all test:unit test:integration", | ||
@@ -36,8 +36,8 @@ "test:integration": "./scripts/run-integration-tests.sh", | ||
"jest": "^24.9.0", | ||
"karma": "^2.0.5", | ||
"karma": "^6.4.0", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-chrome-launcher": "^3.1.1", | ||
"karma-mocha": "^2.0.1", | ||
"karma-nodeunit": "^0.2.0", | ||
"karma-typescript": "^4.1.1", | ||
"karma-typescript": "^5.5.3", | ||
"mocha": "^5.2.0", | ||
@@ -59,4 +59,4 @@ "node-fetch": "^2.6.0", | ||
"dependencies": { | ||
"web-streams-polyfill": "^2.0.6" | ||
"web-streams-polyfill": "^3.2.1" | ||
} | ||
} |
@@ -18,7 +18,7 @@ /** | ||
import "web-streams-polyfill"; | ||
import { ReadableStream as PonyfilledReadableStream } from "web-streams-polyfill/ponyfill"; | ||
export function blobToReadableStream(blobPromise: Promise<Blob>): ReadableStream<Uint8Array> { | ||
return new ReadableStream({ | ||
start: controller => { | ||
const underlyingSource = { | ||
start: (controller: ReadableStreamDefaultController<Uint8Array>) => { | ||
const reader = new FileReader(); | ||
@@ -33,3 +33,6 @@ reader.onload = () => { | ||
}, | ||
}); | ||
}; | ||
return typeof ReadableStream === "undefined" | ||
? (new PonyfilledReadableStream<Uint8Array>(underlyingSource) as ReadableStream<Uint8Array>) | ||
: new ReadableStream(underlyingSource); | ||
} |
@@ -1,1 +0,1 @@ | ||
export const IMPLEMENTATION_VERSION = '2.8.0'; | ||
export const IMPLEMENTATION_VERSION = '2.9.0-rc1'; |
@@ -17,2 +17,3 @@ { | ||
"removeComments": false, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
@@ -19,0 +20,0 @@ "strict": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
89716
1720
2
+ Addedweb-streams-polyfill@3.3.3(transitive)
- Removedweb-streams-polyfill@2.1.1(transitive)
Updatedweb-streams-polyfill@^3.2.1