@web5/common
Advanced tools
Comparing version 0.0.0-next-69c2b52-20240518073558 to 0.0.0-next-7072331-20241021233223
@@ -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': { |
export * from './cache.js'; | ||
export * from './convert.js'; | ||
export * from './logger.js'; | ||
export * from './multicodec.js'; | ||
@@ -4,0 +5,0 @@ export * from './object.js'; |
@@ -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(); |
export type * from './types.js'; | ||
export * from './cache.js'; | ||
export * from './convert.js'; | ||
export * from './logger.js'; | ||
export * from './multicodec.js'; | ||
@@ -5,0 +6,0 @@ export * from './object.js'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
import type { AbstractLevel } from 'abstract-level'; | ||
@@ -3,0 +2,0 @@ import type { KeyValueStore } from './types.js'; |
{ | ||
"name": "@web5/common", | ||
"version": "0.0.0-next-69c2b52-20240518073558", | ||
"version": "0.0.0-next-7072331-20241021233223", | ||
"type": "module", | ||
@@ -61,16 +61,16 @@ "main": "./dist/cjs/index.js", | ||
"level": "8.0.1", | ||
"multiformats": "11.0.2", | ||
"readable-stream": "4.4.2" | ||
"multiformats": "13.1.0", | ||
"readable-stream": "4.5.2" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "1.40.1", | ||
"@types/chai": "4.3.6", | ||
"@playwright/test": "1.45.3", | ||
"@types/chai": "4.3.16", | ||
"@types/chai-as-promised": "7.1.8", | ||
"@types/eslint": "8.44.2", | ||
"@types/eslint": "9.6.0", | ||
"@types/mocha": "10.0.6", | ||
"@types/node": "20.11.19", | ||
"@types/readable-stream": "4.0.9", | ||
"@typescript-eslint/eslint-plugin": "7.9.0", | ||
"@typescript-eslint/parser": "7.9.0", | ||
"@web/test-runner": "0.18.0", | ||
"@types/node": "20.14.8", | ||
"@types/readable-stream": "4.0.14", | ||
"@typescript-eslint/eslint-plugin": "7.14.1", | ||
"@typescript-eslint/parser": "7.14.1", | ||
"@web/test-runner": "0.18.2", | ||
"@web/test-runner-playwright": "0.11.0", | ||
@@ -80,11 +80,11 @@ "abstract-level": "1.0.4", | ||
"chai": "5.1.1", | ||
"chai-as-promised": "7.1.2", | ||
"esbuild": "0.19.8", | ||
"eslint": "9.2.0", | ||
"chai-as-promised": "8.0.0", | ||
"esbuild": "0.23.0", | ||
"eslint": "9.7.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.45.3", | ||
"rimraf": "5.0.7", | ||
"typescript": "5.5.3" | ||
}, | ||
@@ -91,0 +91,0 @@ "scripts": { |
@@ -5,2 +5,3 @@ export type * from './types.js'; | ||
export * from './convert.js'; | ||
export * from './logger.js'; | ||
export * from './multicodec.js'; | ||
@@ -7,0 +8,0 @@ export * from './object.js'; |
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
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
2446454
64
8151
+ Addedmultiformats@13.1.0(transitive)
+ Addedreadable-stream@4.5.2(transitive)
- Removedmultiformats@11.0.2(transitive)
- Removedreadable-stream@4.4.2(transitive)
Updatedmultiformats@13.1.0
Updatedreadable-stream@4.5.2