@naturalcycles/js-lib 15.28.0 → 15.29.0
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/dist/browser/topbar.js
CHANGED
|
@@ -36,7 +36,7 @@ const repaint = () => {
|
|
|
36
36
|
ctx.shadowColor = options.shadowColor;
|
|
37
37
|
const lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);
|
|
38
38
|
for (const stop in options.barColors) {
|
|
39
|
-
// @ts-
|
|
39
|
+
// @ts-expect-error
|
|
40
40
|
lineGradient.addColorStop(stop, options.barColors[stop]);
|
|
41
41
|
}
|
|
42
42
|
ctx.lineWidth = options.barThickness;
|
|
@@ -61,7 +61,7 @@ export const topbar = {
|
|
|
61
61
|
config(opts) {
|
|
62
62
|
for (const key in opts) {
|
|
63
63
|
if (options.hasOwnProperty(key)) {
|
|
64
|
-
// @ts-
|
|
64
|
+
// @ts-expect-error
|
|
65
65
|
options[key] = opts[key];
|
|
66
66
|
}
|
|
67
67
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/js-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.29.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2",
|
|
7
7
|
"zod": "^4"
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
"@types/semver": "^7",
|
|
13
13
|
"crypto-js": "^4",
|
|
14
14
|
"dayjs": "^1",
|
|
15
|
-
"@naturalcycles/dev-lib": "
|
|
15
|
+
"@naturalcycles/dev-lib": "19.33.0"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": "./dist/index.js",
|
|
19
|
-
"./cfg/frontend/tsconfig.json": "./cfg/frontend/tsconfig.json",
|
|
20
19
|
"./array": "./dist/array/index.js",
|
|
21
20
|
"./array/*.js": "./dist/array/*.js",
|
|
22
21
|
"./browser": "./dist/browser/index.js",
|
package/src/browser/topbar.ts
CHANGED
|
@@ -57,7 +57,7 @@ const repaint = () => {
|
|
|
57
57
|
|
|
58
58
|
const lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0)
|
|
59
59
|
for (const stop in options.barColors) {
|
|
60
|
-
// @ts-
|
|
60
|
+
// @ts-expect-error
|
|
61
61
|
lineGradient.addColorStop(stop, options.barColors[stop])
|
|
62
62
|
}
|
|
63
63
|
ctx.lineWidth = options.barThickness
|
|
@@ -83,7 +83,7 @@ export const topbar = {
|
|
|
83
83
|
config(opts: TopBarOptions) {
|
|
84
84
|
for (const key in opts) {
|
|
85
85
|
if (options.hasOwnProperty(key)) {
|
|
86
|
-
// @ts-
|
|
86
|
+
// @ts-expect-error
|
|
87
87
|
options[key] = opts[key]
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// @naturalcycles/js-lib/cfg/frontend/tsconfig.json
|
|
3
|
-
//
|
|
4
|
-
// Shared tsconfig for Frontend applications
|
|
5
|
-
//
|
|
6
|
-
{
|
|
7
|
-
"compilerOptions": {
|
|
8
|
-
// Target/module
|
|
9
|
-
"target": "es2023", // es2023+ browsers, adjust to your requirements!
|
|
10
|
-
"lib": ["esnext", "dom", "dom.iterable"],
|
|
11
|
-
"module": "esnext",
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"moduleDetection": "force",
|
|
14
|
-
// specifying these explicitly for better IDE compatibility (but they're on by default with module=nodenext)
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"allowSyntheticDefaultImports": true,
|
|
17
|
-
// Faster compilation in general
|
|
18
|
-
// Support for external compilers (e.g esbuild)
|
|
19
|
-
// Speedup in Jest by using "isolatedModules" in 'ts-jest' config
|
|
20
|
-
"isolatedModules": true,
|
|
21
|
-
|
|
22
|
-
// Emit
|
|
23
|
-
"sourceMap": false,
|
|
24
|
-
"declaration": false,
|
|
25
|
-
// Otherwise since es2022 it defaults to true
|
|
26
|
-
// and starts to produce different/unexpected behavior
|
|
27
|
-
// https://angular.schule/blog/2022-11-use-define-for-class-fields
|
|
28
|
-
"useDefineForClassFields": true,
|
|
29
|
-
"importHelpers": true,
|
|
30
|
-
|
|
31
|
-
// Strictness
|
|
32
|
-
"strict": true,
|
|
33
|
-
"noFallthroughCasesInSwitch": true,
|
|
34
|
-
"forceConsistentCasingInFileNames": true,
|
|
35
|
-
"resolveJsonModule": true,
|
|
36
|
-
"suppressImplicitAnyIndexErrors": false,
|
|
37
|
-
"noUncheckedIndexedAccess": true,
|
|
38
|
-
"noUncheckedSideEffectImports": true,
|
|
39
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
40
|
-
"noImplicitOverride": true,
|
|
41
|
-
|
|
42
|
-
// Enabled should be faster, but will catch less errors
|
|
43
|
-
// "skipLibCheck": true,
|
|
44
|
-
|
|
45
|
-
// Disabled because of https://github.com/Microsoft/TypeScript/issues/29172
|
|
46
|
-
// Need to be specified in the project tsconfig
|
|
47
|
-
// "outDir": "dist",
|
|
48
|
-
// "rootDir": "./src",
|
|
49
|
-
// "baseUrl": "./",
|
|
50
|
-
// "paths": {
|
|
51
|
-
// "@src/*": ["src/*"]
|
|
52
|
-
// },
|
|
53
|
-
// "typeRoots": [
|
|
54
|
-
// "node_modules/@types",
|
|
55
|
-
// "src/@types"
|
|
56
|
-
// ],
|
|
57
|
-
|
|
58
|
-
// Other
|
|
59
|
-
"incremental": true,
|
|
60
|
-
"tsBuildInfoFile": "${configDir}/node_modules/.cache/src.tsbuildinfo",
|
|
61
|
-
"jsx": "preserve",
|
|
62
|
-
"pretty": true,
|
|
63
|
-
"newLine": "lf",
|
|
64
|
-
"experimentalDecorators": true
|
|
65
|
-
// "emitDecoratorMetadata": true // use if needed
|
|
66
|
-
}
|
|
67
|
-
// Need to be specified in the project tsconfig
|
|
68
|
-
// "include": ["src"],
|
|
69
|
-
// "exclude": ["**/__exclude", "**/@linked"]
|
|
70
|
-
}
|