Comparing version 5.2.1 to 5.2.2
@@ -80,3 +80,7 @@ declare class Long { | ||
*/ | ||
static fromString(str: string, unsigned?: boolean | number, radix?: number): Long; | ||
static fromString( | ||
str: string, | ||
unsigned?: boolean | number, | ||
radix?: number | ||
): Long; | ||
@@ -106,3 +110,10 @@ /** | ||
*/ | ||
static fromValue(val: Long | number | string | { low: number, high: number, unsigned: boolean }, unsigned?: boolean): Long; | ||
static fromValue( | ||
val: | ||
| Long | ||
| number | ||
| string | ||
| { low: number; high: number; unsigned: boolean }, | ||
unsigned?: boolean | ||
): Long; | ||
@@ -448,2 +459,2 @@ /** | ||
export = Long; // compatible with `import Long from "long"` | ||
export default Long; // compatible with `import Long from "long"` |
{ | ||
"name": "long", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"author": "Daniel Wirtz <dcode@dcode.io>", | ||
@@ -21,8 +21,13 @@ "description": "A Long class for representing a 64-bit two's-complement integer value.", | ||
"main": "umd/index.js", | ||
"types": "index.d.ts", | ||
"types": "umd/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.js", | ||
"require": "./umd/index.js" | ||
"import": { | ||
"default": "./index.js", | ||
"types": "./index.d.ts" | ||
}, | ||
"require": { | ||
"default": "./umd/index.js", | ||
"types": "./umd/index.d.ts" | ||
} | ||
} | ||
@@ -44,4 +49,4 @@ }, | ||
"devDependencies": { | ||
"esm2umd": "^0.2.0" | ||
"esm2umd": "^0.2.1" | ||
} | ||
} |
@@ -1432,2 +1432,2 @@ // GENERATED FILE. DO NOT EDIT. | ||
if (typeof define === 'function' && define.amd) define([], function() { return Long; }); | ||
else if (typeof module === 'object' && typeof exports==='object') module.exports = Long; | ||
else if (typeof module === 'object' && typeof exports === 'object') module.exports = Long; |
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
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
118892
2907