uicore-ts 1.0.15 → 1.0.16
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.
|
@@ -22,9 +22,10 @@ __export(ClientCheckers_exports, {
|
|
|
22
22
|
IS_SAFARI: () => IS_SAFARI
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(ClientCheckers_exports);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const
|
|
25
|
+
const browserEnv = require("browser-env");
|
|
26
|
+
browserEnv(["navigator"]);
|
|
27
|
+
const IS_FIREFOX = navigator.userAgent.toLowerCase().indexOf("firefox") > -1;
|
|
28
|
+
const IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
28
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
30
|
0 && (module.exports = {
|
|
30
31
|
IS_FIREFOX,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../scripts/ClientCheckers.ts"],
|
|
4
|
-
"sourcesContent": ["\nexport const IS_FIREFOX =
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["const browserEnv = require(\"browser-env\")\n\nbrowserEnv([\"navigator\"])\nexport const IS_FIREFOX = navigator.userAgent.toLowerCase().indexOf(\"firefox\") > -1\nexport const IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,aAAa,QAAQ,aAAa;AAExC,WAAW,CAAC,WAAW,CAAC;AACjB,MAAM,aAAa,UAAU,UAAU,YAAY,EAAE,QAAQ,SAAS,IAAI;AAC1E,MAAM,YAAY,iCAAiC,KAAK,UAAU,SAAS;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uicore-ts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "UICore is a library to build native-like user interfaces using pure Typescript. No HTML is needed at all. Components are described as TS classes and all user interactions are handled explicitly. This library is strongly inspired by the UIKit framework that is used in IOS. In addition, UICore has tools to handle URL based routing, array sorting and filtering and adds a number of other utilities for convenience.",
|
|
5
5
|
"main": "compiledScripts/index.js",
|
|
6
6
|
"types": "compiledScripts/index.d.ts",
|
|
@@ -42,5 +42,8 @@
|
|
|
42
42
|
"rollup-plugin-typescript2": "^0.32.1",
|
|
43
43
|
"rollup-plugin-web-worker-loader": "^1.6.1",
|
|
44
44
|
"typescript": "^4.7.4"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"browser-env": "^3.3.0"
|
|
45
48
|
}
|
|
46
49
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const browserEnv = require("browser-env")
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
export const
|
|
3
|
+
browserEnv(["navigator"])
|
|
4
|
+
export const IS_FIREFOX = navigator.userAgent.toLowerCase().indexOf("firefox") > -1
|
|
5
|
+
export const IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
/* Basic Options */
|
|
4
|
-
"target": "es6",
|
|
5
|
-
/* Specify
|
|
6
|
-
"module": "ES2020",
|
|
7
|
-
/* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
4
|
+
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
|
|
5
|
+
"module": "ES2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
8
6
|
"lib": [
|
|
9
7
|
"ES2016",
|
|
10
8
|
"dom"
|
|
@@ -22,7 +20,8 @@
|
|
|
22
20
|
/* Redirect output structure to the directory. */
|
|
23
21
|
"rootDir": "./scripts/",
|
|
24
22
|
/* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
25
|
-
"removeComments": false,
|
|
23
|
+
"removeComments": false,
|
|
24
|
+
/* Do not emit comments to output. */
|
|
26
25
|
// "noEmit": true, /* Do not emit outputs. */
|
|
27
26
|
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
28
27
|
"downlevelIteration": true,
|
|
@@ -47,14 +46,16 @@
|
|
|
47
46
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
48
47
|
|
|
49
48
|
/* Module Resolution Options */
|
|
50
|
-
|
|
49
|
+
"moduleResolution": "node",
|
|
50
|
+
/* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
51
51
|
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
52
52
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
53
53
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
54
54
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
55
55
|
//"types": ["socket.io"], /* Type declaration files to be included in compilation. */
|
|
56
56
|
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
57
|
-
"esModuleInterop": true
|
|
57
|
+
"esModuleInterop": true
|
|
58
|
+
/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
58
59
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
59
60
|
|
|
60
61
|
/* Source Map Options */
|