mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-02 16:26:41 +00:00
fix: polyfill Buffer for browser compatibility (#112)
* Polyfill with "buffer" and "assert" for browser environments * Instead of relying on webpack to make this library browser compatible, we now use a buffer library that provides a polyfill when used in the browser
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
"test": "test"
|
||||
},
|
||||
"dependencies": {
|
||||
"assert": "^2.0.0",
|
||||
"buffer": "5.6.0",
|
||||
"big-integer": "^1.6.48",
|
||||
"create-hash": "^1.2.0",
|
||||
"decimal.js": "^10.2.0",
|
||||
|
||||
@@ -9,6 +9,7 @@ import { sha512Half, transactionID } from "./hashes";
|
||||
import { FieldInstance } from "./enums";
|
||||
import { STObject } from "./types/st-object";
|
||||
import { JsonObject } from "./types/serialized-type";
|
||||
import { Buffer } from "buffer/";
|
||||
import * as bigInt from "big-integer";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import * as enums from "./definitions.json";
|
||||
import { SerializedType } from "../types/serialized-type";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
const TYPE_WIDTH = 2;
|
||||
const LEDGER_ENTRY_WIDTH = 2;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Write a 32 bit integer to a Buffer
|
||||
*
|
||||
@@ -6,7 +8,7 @@
|
||||
*/
|
||||
function bytes(uint32: number): Buffer {
|
||||
const result = Buffer.alloc(4);
|
||||
result.writeUInt32BE(uint32);
|
||||
result.writeUInt32BE(uint32, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ import { HashPrefix } from "./hash-prefixes";
|
||||
import * as createHash from "create-hash";
|
||||
import { Hash256 } from "./types/hash-256";
|
||||
import { BytesList } from "./serdes/binary-serializer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Class for hashing with SHA512
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { coreTypes } from "./types";
|
||||
import { Decimal } from "decimal.js";
|
||||
import * as bigInt from "big-integer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* class for encoding and decoding quality
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import * as assert from "assert";
|
||||
import { Field, FieldInstance } from "../enums";
|
||||
import { SerializedType } from "../types/serialized-type";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* BinaryParser is used to compute fields and values from a HexString
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import * as assert from "assert";
|
||||
import { FieldInstance } from "../enums";
|
||||
import { SerializedType } from "../types/serialized-type";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Bytes list is a collection of buffer objects
|
||||
|
||||
@@ -4,6 +4,7 @@ import { HashPrefix } from "./hash-prefixes";
|
||||
import { Sha512Half } from "./hashes";
|
||||
import { Hash256 } from "./types/hash-256";
|
||||
import { BytesList } from "./serdes/binary-serializer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Abstract class describing a SHAMapNode
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { decodeAccountID, encodeAccountID } from "ripple-address-codec";
|
||||
import { Hash160 } from "./hash-160";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
const HEX_REGEX = /^[A-F0-9]{40}$/;
|
||||
|
||||
@@ -44,7 +45,7 @@ class AccountID extends Hash160 {
|
||||
* @returns an AccountID object
|
||||
*/
|
||||
static fromBase58(value: string): AccountID {
|
||||
return new AccountID(decodeAccountID(value));
|
||||
return new AccountID(Buffer.from(decodeAccountID(value)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,7 +63,9 @@ class AccountID extends Hash160 {
|
||||
* @returns the base58 string defined by this.bytes
|
||||
*/
|
||||
toBase58(): string {
|
||||
return encodeAccountID(this.bytes);
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
return encodeAccountID(this.bytes as any);
|
||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import { AccountID } from "./account-id";
|
||||
import { Currency } from "./currency";
|
||||
import { JsonObject, SerializedType } from "./serialized-type";
|
||||
import * as bigInt from "big-integer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Constants for validating amounts
|
||||
@@ -78,8 +79,8 @@ class Amount extends SerializedType {
|
||||
const number = bigInt(value);
|
||||
|
||||
const intBuf = [Buffer.alloc(4), Buffer.alloc(4)];
|
||||
intBuf[0].writeUInt32BE(Number(number.shiftRight(32)));
|
||||
intBuf[1].writeUInt32BE(Number(number.and(mask)));
|
||||
intBuf[0].writeUInt32BE(Number(number.shiftRight(32)), 0);
|
||||
intBuf[1].writeUInt32BE(Number(number.and(mask)), 0);
|
||||
|
||||
amount = Buffer.concat(intBuf);
|
||||
|
||||
@@ -102,8 +103,8 @@ class Amount extends SerializedType {
|
||||
|
||||
const num = bigInt(integerNumberString);
|
||||
const intBuf = [Buffer.alloc(4), Buffer.alloc(4)];
|
||||
intBuf[0].writeUInt32BE(Number(num.shiftRight(32)));
|
||||
intBuf[1].writeUInt32BE(Number(num.and(mask)));
|
||||
intBuf[0].writeUInt32BE(Number(num.shiftRight(32)), 0);
|
||||
intBuf[1].writeUInt32BE(Number(num.and(mask)), 0);
|
||||
|
||||
amount = Buffer.concat(intBuf);
|
||||
|
||||
@@ -151,8 +152,8 @@ class Amount extends SerializedType {
|
||||
const sign = isPositive ? "" : "-";
|
||||
bytes[0] &= 0x3f;
|
||||
|
||||
const msb = bigInt(bytes.slice(0, 4).readUInt32BE());
|
||||
const lsb = bigInt(bytes.slice(4).readUInt32BE());
|
||||
const msb = bigInt(bytes.slice(0, 4).readUInt32BE(0));
|
||||
const lsb = bigInt(bytes.slice(4).readUInt32BE(0));
|
||||
const num = msb.shiftLeft(32).or(lsb);
|
||||
|
||||
return `${sign}${num.toString()}`;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { SerializedType } from "./serialized-type";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Variable length encoded type
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { Hash160 } from "./hash-160";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
const ISO_REGEX = /^[A-Z0-9]{3}$/;
|
||||
const HEX_REGEX = /^[A-F0-9]{40}$/;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Hash } from "./hash";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Hash with a width of 128 bits
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Hash } from "./hash";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Hash with a width of 160 bits
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Hash } from "./hash";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Hash with a width of 256 bits
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Comparable } from "./serialized-type";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Base class defining how to encode and decode hashes
|
||||
@@ -47,8 +48,7 @@ class Hash extends Comparable {
|
||||
* @param other The Hash to compare this to
|
||||
*/
|
||||
compareTo(other: Hash): number {
|
||||
return Buffer.compare(
|
||||
this.bytes,
|
||||
return this.bytes.compare(
|
||||
(this.constructor as typeof Hash).from(other).bytes
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import { AccountID } from "./account-id";
|
||||
import { Currency } from "./currency";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { SerializedType, JsonObject } from "./serialized-type";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Constants for separating Paths in a PathSet
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { BytesList } from "../serdes/binary-serializer";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import * as bigInt from "big-integer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
type JSON = string | number | boolean | null | undefined | JSON[] | JsonObject;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { SerializedType, JsonObject } from "./serialized-type";
|
||||
import { STObject } from "./st-object";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
const ARRAY_END_MARKER = Buffer.from([0xf1]);
|
||||
const ARRAY_END_MARKER_NAME = "ArrayEndMarker";
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
} from "ripple-address-codec";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { BinarySerializer, BytesList } from "../serdes/binary-serializer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
const OBJECT_END_MARKER_BYTE = Buffer.from([0xe1]);
|
||||
const OBJECT_END_MARKER = "ObjectEndMarker";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { UInt } from "./uint";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Derived UInt class for serializing/deserializing 16 bit UInt
|
||||
@@ -30,7 +31,7 @@ class UInt16 extends UInt {
|
||||
|
||||
if (typeof val === "number") {
|
||||
const buf = Buffer.alloc(UInt16.width);
|
||||
buf.writeUInt16BE(val);
|
||||
buf.writeUInt16BE(val, 0);
|
||||
return new UInt16(buf);
|
||||
}
|
||||
|
||||
@@ -43,7 +44,7 @@ class UInt16 extends UInt {
|
||||
* @returns the number represented by this.bytes
|
||||
*/
|
||||
valueOf(): number {
|
||||
return this.bytes.readUInt16BE();
|
||||
return this.bytes.readUInt16BE(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { UInt } from "./uint";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Derived UInt class for serializing/deserializing 32 bit UInt
|
||||
@@ -32,12 +33,12 @@ class UInt32 extends UInt {
|
||||
|
||||
if (typeof val === "string") {
|
||||
const num = Number.parseInt(val);
|
||||
buf.writeUInt32BE(num);
|
||||
buf.writeUInt32BE(num, 0);
|
||||
return new UInt32(buf);
|
||||
}
|
||||
|
||||
if (typeof val === "number") {
|
||||
buf.writeUInt32BE(val);
|
||||
buf.writeUInt32BE(val, 0);
|
||||
return new UInt32(buf);
|
||||
}
|
||||
|
||||
@@ -50,7 +51,7 @@ class UInt32 extends UInt {
|
||||
* @returns the number represented by this.bytes
|
||||
*/
|
||||
valueOf(): number {
|
||||
return this.bytes.readUInt32BE();
|
||||
return this.bytes.readUInt32BE(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ import { UInt } from "./uint";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import * as bigInt from "big-integer";
|
||||
import { isInstance } from "big-integer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
const HEX_REGEX = /^[A-F0-9]{16}$/;
|
||||
const mask = bigInt(0x00000000ffffffff);
|
||||
@@ -46,8 +47,8 @@ class UInt64 extends UInt {
|
||||
const number = bigInt(val);
|
||||
|
||||
const intBuf = [Buffer.alloc(4), Buffer.alloc(4)];
|
||||
intBuf[0].writeUInt32BE(Number(number.shiftRight(32)));
|
||||
intBuf[1].writeUInt32BE(Number(number.and(mask)));
|
||||
intBuf[0].writeUInt32BE(Number(number.shiftRight(32)), 0);
|
||||
intBuf[1].writeUInt32BE(Number(number.and(mask)), 0);
|
||||
|
||||
return new UInt64(Buffer.concat(intBuf));
|
||||
}
|
||||
@@ -62,8 +63,8 @@ class UInt64 extends UInt {
|
||||
|
||||
if (isInstance(val)) {
|
||||
const intBuf = [Buffer.alloc(4), Buffer.alloc(4)];
|
||||
intBuf[0].writeUInt32BE(Number(val.shiftRight(bigInt(32))));
|
||||
intBuf[1].writeUInt32BE(Number(val.and(mask)));
|
||||
intBuf[0].writeUInt32BE(Number(val.shiftRight(bigInt(32))), 0);
|
||||
intBuf[1].writeUInt32BE(Number(val.and(mask)), 0);
|
||||
|
||||
return new UInt64(Buffer.concat(intBuf));
|
||||
}
|
||||
@@ -86,8 +87,8 @@ class UInt64 extends UInt {
|
||||
* @returns the number represented buy this.bytes
|
||||
*/
|
||||
valueOf(): bigInt.BigInteger {
|
||||
const msb = bigInt(this.bytes.slice(0, 4).readUInt32BE());
|
||||
const lsb = bigInt(this.bytes.slice(4).readUInt32BE());
|
||||
const msb = bigInt(this.bytes.slice(0, 4).readUInt32BE(0));
|
||||
const lsb = bigInt(this.bytes.slice(4).readUInt32BE(0));
|
||||
return msb.shiftLeft(bigInt(32)).or(lsb);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { UInt } from "./uint";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Derived UInt class for serializing/deserializing 8 bit UInt
|
||||
@@ -28,7 +29,7 @@ class UInt8 extends UInt {
|
||||
|
||||
if (typeof val === "number") {
|
||||
const buf = Buffer.alloc(UInt8.width);
|
||||
buf.writeUInt8(val);
|
||||
buf.writeUInt8(val, 0);
|
||||
return new UInt8(buf);
|
||||
}
|
||||
|
||||
@@ -41,7 +42,7 @@ class UInt8 extends UInt {
|
||||
* @returns the number represented by this.bytes
|
||||
*/
|
||||
valueOf(): number {
|
||||
return this.bytes.readUInt8();
|
||||
return this.bytes.readUInt8(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import * as bigInt from "big-integer";
|
||||
import { Comparable } from "./serialized-type";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* Compare numbers and bigInts n1 and n2
|
||||
|
||||
@@ -2,6 +2,7 @@ import { SerializedType } from "./serialized-type";
|
||||
import { BinaryParser } from "../serdes/binary-parser";
|
||||
import { Hash256 } from "./hash-256";
|
||||
import { BytesList } from "../serdes/binary-serializer";
|
||||
import { Buffer } from "buffer/";
|
||||
|
||||
/**
|
||||
* TypeGuard for Array<string>
|
||||
|
||||
@@ -11,6 +11,7 @@ const { Field, TransactionType } = require("./../dist/enums");
|
||||
const { parseHexOnly, hexOnly, loadFixture } = require("./utils");
|
||||
const fixtures = loadFixture("data-driven-tests.json");
|
||||
const { BytesList } = require("../dist/serdes/binary-serializer");
|
||||
const { Buffer } = require("buffer/");
|
||||
|
||||
const __ = hexOnly;
|
||||
function toJSON(v) {
|
||||
|
||||
@@ -6,6 +6,7 @@ const { makeParser, BytesList, BinarySerializer } = binary;
|
||||
const { coreTypes } = require("../dist/types");
|
||||
const { UInt8, UInt16, UInt32, UInt64, STObject } = coreTypes;
|
||||
const bigInt = require("big-integer");
|
||||
const { Buffer } = require("buffer/");
|
||||
|
||||
const { loadFixture } = require("./utils");
|
||||
const fixtures = loadFixture("data-driven-tests.json");
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const { coreTypes } = require("../dist/types");
|
||||
const { Hash160, Hash256, AccountID, Currency } = coreTypes;
|
||||
const { Buffer } = require("buffer/");
|
||||
|
||||
describe("Hash160", function () {
|
||||
test("has a static width member", function () {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { ShaMap } = require("../dist/shamap.js");
|
||||
const { binary, HashPrefix } = require("../dist/coretypes");
|
||||
const { coreTypes } = require("../dist/types");
|
||||
const { loadFixture } = require("./utils");
|
||||
const { Buffer } = require("buffer/");
|
||||
|
||||
function now() {
|
||||
return Number(Date.now()) / 1000;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const fs = require("fs");
|
||||
const { Buffer } = require('buffer/')
|
||||
|
||||
function hexOnly(hex) {
|
||||
return hex.replace(/[^a-fA-F0-9]/g, "");
|
||||
|
||||
@@ -798,6 +798,11 @@ arr-union@^3.1.0:
|
||||
resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
|
||||
integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=
|
||||
|
||||
array-filter@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-1.0.0.tgz#baf79e62e6ef4c2a4c0b831232daffec251f9d83"
|
||||
integrity sha1-uveeYubvTCpMC4MSMtr/7CUfnYM=
|
||||
|
||||
array-includes@^3.1.1:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.1.tgz#cdd67e6852bdf9c1215460786732255ed2459348"
|
||||
@@ -832,6 +837,16 @@ assert-plus@1.0.0, assert-plus@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
|
||||
integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=
|
||||
|
||||
assert@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/assert/-/assert-2.0.0.tgz#95fc1c616d48713510680f2eaf2d10dd22e02d32"
|
||||
integrity sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==
|
||||
dependencies:
|
||||
es6-object-assign "^1.1.0"
|
||||
is-nan "^1.2.1"
|
||||
object-is "^1.0.1"
|
||||
util "^0.12.0"
|
||||
|
||||
assign-symbols@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
|
||||
@@ -852,6 +867,13 @@ atob@^2.1.2:
|
||||
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
|
||||
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==
|
||||
|
||||
available-typed-arrays@^1.0.0, available-typed-arrays@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.2.tgz#6b098ca9d8039079ee3f77f7b783c4480ba513f5"
|
||||
integrity sha512-XWX3OX8Onv97LMk/ftVyBibpGwY5a8SmuxZPzeOxqmuEqUCOM9ZE+uIaD1VNJ5QnvU2UQusvmKbuM1FR8QWGfQ==
|
||||
dependencies:
|
||||
array-filter "^1.0.0"
|
||||
|
||||
aws-sign2@~0.7.0:
|
||||
version "0.7.0"
|
||||
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
|
||||
@@ -934,6 +956,11 @@ base-x@3.0.7:
|
||||
dependencies:
|
||||
safe-buffer "^5.0.1"
|
||||
|
||||
base64-js@^1.0.2:
|
||||
version "1.5.1"
|
||||
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
|
||||
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
|
||||
|
||||
base@^0.11.1:
|
||||
version "0.11.2"
|
||||
resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f"
|
||||
@@ -1007,6 +1034,14 @@ buffer-from@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
|
||||
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
|
||||
|
||||
buffer@5.6.0:
|
||||
version "5.6.0"
|
||||
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.6.0.tgz#a31749dc7d81d84db08abf937b6b8c4033f62786"
|
||||
integrity sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==
|
||||
dependencies:
|
||||
base64-js "^1.0.2"
|
||||
ieee754 "^1.1.4"
|
||||
|
||||
cache-base@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
|
||||
@@ -1397,7 +1432,7 @@ error-ex@^1.2.0, error-ex@^1.3.1:
|
||||
dependencies:
|
||||
is-arrayish "^0.2.1"
|
||||
|
||||
es-abstract@^1.17.0, es-abstract@^1.17.0-next.1:
|
||||
es-abstract@^1.17.0, es-abstract@^1.17.0-next.1, es-abstract@^1.17.4, es-abstract@^1.17.5:
|
||||
version "1.17.7"
|
||||
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.7.tgz#a4de61b2f66989fc7421676c1cb9787573ace54c"
|
||||
integrity sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==
|
||||
@@ -1441,6 +1476,11 @@ es-to-primitive@^1.2.1:
|
||||
is-date-object "^1.0.1"
|
||||
is-symbol "^1.0.2"
|
||||
|
||||
es6-object-assign@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz#c2c3582656247c39ea107cb1e6652b6f9f24523c"
|
||||
integrity sha1-wsNYJlYkfDnqEHyx5mUrb58kUjw=
|
||||
|
||||
escape-string-regexp@^1.0.5:
|
||||
version "1.0.5"
|
||||
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
|
||||
@@ -1830,6 +1870,11 @@ for-in@^1.0.2:
|
||||
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
||||
integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=
|
||||
|
||||
foreach@^2.0.5:
|
||||
version "2.0.5"
|
||||
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
|
||||
integrity sha1-C+4AUBiusmDQo6865ljdATbsG5k=
|
||||
|
||||
forever-agent@~0.6.1:
|
||||
version "0.6.1"
|
||||
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
|
||||
@@ -2071,6 +2116,11 @@ iconv-lite@0.4.24:
|
||||
dependencies:
|
||||
safer-buffer ">= 2.1.2 < 3"
|
||||
|
||||
ieee754@^1.1.4:
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
|
||||
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
|
||||
|
||||
ignore@^4.0.6:
|
||||
version "4.0.6"
|
||||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
|
||||
@@ -2129,6 +2179,11 @@ is-accessor-descriptor@^1.0.0:
|
||||
dependencies:
|
||||
kind-of "^6.0.0"
|
||||
|
||||
is-arguments@^1.0.4:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.0.4.tgz#3faf966c7cba0ff437fb31f6250082fcf0448cf3"
|
||||
integrity sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==
|
||||
|
||||
is-arrayish@^0.2.1:
|
||||
version "0.2.1"
|
||||
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
|
||||
@@ -2232,6 +2287,11 @@ is-generator-fn@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118"
|
||||
integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==
|
||||
|
||||
is-generator-function@^1.0.7:
|
||||
version "1.0.7"
|
||||
resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.7.tgz#d2132e529bb0000a7f80794d4bdf5cd5e5813522"
|
||||
integrity sha512-YZc5EwyO4f2kWCax7oegfuSr9mFz1ZvieNYBEjmukLxgXfBUbxAWGVF7GZf0zidYtoBl3WvC07YK0wT76a+Rtw==
|
||||
|
||||
is-glob@^4.0.0, is-glob@^4.0.1:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc"
|
||||
@@ -2239,6 +2299,13 @@ is-glob@^4.0.0, is-glob@^4.0.1:
|
||||
dependencies:
|
||||
is-extglob "^2.1.1"
|
||||
|
||||
is-nan@^1.2.1:
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/is-nan/-/is-nan-1.3.0.tgz#85d1f5482f7051c2019f5673ccebdb06f3b0db03"
|
||||
integrity sha512-z7bbREymOqt2CCaZVly8aC4ML3Xhfi0ekuOnjO2L8vKdl+CttdVoGZQhd4adMFAsxQ5VeRVwORs4tU8RH+HFtQ==
|
||||
dependencies:
|
||||
define-properties "^1.1.3"
|
||||
|
||||
is-negative-zero@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.0.tgz#9553b121b0fac28869da9ed459e20c7543788461"
|
||||
@@ -2297,6 +2364,16 @@ is-symbol@^1.0.2:
|
||||
dependencies:
|
||||
has-symbols "^1.0.1"
|
||||
|
||||
is-typed-array@^1.1.3:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.3.tgz#a4ff5a5e672e1a55f99c7f54e59597af5c1df04d"
|
||||
integrity sha512-BSYUBOK/HJibQ30wWkWold5txYwMUXQct9YHAQJr8fSwvZoiglcqB0pd7vEN23+Tsi9IUEjztdOSzl4qLVYGTQ==
|
||||
dependencies:
|
||||
available-typed-arrays "^1.0.0"
|
||||
es-abstract "^1.17.4"
|
||||
foreach "^2.0.5"
|
||||
has-symbols "^1.0.1"
|
||||
|
||||
is-typedarray@^1.0.0, is-typedarray@~1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
|
||||
@@ -3177,6 +3254,14 @@ object-inspect@^1.8.0:
|
||||
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.8.0.tgz#df807e5ecf53a609cc6bfe93eac3cc7be5b3a9d0"
|
||||
integrity sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==
|
||||
|
||||
object-is@^1.0.1:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.3.tgz#2e3b9e65560137455ee3bd62aec4d90a2ea1cc81"
|
||||
integrity sha512-teyqLvFWzLkq5B9ki8FVWA902UER2qkxmdA4nLf+wjOLAWgxzCWZNCxpDq9MvE8MmhWNr+I8w3BN49Vx36Y6Xg==
|
||||
dependencies:
|
||||
define-properties "^1.1.3"
|
||||
es-abstract "^1.18.0-next.1"
|
||||
|
||||
object-keys@^1.0.12, object-keys@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
|
||||
@@ -4302,6 +4387,18 @@ util-deprecate@^1.0.1:
|
||||
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
|
||||
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
|
||||
|
||||
util@^0.12.0:
|
||||
version "0.12.3"
|
||||
resolved "https://registry.yarnpkg.com/util/-/util-0.12.3.tgz#971bb0292d2cc0c892dab7c6a5d37c2bec707888"
|
||||
integrity sha512-I8XkoQwE+fPQEhy9v012V+TSdH2kp9ts29i20TaaDUXsg7x/onePbhFJUExBfv/2ay1ZOp/Vsm3nDlmnFGSAog==
|
||||
dependencies:
|
||||
inherits "^2.0.3"
|
||||
is-arguments "^1.0.4"
|
||||
is-generator-function "^1.0.7"
|
||||
is-typed-array "^1.1.3"
|
||||
safe-buffer "^5.1.2"
|
||||
which-typed-array "^1.1.2"
|
||||
|
||||
uuid@^3.3.2:
|
||||
version "3.4.0"
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
|
||||
@@ -4400,6 +4497,18 @@ which-module@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
|
||||
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
|
||||
|
||||
which-typed-array@^1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.2.tgz#e5f98e56bda93e3dac196b01d47c1156679c00b2"
|
||||
integrity sha512-KT6okrd1tE6JdZAy3o2VhMoYPh3+J6EMZLyrxBQsZflI1QCZIxMrIYLkosd8Twf+YfknVIHmYQPgJt238p8dnQ==
|
||||
dependencies:
|
||||
available-typed-arrays "^1.0.2"
|
||||
es-abstract "^1.17.5"
|
||||
foreach "^2.0.5"
|
||||
function-bind "^1.1.1"
|
||||
has-symbols "^1.0.1"
|
||||
is-typed-array "^1.1.3"
|
||||
|
||||
which@^1.2.9:
|
||||
version "1.3.1"
|
||||
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
|
||||
|
||||
Reference in New Issue
Block a user