taglib-wasm 2.3.1 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -29
- package/NOTICE +35 -0
- package/README.md +37 -33
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/assertClassBrand.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/checkPrivateRedeclaration.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/classPrivateFieldGet2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/classPrivateFieldInitSpec.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/classPrivateFieldSet2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/typeof.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/usingCtx.js +1 -1
- package/dist/constants/properties.d.ts +5 -839
- package/dist/constants/properties.d.ts.map +1 -1
- package/dist/constants/properties.js +2 -0
- package/dist/constants/specialized-properties.d.ts +14 -0
- package/dist/constants/specialized-properties.d.ts.map +1 -1
- package/dist/constants/specialized-properties.js +21 -0
- package/dist/deno-compile.d.ts +8 -4
- package/dist/deno-compile.d.ts.map +1 -1
- package/dist/deno-compile.js +9 -5
- package/dist/index.browser.js +36 -8
- package/dist/rating.js +1 -2
- package/dist/runtime/deno-detect.d.ts +11 -0
- package/dist/runtime/deno-detect.d.ts.map +1 -1
- package/dist/runtime/deno-detect.js +15 -1
- package/dist/runtime/platform-io.d.ts.map +1 -1
- package/dist/runtime/platform-io.js +15 -0
- package/dist/runtime/wasi-adapter/adapter.js +1 -1
- package/dist/runtime/wasi-adapter/audio-properties.d.ts.map +1 -1
- package/dist/runtime/wasi-adapter/audio-properties.js +1 -1
- package/dist/runtime/wasi-adapter/file-handle.js +1 -1
- package/dist/runtime/wasi-adapter/index.js +1 -2
- package/dist/runtime/wasi-adapter/wasm-io.js +1 -1
- package/dist/runtime/wasi-memory.js +3 -3
- package/dist/simple/picture-operations.d.ts +6 -0
- package/dist/simple/picture-operations.d.ts.map +1 -1
- package/dist/simple/picture-operations.js +6 -0
- package/dist/simple/tag-operations.d.ts +7 -0
- package/dist/simple/tag-operations.d.ts.map +1 -1
- package/dist/simple/tag-operations.js +7 -0
- package/dist/simple/with-audio-file.d.ts.map +1 -1
- package/dist/simple/with-audio-file.js +2 -1
- package/dist/simple.browser.js +32 -7
- package/dist/taglib/audio-file-base.js +1 -1
- package/dist/taglib/audio-file-impl.js +1 -1
- package/dist/taglib/embind-adapter.d.ts.map +1 -1
- package/dist/taglib/embind-adapter.js +2 -1
- package/dist/taglib/taglib-class.js +1 -1
- package/dist/taglib-wasi.wasm +0 -0
- package/dist/taglib-web.wasm +0 -0
- package/dist/taglib-wrapper.js +1 -1
- package/dist/types/audio-formats.d.ts +5 -1
- package/dist/types/audio-formats.d.ts.map +1 -1
- package/dist/types/metadata-mappings.d.ts.map +1 -1
- package/dist/types/metadata-mappings.js +8 -0
- package/dist/types/tags.d.ts +4 -0
- package/dist/types/tags.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/web.browser.js +32 -7
- package/legal/COPYING.LGPL +502 -0
- package/package.json +34 -27
package/LICENSE
CHANGED
|
@@ -19,32 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
ADDITIONAL LICENSING INFORMATION:
|
|
26
|
-
|
|
27
|
-
This product includes software developed by Scott Wheeler and the TagLib
|
|
28
|
-
contributors (https://taglib.org/).
|
|
29
|
-
|
|
30
|
-
The WebAssembly binaries (build/taglib-web.wasm for the Emscripten backend
|
|
31
|
-
and build/taglib-wasi.wasm for the WASI backend, shipped as dist/*.wasm)
|
|
32
|
-
contain compiled TagLib code which is licensed under LGPL-2.1-or-later.
|
|
33
|
-
The original TagLib source code is located in lib/taglib/. See
|
|
34
|
-
lib/taglib/COPYING.LGPL for the full LGPL license terms.
|
|
35
|
-
|
|
36
|
-
LGPL COMPLIANCE:
|
|
37
|
-
The WebAssembly binaries are subject to LGPL requirements. This means:
|
|
38
|
-
- You may use them in commercial applications
|
|
39
|
-
- Modifications to TagLib must be shared under LGPL
|
|
40
|
-
- You must enable users to relink with modified TagLib versions
|
|
41
|
-
|
|
42
|
-
To rebuild the WebAssembly binaries with a modified TagLib:
|
|
43
|
-
1. Modify the TagLib source in lib/taglib/
|
|
44
|
-
2. Run: npm run build:wasm (builds both backends; requires the
|
|
45
|
-
Emscripten SDK and WASI SDK 34 — see .github/CONTRIBUTING.md)
|
|
46
|
-
3. The new binaries will be in build/taglib-web.wasm and
|
|
47
|
-
build/taglib-wasi.wasm
|
|
48
|
-
|
|
49
|
-
For more information about LGPL compliance and dual licensing, see:
|
|
50
|
-
https://github.com/CharlesWiltgen/TagLib-Wasm#licensing
|
package/NOTICE
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
NOTICE
|
|
2
|
+
======
|
|
3
|
+
|
|
4
|
+
Third-party and binary licensing for taglib-wasm. The project's own
|
|
5
|
+
TypeScript/JavaScript code is MIT — see LICENSE.
|
|
6
|
+
|
|
7
|
+
This product includes software developed by Scott Wheeler and the TagLib
|
|
8
|
+
contributors (https://taglib.org/).
|
|
9
|
+
|
|
10
|
+
The WebAssembly binaries (build/taglib-web.wasm for the Emscripten backend and
|
|
11
|
+
build/taglib-wasi.wasm for the WASI backend, shipped as dist/*.wasm) contain
|
|
12
|
+
compiled TagLib code, which is licensed under LGPL-2.1-or-later (TagLib is
|
|
13
|
+
dual-licensed LGPL-2.1-or-later / MPL-1.1). The full LGPL-2.1 text ships with
|
|
14
|
+
this package as legal/COPYING.LGPL — a verbatim copy of the same file in the
|
|
15
|
+
vendored TagLib source at lib/taglib/ (git submodule).
|
|
16
|
+
|
|
17
|
+
LGPL compliance
|
|
18
|
+
---------------
|
|
19
|
+
|
|
20
|
+
The WebAssembly binaries are subject to LGPL requirements. This means:
|
|
21
|
+
|
|
22
|
+
- You may use them in commercial applications
|
|
23
|
+
- Modifications to TagLib must be shared under LGPL
|
|
24
|
+
- You must enable users to relink with modified TagLib versions
|
|
25
|
+
|
|
26
|
+
To rebuild the WebAssembly binaries with a modified TagLib:
|
|
27
|
+
|
|
28
|
+
1. Modify the TagLib source in lib/taglib/
|
|
29
|
+
2. Run: pnpm run build:wasm (builds both backends; requires the
|
|
30
|
+
Emscripten SDK and WASI SDK 34 — see .github/CONTRIBUTING.md)
|
|
31
|
+
3. The new binaries will be in build/taglib-web.wasm and
|
|
32
|
+
build/taglib-wasi.wasm
|
|
33
|
+
|
|
34
|
+
Rendered licensing notes:
|
|
35
|
+
https://github.com/CharlesWiltgen/TagLib-Wasm/blob/main/README.md#license
|
package/README.md
CHANGED
|
@@ -59,11 +59,12 @@ npm install taglib-wasm
|
|
|
59
59
|
|
|
60
60
|
### Deno
|
|
61
61
|
|
|
62
|
-
Deno installs from
|
|
63
|
-
package `@charlesw/taglib-wasm` is deprecated.
|
|
62
|
+
Deno installs from JSR or from npm:
|
|
64
63
|
|
|
65
64
|
```typescript
|
|
66
|
-
import { TagLib } from "
|
|
65
|
+
import { TagLib } from "jsr:@charlesw/taglib-wasm"; // JSR
|
|
66
|
+
// or
|
|
67
|
+
import { TagLib } from "npm:taglib-wasm"; // npm
|
|
67
68
|
```
|
|
68
69
|
|
|
69
70
|
### Bun
|
|
@@ -135,8 +136,9 @@ path or URL instead — use `wasmUrl` with it.
|
|
|
135
136
|
|
|
136
137
|
## Quick Start
|
|
137
138
|
|
|
138
|
-
> **Import paths:** all runtimes use the npm package `taglib-wasm
|
|
139
|
-
>
|
|
139
|
+
> **Import paths:** all runtimes use the npm package `taglib-wasm`; Deno can
|
|
140
|
+
> also install from JSR (`jsr:@charlesw/taglib-wasm`). Both are published for
|
|
141
|
+
> every release.
|
|
140
142
|
|
|
141
143
|
### Simple API
|
|
142
144
|
|
|
@@ -579,28 +581,28 @@ Where a build splits its output into several files, the figure is the total of
|
|
|
579
581
|
every JavaScript chunk it emits. Exact invocations, so the table can be
|
|
580
582
|
reproduced:
|
|
581
583
|
|
|
582
|
-
- **esbuild 0.28.2**
|
|
583
|
-
--target=es2022 --platform=browser --external:
|
|
584
|
+
- **esbuild 0.28.2** – `esbuild <app> --bundle --minify --format=esm
|
|
585
|
+
--target=es2022 --platform=browser --external:module` for the browser
|
|
584
586
|
column; the same with `--platform=node` and no `--external` for the Node
|
|
585
|
-
column. The `--external` matches the dynamic `import("
|
|
587
|
+
column. The `--external` matches the dynamic `import("module")` in
|
|
586
588
|
`dist/taglib-wrapper.js`. (`--external` takes a colon, not `=`.)
|
|
587
|
-
- **rollup 4.63.3**
|
|
589
|
+
- **rollup 4.63.3** – `input: <app>`, plugins `@rollup/plugin-node-resolve`
|
|
588
590
|
(`{ browser: true, exportConditions: ["browser", "default"] }` for the browser
|
|
589
591
|
column, default options for the Node column) and `@rollup/plugin-terser`,
|
|
590
592
|
output `{ format: "esm", inlineDynamicImports: true }`.
|
|
591
|
-
- **vite 8.3.0**
|
|
593
|
+
- **vite 8.3.0** – A real app build: `index.html` plus a
|
|
592
594
|
`<script type="module">` pointing at the entry, `build.minify: "esbuild"`,
|
|
593
595
|
`target: "es2022"`. Vite builds for the browser; the figures below that name
|
|
594
596
|
the `node` condition instead add `resolve.conditions: ["node"]`.
|
|
595
|
-
- **webpack 5.111.1**
|
|
597
|
+
- **webpack 5.111.1** – `mode: "production"`, `target: "web"`,
|
|
596
598
|
`externals: { module: "module" }`. `target: "web"` alone fails on the
|
|
597
|
-
`import("
|
|
599
|
+
`import("module")` inside `dist/taglib-wrapper.js`.
|
|
598
600
|
|
|
599
601
|
| Consumer app | esbuild (browser)¹ | rollup (browser)¹ | vite (app) | webpack (web)² | esbuild (Node)³ | rollup (Node)³ |
|
|
600
602
|
| ------------------------------------- | ------------------ | ----------------- | ---------- | -------------- | --------------- | -------------- |
|
|
601
|
-
| `taglib-wasm` — `TagLib.initialize()` |
|
|
602
|
-
| `taglib-wasm/simple` — `getTagLib()` |
|
|
603
|
-
| `taglib-wasm/folder` — `scanFolder`⁴ | — |
|
|
603
|
+
| `taglib-wasm` — `TagLib.initialize()` | 81,300 | 78,526 | 83,770 | 81,322 | 147,532 | 136,929 |
|
|
604
|
+
| `taglib-wasm/simple` — `getTagLib()` | 81,036 | 78,804 | 83,518 | 82,152 | 148,553 | 137,330 |
|
|
605
|
+
| `taglib-wasm/folder` — `scanFolder`⁴ | — | 140,717⁴ | 150,043⁴ | — | 151,898 | 140,717 |
|
|
604
606
|
|
|
605
607
|
¹ the `browser` `exports` condition. ² `target: "web"`. ³ the Node `exports`
|
|
606
608
|
condition. ⁴ Node-only entry — see below.
|
|
@@ -621,15 +623,15 @@ browser, scan on a server and post the result; the pure
|
|
|
621
623
|
|
|
622
624
|
**`./web` builds for the browser.** It declares a `browser` condition, so a
|
|
623
625
|
browser-targeted build resolves an Emscripten-only build of that entry and pulls
|
|
624
|
-
**`taglib-web.wasm` alone**
|
|
625
|
-
`pictureToDataURL` from `taglib-wasm/web`: one
|
|
626
|
+
**`taglib-web.wasm` alone** – Measured with the vite invocation above on
|
|
627
|
+
`pictureToDataURL` from `taglib-wasm/web`: one 673,441-byte Wasm asset, where
|
|
626
628
|
the vite build on the `node` condition instead emits both `taglib-web.wasm` and
|
|
627
|
-
`taglib-wasi.wasm` (1,
|
|
629
|
+
`taglib-wasi.wasm` (1,428,196 bytes of assets for a call that needs neither
|
|
628
630
|
engine). The browser build is a pre-bundled file like `index.browser.js`, so it
|
|
629
|
-
barely tree-shakes: that call is
|
|
631
|
+
barely tree-shakes: that call is 82,511 bytes in the vite app build and 80,021
|
|
630
632
|
under the esbuild browser column, against 205 bytes under esbuild's Node column —
|
|
631
633
|
and importing any pure helper from the barrel costs ~80 KB there too. Rollup is
|
|
632
|
-
the exception: it shakes the pre-bundled file down to
|
|
634
|
+
the exception: it shakes the pre-bundled file down to 784 bytes, though still
|
|
633
635
|
not to the 210-byte leaf its Node column reaches. That granularity is a property
|
|
634
636
|
of the pre-bundled browser entries, not of this subpath.
|
|
635
637
|
|
|
@@ -655,8 +657,8 @@ instead of a bundler error — and importing `bwf`, `groupAlbums`,
|
|
|
655
657
|
mismatch is what produced the original silent failure.
|
|
656
658
|
|
|
657
659
|
**Bundler interop.** `dist/taglib-wrapper.js` — the Emscripten glue — contains a
|
|
658
|
-
dynamic `import("
|
|
659
|
-
two targets need one line each: esbuild `--external:
|
|
660
|
+
dynamic `import("module")`, and browser targets have no such builtin, so the
|
|
661
|
+
two targets need one line each: esbuild `--external:module`, webpack
|
|
660
662
|
`externals: { module: "module" }` (webpack `target: "web"` alone fails on it).
|
|
661
663
|
Rollup needs nothing extra; vite externalizes it for the browser with a warning.
|
|
662
664
|
The `browser` condition itself is resolved by default by esbuild
|
|
@@ -665,7 +667,7 @@ The `browser` condition itself is resolved by default by esbuild
|
|
|
665
667
|
|
|
666
668
|
**The barrel is not a tax.** Adding an API to an import that already loads the
|
|
667
669
|
engine costs only that API. Against the `taglib-wasm` row above (esbuild, Node
|
|
668
|
-
column): adding `scanFolder` costs **4,
|
|
670
|
+
column): adding `scanFolder` costs **4,381 bytes** and adding
|
|
669
671
|
`pictureToDataURL` costs **187 bytes**, because neither drags in the rest of the
|
|
670
672
|
Folder or Web module tree.
|
|
671
673
|
|
|
@@ -674,16 +676,16 @@ pre-bundled file, so a consumer of the barrel downloads the whole file whatever
|
|
|
674
676
|
it imports; adding the pure `bwf` / `groupAlbums` / `discFolderInfo` exports to
|
|
675
677
|
that file's export list therefore costs nothing measurable. Bundling
|
|
676
678
|
`import { TagLib }` against the entry with and without those three export names
|
|
677
|
-
gives identical bytes under esbuild (
|
|
678
|
-
more under vite (
|
|
679
|
+
gives identical bytes under esbuild (81,300) and rollup (78,526) and 12 bytes
|
|
680
|
+
more under vite (83,758 → 83,770). Nothing else moved: the Folder and Web APIs
|
|
679
681
|
are still reached only when imported, and the Node entries are unchanged.
|
|
680
682
|
|
|
681
683
|
**Entry-point choice is not a size lever.** `taglib-wasm` and
|
|
682
684
|
`taglib-wasm/simple` differ by about a kilobyte either way — in a browser bundle
|
|
683
|
-
`simple` is
|
|
685
|
+
`simple` is 264 bytes _smaller_, on Node 1,021 bytes _larger_, because
|
|
684
686
|
`getTagLib()` reaches the full `TagLib` class through a dynamic import. Pick by
|
|
685
687
|
API surface. The lever that does matter is the `browser` export condition: a
|
|
686
|
-
browser-targeted bundle is ~80 KB where a Node-targeted one is ~
|
|
688
|
+
browser-targeted bundle is ~80 KB where a Node-targeted one is ~148 KB.
|
|
687
689
|
|
|
688
690
|
**`"sideEffects": false`** is set in `package.json`, so a bundler may drop any
|
|
689
691
|
module whose exports go unused. Before that field, importers of the sub-entries
|
|
@@ -709,7 +711,7 @@ under every bundler:
|
|
|
709
711
|
| ---------------------- | ------- | ------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
710
712
|
| **Node.js** | Full | `npm install taglib-wasm` | TypeScript via tsx |
|
|
711
713
|
| **Deno** | Full | `npm:taglib-wasm` | Native TypeScript |
|
|
712
|
-
| **Bun** | Partial | `bun add taglib-wasm` | Import + init verified; covered by `
|
|
714
|
+
| **Bun** | Partial | `bun add taglib-wasm` | Import + init verified; covered by `pnpm run test:bun` and the cross-runtime smoke |
|
|
713
715
|
| **Browser** | Full | Via bundler | Full API support |
|
|
714
716
|
| **Cloudflare Workers** | Full | `npm install taglib-wasm` | Buffer-based (Emscripten); no filesystem. See [Workers guide](docs/advanced/cloudflare-workers.md) |
|
|
715
717
|
| **Electron** | Node.js | `npm install taglib-wasm` | Main process; renderer via IPC |
|
|
@@ -735,7 +737,7 @@ This project uses dual licensing:
|
|
|
735
737
|
|
|
736
738
|
- **TypeScript/JavaScript code** – MIT License (see [LICENSE](LICENSE))
|
|
737
739
|
- **WebAssembly binaries (taglib-web.wasm, taglib-wasi.wasm)** – LGPL-2.1-or-later
|
|
738
|
-
(inherited from TagLib)
|
|
740
|
+
(inherited from TagLib; the compliance and relinking notes ship in [NOTICE](NOTICE))
|
|
739
741
|
|
|
740
742
|
The TagLib library is dual-licensed under LGPL/MPL. When compiled to
|
|
741
743
|
WebAssembly, the resulting binary must comply with LGPL requirements. This
|
|
@@ -745,10 +747,12 @@ means:
|
|
|
745
747
|
- If you modify the TagLib C++ code, you must share those changes
|
|
746
748
|
- You must provide a way for users to relink with a modified TagLib
|
|
747
749
|
|
|
748
|
-
For details, see [
|
|
749
|
-
—
|
|
750
|
-
|
|
751
|
-
|
|
750
|
+
For details, see [NOTICE](NOTICE) and the LGPL text it ships with
|
|
751
|
+
([legal/COPYING.LGPL](legal/COPYING.LGPL)) — both travel with the published
|
|
752
|
+
package — and
|
|
753
|
+
[TagLib's COPYING.LGPL](https://github.com/taglib/taglib/blob/master/COPYING.LGPL);
|
|
754
|
+
this repository vendors TagLib as a git submodule at `lib/taglib`, so that path
|
|
755
|
+
belongs to the submodule rather than to this tree.
|
|
752
756
|
|
|
753
757
|
## Acknowledgments
|
|
754
758
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/assertClassBrand.js
|
|
2
2
|
function _assertClassBrand(e, t, n) {
|
|
3
3
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
4
4
|
throw new TypeError("Private element is not present on this object");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/checkPrivateRedeclaration.js
|
|
2
2
|
function _checkPrivateRedeclaration(e, t) {
|
|
3
3
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _assertClassBrand from "./assertClassBrand.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldGet2.js
|
|
3
3
|
function _classPrivateFieldGet2(s, a) {
|
|
4
4
|
return s.get(_assertClassBrand(s, a));
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _checkPrivateRedeclaration from "./checkPrivateRedeclaration.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
3
3
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
4
4
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _assertClassBrand from "./assertClassBrand.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/classPrivateFieldSet2.js
|
|
3
3
|
function _classPrivateFieldSet2(s, a, r) {
|
|
4
4
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import toPropertyKey from "./toPropertyKey.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
3
3
|
function _defineProperty(e, r, t) {
|
|
4
4
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5
5
|
value: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _typeof from "./typeof.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
3
3
|
function toPrimitive(t, r) {
|
|
4
4
|
if ("object" != _typeof(t) || !t) return t;
|
|
5
5
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _typeof from "./typeof.js";
|
|
2
2
|
import toPrimitive from "./toPrimitive.js";
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
4
4
|
function toPropertyKey(t) {
|
|
5
5
|
var i = toPrimitive(t, "string");
|
|
6
6
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|