puvox-library 1.0.60 → 1.0.62
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/library_standard.js +2 -1
- package/package.json +2 -1
- package/tsconfig.json +3 -2
package/library_standard.js
CHANGED
@@ -3456,7 +3456,8 @@ const puvox_library =
|
|
3456
3456
|
isElectron: typeof process !== 'undefined' && typeof process.versions !== 'undefined' && typeof process.versions.electron !== 'undefined',
|
3457
3457
|
isWebWorker: typeof WorkerGlobalScope !== 'undefined' && (self instanceof WorkerGlobalScope),
|
3458
3458
|
isWindows: typeof process !== 'undefined' && process.platform === "win32",
|
3459
|
-
isNode
|
3459
|
+
// isNode when it's not browser, neither webworker
|
3460
|
+
isNode: typeof window === 'undefined' && !(typeof WorkerGlobalScope !== 'undefined' && (self instanceof WorkerGlobalScope)),
|
3460
3461
|
defaultFetch: fetch,
|
3461
3462
|
//string
|
3462
3463
|
uuid (a) { return a ? (a ^ Math.random () * 16 >> a / 4).toString (16) : ([1e7]+-1e3+-4e3+-8e3+-1e11).replace (/[018]/g, uuid);},
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
"include": ["library_standard.js"],
|
3
3
|
"exclude": ["exclude/*"],
|
4
4
|
"compilerOptions": {
|
5
|
+
"moduleResolution": "node",
|
5
6
|
/* Visit https://aka.ms/tsconfig to read more about this file */
|
6
7
|
|
7
8
|
/* Projects */
|
@@ -13,7 +14,7 @@
|
|
13
14
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
14
15
|
|
15
16
|
/* Language and Environment */
|
16
|
-
"target": "
|
17
|
+
"target": "es6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
17
18
|
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
18
19
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
19
20
|
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
|
@@ -27,7 +28,7 @@
|
|
27
28
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
28
29
|
|
29
30
|
/* Modules */
|
30
|
-
"module": "
|
31
|
+
// "module": "es6", /* Specify what module code is generated. */
|
31
32
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
32
33
|
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
33
34
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|