mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
feat: convert to Node.js compatible ES Module
This commit is contained in:
parent
730aac8da2
commit
d9212b4dac
94 changed files with 429 additions and 466 deletions
|
@ -26,7 +26,7 @@
|
|||
"url": "https://github.com/yume-chan/ya-webadb/issues"
|
||||
},
|
||||
"type": "module",
|
||||
"module": "esm/index.js",
|
||||
"main": "esm/index.js",
|
||||
"types": "esm/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "build-ts-package",
|
||||
|
@ -39,7 +39,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"typescript": "^4.6.2",
|
||||
"typescript": "next",
|
||||
"@yume-chan/ts-package-builder": "^1.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { getBigInt64 as fallbackGetBigInt64, getBigUint64 as fallbackGetBigUint64, setBigInt64 as fallbackSetBigInt64, setBigUint64 as fallbackSetBigUint64 } from './pure';
|
||||
import { getBigInt64 as fallbackGetBigInt64, getBigUint64 as fallbackGetBigUint64, setBigInt64 as fallbackSetBigInt64, setBigUint64 as fallbackSetBigUint64 } from './pure.js';
|
||||
|
||||
export const getBigInt64 =
|
||||
'getBigInt64' in DataView.prototype ?
|
||||
|
|
|
@ -1 +1 @@
|
|||
export * from './pure';
|
||||
export * from './pure.js';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { getBigInt64, getBigUint64, setBigInt64, setBigUint64 } from './pure';
|
||||
import { getBigInt64, getBigUint64, setBigInt64, setBigUint64 } from './pure.js';
|
||||
|
||||
if (!('getBigInt64' in DataView)) {
|
||||
DataView.prototype.getBigInt64 = function (byteOffset, littleEndian) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue