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

@web5/common

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web5/common - npm Package Compare versions

Comparing version 0.0.0-next-b36e7b1-20240517171022 to 0.0.0-next-b425bbc-20240524213702

4

dist/esm/convert.js

@@ -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": "0.0.0-next-b36e7b1-20240517171022",
"version": "0.0.0-next-b425bbc-20240524213702",
"type": "module",

@@ -61,16 +61,16 @@ "main": "./dist/cjs/index.js",

"level": "8.0.1",
"multiformats": "11.0.2",
"multiformats": "13.1.0",
"readable-stream": "4.4.2"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@types/chai": "4.3.6",
"@playwright/test": "1.44.0",
"@types/chai": "4.3.16",
"@types/chai-as-promised": "7.1.8",
"@types/eslint": "8.44.2",
"@types/eslint": "8.56.10",
"@types/mocha": "10.0.6",
"@types/node": "20.11.19",
"@types/node": "20.12.12",
"@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",
"@typescript-eslint/parser": "7.10.0",
"@web/test-runner": "0.18.2",
"@web/test-runner-playwright": "0.11.0",

@@ -82,9 +82,9 @@ "abstract-level": "1.0.4",

"esbuild": "0.19.8",
"eslint": "9.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"
},

@@ -91,0 +91,0 @@ "scripts": {

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

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