@web5/common
Advanced tools
Comparing version 1.0.0 to 1.0.1-alpha-20240528-cc47014
@@ -182,4 +182,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
toBlobAsync() { | ||
var _a, e_1, _b, _c; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var _a, e_1, _b, _c; | ||
switch (this.format) { | ||
@@ -304,4 +304,4 @@ case 'AsyncIterable': { | ||
toStringAsync() { | ||
var _a, e_2, _b, _c; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var _a, e_2, _b, _c; | ||
switch (this.format) { | ||
@@ -308,0 +308,0 @@ case 'AsyncIterable': { |
@@ -30,4 +30,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
*/ | ||
static consumeToArrayBuffer({ readable }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToArrayBuffer(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readable }) { | ||
const arrayBuffer = yield Convert.asyncIterable(readable).toArrayBufferAsync(); | ||
@@ -52,4 +52,4 @@ return arrayBuffer; | ||
*/ | ||
static consumeToBlob({ readable }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToBlob(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readable }) { | ||
const blob = yield Convert.asyncIterable(readable).toBlobAsync(); | ||
@@ -74,4 +74,4 @@ return blob; | ||
*/ | ||
static consumeToBytes({ readable }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToBytes(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readable }) { | ||
const bytes = yield Convert.asyncIterable(readable).toUint8ArrayAsync(); | ||
@@ -96,4 +96,4 @@ return bytes; | ||
*/ | ||
static consumeToJson({ readable }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToJson(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readable }) { | ||
const object = yield Convert.asyncIterable(readable).toObjectAsync(); | ||
@@ -117,4 +117,4 @@ return object; | ||
*/ | ||
static consumeToText({ readable }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToText(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readable }) { | ||
const text = yield Convert.asyncIterable(readable).toStringAsync(); | ||
@@ -121,0 +121,0 @@ return text; |
@@ -14,4 +14,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } | ||
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
@@ -79,4 +80,4 @@ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
*/ | ||
static consumeToArrayBuffer({ readableStream }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToArrayBuffer(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readableStream }) { | ||
const iterableStream = Stream.asAsyncIterator(readableStream); | ||
@@ -101,4 +102,4 @@ const arrayBuffer = yield Convert.asyncIterable(iterableStream).toArrayBufferAsync(); | ||
*/ | ||
static consumeToBlob({ readableStream }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToBlob(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readableStream }) { | ||
const iterableStream = Stream.asAsyncIterator(readableStream); | ||
@@ -124,4 +125,4 @@ const blob = yield Convert.asyncIterable(iterableStream).toBlobAsync(); | ||
*/ | ||
static consumeToBytes({ readableStream }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToBytes(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readableStream }) { | ||
const iterableStream = Stream.asAsyncIterator(readableStream); | ||
@@ -147,4 +148,4 @@ const bytes = yield Convert.asyncIterable(iterableStream).toUint8ArrayAsync(); | ||
*/ | ||
static consumeToJson({ readableStream }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToJson(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readableStream }) { | ||
const iterableStream = Stream.asAsyncIterator(readableStream); | ||
@@ -169,4 +170,4 @@ const object = yield Convert.asyncIterable(iterableStream).toObjectAsync(); | ||
*/ | ||
static consumeToText({ readableStream }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
static consumeToText(_a) { | ||
return __awaiter(this, arguments, void 0, function* ({ readableStream }) { | ||
const iterableStream = Stream.asAsyncIterator(readableStream); | ||
@@ -173,0 +174,0 @@ const text = yield Convert.asyncIterable(iterableStream).toStringAsync(); |
{ | ||
"name": "@web5/common", | ||
"version": "1.0.0", | ||
"version": "1.0.1-alpha-20240528-cc47014", | ||
"type": "module", | ||
@@ -60,30 +60,30 @@ "main": "./dist/cjs/index.js", | ||
"@isaacs/ttlcache": "1.4.1", | ||
"level": "8.0.0", | ||
"multiformats": "11.0.2", | ||
"level": "8.0.1", | ||
"multiformats": "13.1.0", | ||
"readable-stream": "4.4.2" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "1.40.1", | ||
"@types/chai": "4.3.6", | ||
"@types/chai-as-promised": "7.1.5", | ||
"@types/eslint": "8.44.2", | ||
"@types/mocha": "10.0.1", | ||
"@playwright/test": "1.44.0", | ||
"@types/chai": "4.3.16", | ||
"@types/chai-as-promised": "7.1.8", | ||
"@types/eslint": "8.56.10", | ||
"@types/mocha": "10.0.6", | ||
"@types/node": "20.12.12", | ||
"@types/readable-stream": "4.0.9", | ||
"@types/node": "20.11.19", | ||
"@typescript-eslint/eslint-plugin": "6.4.0", | ||
"@typescript-eslint/parser": "6.4.0", | ||
"@web/test-runner": "0.18.0", | ||
"@typescript-eslint/eslint-plugin": "7.9.0", | ||
"@typescript-eslint/parser": "7.10.0", | ||
"@web/test-runner": "0.18.2", | ||
"@web/test-runner-playwright": "0.11.0", | ||
"abstract-level": "1.0.4", | ||
"c8": "9.0.0", | ||
"chai": "4.3.10", | ||
"chai-as-promised": "7.1.1", | ||
"c8": "9.1.0", | ||
"chai": "5.1.1", | ||
"chai-as-promised": "7.1.2", | ||
"esbuild": "0.19.8", | ||
"eslint": "8.47.0", | ||
"eslint-plugin-mocha": "10.1.0", | ||
"mocha": "10.2.0", | ||
"eslint": "9.3.0", | ||
"eslint-plugin-mocha": "10.4.3", | ||
"mocha": "10.4.0", | ||
"mocha-junit-reporter": "2.2.1", | ||
"playwright": "1.40.1", | ||
"rimraf": "4.4.0", | ||
"typescript": "5.1.6" | ||
"playwright": "1.44.0", | ||
"rimraf": "5.0.7", | ||
"typescript": "5.4.5" | ||
}, | ||
@@ -98,4 +98,4 @@ "scripts": { | ||
"build": "pnpm clean && pnpm build:esm && pnpm build:cjs && pnpm build:browser", | ||
"lint": "eslint . --ext .ts --max-warnings 0", | ||
"lint:fix": "eslint . --ext .ts --fix", | ||
"lint": "eslint . --max-warnings 0", | ||
"lint:fix": "eslint . --fix", | ||
"test:node": "pnpm build:tests:node && pnpm c8 mocha", | ||
@@ -102,0 +102,0 @@ "test:browser": "pnpm build:tests:browser && web-test-runner" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
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
0
2404288
7955
1
+ Addedlevel@8.0.1(transitive)
+ Addedmultiformats@13.1.0(transitive)
- Removedlevel@8.0.0(transitive)
- Removedmultiformats@11.0.2(transitive)
Updatedlevel@8.0.1
Updatedmultiformats@13.1.0