@brillout/json-serializer 0.5.2 → 0.5.3
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/index.mjs +7 -0
- package/package.json +2 -1
package/index.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file is `.mjs` to workaround a Vite bug:
|
|
2
|
+
// - Error originating from Vite:
|
|
3
|
+
// ```
|
|
4
|
+
// @brillout/json-s doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
|
|
5
|
+
// ```
|
|
6
|
+
// - Reproduction: https://github.com/brillout/sveltekit-telefunc-repro
|
|
7
|
+
throw new Error("Module `@brillout/json-serializer` doesn't exist anymore: load `@brillout/json-serializer/parse` and `@brillout/json-serializer/stringify` instead.")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brillout/json-serializer",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Same as JSON but with added support for `Date`, `undefined`, `Map`, `Set`, and more.",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"files": [
|
|
42
42
|
"dist/",
|
|
43
43
|
"*.d.ts",
|
|
44
|
+
"*.mjs",
|
|
44
45
|
"*.js"
|
|
45
46
|
],
|
|
46
47
|
"repository": "github:brillout/json-serializer",
|