Comparing version 5.0.1 to 5.1.0
@@ -426,2 +426,2 @@ declare class Long { | ||
export default Long; | ||
export = Long; // compatible with `import Long from "long"` |
{ | ||
"name": "long", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"author": "Daniel Wirtz <dcode@dcode.io>", | ||
@@ -14,9 +14,18 @@ "description": "A Long class for representing a 64-bit two's-complement integer value.", | ||
"keywords": [ | ||
"math" | ||
"math", | ||
"long", | ||
"int64" | ||
], | ||
"license": "Apache-2.0", | ||
"type": "module", | ||
"main": "index.js", | ||
"main": "umd/index.js", | ||
"types": "index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./index.js", | ||
"require": "./umd/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "esm2umd Long index.js > umd/index.js", | ||
"test": "node tests" | ||
@@ -27,5 +36,11 @@ }, | ||
"index.d.ts", | ||
"umd/index.js", | ||
"umd/index.d.ts", | ||
"umd/package.json", | ||
"LICENSE", | ||
"README.md" | ||
] | ||
], | ||
"devDependencies": { | ||
"esm2umd": "^0.2.0" | ||
} | ||
} |
@@ -30,5 +30,5 @@ long.js | ||
The class is compatible with CommonJS and AMD loaders and is exposed globally as `Long` if neither is available. | ||
The package exports an ECMAScript module with an UMD fallback. | ||
```javascript | ||
```js | ||
import Long from "long"; | ||
@@ -42,2 +42,4 @@ | ||
Note that mixing ESM and CommonJS is not recommended as it yield different classes with the same functionality. | ||
API | ||
@@ -44,0 +46,0 @@ --- |
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
115185
8
2800
253
1