screeps-timeseries 0.0.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/.editorconfig +18 -0
- package/.eslintignore +2 -0
- package/.eslintrc.js +95 -0
- package/.gitattributes +2 -0
- package/.mocharc.json +6 -0
- package/.prettierrc +9 -0
- package/.vscode/launch.json +17 -0
- package/.vscode/settings.json +86 -0
- package/.vscode/tasks.json +15 -0
- package/LICENSE +21 -0
- package/README.md +10 -0
- package/dist/index.js +3908 -0
- package/dist/index.js.map +1 -0
- package/dist/src/TimeSeriesSegmentManager.d.ts +12 -0
- package/dist/src/engine.d.ts +61 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/storage.d.ts +20 -0
- package/dist/src/type.d.ts +93 -0
- package/dist/src/utils/utf15/constant.d.ts +1 -0
- package/dist/src/utils/utf15/index.d.ts +39 -0
- package/dist/test/unit/TimeSeriesData.test.d.ts +1 -0
- package/package.json +66 -0
- package/rollup.config.js +24 -0
- package/src/README.md +64 -0
- package/src/TimeSeriesSegmentManager.ts +61 -0
- package/src/engine.ts +594 -0
- package/src/index.ts +1 -0
- package/src/storage.ts +110 -0
- package/src/type.ts +98 -0
- package/src/utils/utf15/constant.ts +56 -0
- package/src/utils/utf15/index.ts +391 -0
- package/test/mocha.opts +14 -0
- package/test/setup-mocha.js +8 -0
- package/test/unit/TimeSeriesData.test.ts +1 -0
- package/tsconfig.json +24 -0
- package/tsconfig.test.json +10 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# editorconfig.org
|
|
2
|
+
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 4
|
|
8
|
+
charset = utf-8
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
insert_final_newline = true
|
|
11
|
+
|
|
12
|
+
[*.py]
|
|
13
|
+
indent_style = space
|
|
14
|
+
indent_size = 4
|
|
15
|
+
|
|
16
|
+
[*.rb]
|
|
17
|
+
indent_style = space
|
|
18
|
+
indent_size = 4
|
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es6: true,
|
|
5
|
+
node: true
|
|
6
|
+
},
|
|
7
|
+
extends: [
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"plugin:@typescript-eslint/recommended",
|
|
10
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
11
|
+
"plugin:prettier/recommended",
|
|
12
|
+
"prettier/@typescript-eslint",
|
|
13
|
+
"plugin:import/errors",
|
|
14
|
+
"plugin:import/warnings",
|
|
15
|
+
"plugin:import/typescript"
|
|
16
|
+
],
|
|
17
|
+
parser: "@typescript-eslint/parser",
|
|
18
|
+
parserOptions: {
|
|
19
|
+
project: "tsconfig.json",
|
|
20
|
+
sourceType: "module"
|
|
21
|
+
},
|
|
22
|
+
plugins: ["@typescript-eslint", "import"],
|
|
23
|
+
settings: {
|
|
24
|
+
"import/parsers": {
|
|
25
|
+
"@typescript-eslint/parser": [".ts", ".tsx"]
|
|
26
|
+
},
|
|
27
|
+
"import/resolver": {
|
|
28
|
+
typescript: {}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
rules: {
|
|
32
|
+
"@typescript-eslint/array-type": "error",
|
|
33
|
+
"@typescript-eslint/consistent-type-assertions": "error",
|
|
34
|
+
"@typescript-eslint/consistent-type-definitions": "error",
|
|
35
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
36
|
+
"@typescript-eslint/explicit-member-accessibility": [
|
|
37
|
+
"error",
|
|
38
|
+
{
|
|
39
|
+
accessibility: "explicit"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
43
|
+
"@typescript-eslint/no-parameter-properties": "off",
|
|
44
|
+
"@typescript-eslint/no-unused-expressions": "error",
|
|
45
|
+
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
|
|
46
|
+
"@typescript-eslint/prefer-for-of": "error",
|
|
47
|
+
"@typescript-eslint/space-within-parens": ["off", "never"],
|
|
48
|
+
"@typescript-eslint/unified-signatures": "error",
|
|
49
|
+
"arrow-parens": ["off", "as-needed"],
|
|
50
|
+
camelcase: [
|
|
51
|
+
"error",
|
|
52
|
+
{ "properties": "never" }
|
|
53
|
+
],
|
|
54
|
+
complexity: "off",
|
|
55
|
+
"dot-notation": "error",
|
|
56
|
+
"eol-last": "off",
|
|
57
|
+
eqeqeq: ["error", "smart"],
|
|
58
|
+
"guard-for-in": "off",
|
|
59
|
+
"id-blacklist": ["error", "any", "Number", "number", "String", "string", "Boolean", "boolean", "Undefined"],
|
|
60
|
+
"id-match": "error",
|
|
61
|
+
"linebreak-style": "off",
|
|
62
|
+
"max-classes-per-file": ["error", 1],
|
|
63
|
+
"new-parens": "off",
|
|
64
|
+
"newline-per-chained-call": "off",
|
|
65
|
+
"no-bitwise": "error",
|
|
66
|
+
"no-caller": "error",
|
|
67
|
+
"no-cond-assign": "error",
|
|
68
|
+
"no-console": "off",
|
|
69
|
+
"no-eval": "error",
|
|
70
|
+
"no-invalid-this": "off",
|
|
71
|
+
"no-multiple-empty-lines": "off",
|
|
72
|
+
"no-new-wrappers": "error",
|
|
73
|
+
"no-shadow": [
|
|
74
|
+
"error",
|
|
75
|
+
{
|
|
76
|
+
hoist: "all"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"no-unused-vars": "off",
|
|
80
|
+
"@typescript-eslint/no-unused-vars": ["off"],
|
|
81
|
+
"no-throw-literal": "error",
|
|
82
|
+
"no-trailing-spaces": "off",
|
|
83
|
+
"no-undef-init": "error",
|
|
84
|
+
"no-underscore-dangle": "off",
|
|
85
|
+
"no-var": "error",
|
|
86
|
+
"object-shorthand": "error",
|
|
87
|
+
"one-var": ["error", "never"],
|
|
88
|
+
"quote-props": "off",
|
|
89
|
+
radix: "error",
|
|
90
|
+
"sort-imports": "off",
|
|
91
|
+
"spaced-comment": "error",
|
|
92
|
+
"@typescript-eslint/no-namespace":"off",
|
|
93
|
+
"@typescript-eslint/prefer-namespace-keyword":"off"
|
|
94
|
+
}
|
|
95
|
+
};
|
package/.gitattributes
ADDED
package/.mocharc.json
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
// 使用 IntelliSense 了解相关属性。
|
|
3
|
+
// 悬停以查看现有属性的描述。
|
|
4
|
+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"type": "pwa-chrome",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"name": "Launch Chrome",
|
|
11
|
+
"url": "http://localhost:8080",
|
|
12
|
+
"webRoot": "${workspaceFolder}",
|
|
13
|
+
"file": "${workspaceFolder}/test/integration/utils/index.html",
|
|
14
|
+
"port": 5433
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"[javascript]": {
|
|
3
|
+
"editor.formatOnSave": false
|
|
4
|
+
},
|
|
5
|
+
"[json]": {
|
|
6
|
+
"editor.formatOnSave": true
|
|
7
|
+
},
|
|
8
|
+
"[typescript]": {
|
|
9
|
+
"editor.formatOnSave": true
|
|
10
|
+
},
|
|
11
|
+
"editor.codeActionsOnSave": {
|
|
12
|
+
"source.fixAll.eslint": "explicit"
|
|
13
|
+
},
|
|
14
|
+
"editor.formatOnSave": true,
|
|
15
|
+
"editor.renderWhitespace": "boundary",
|
|
16
|
+
"files.encoding": "utf8",
|
|
17
|
+
"files.insertFinalNewline": true,
|
|
18
|
+
"files.trimTrailingWhitespace": true,
|
|
19
|
+
"search.exclude": {
|
|
20
|
+
"_book/**": true,
|
|
21
|
+
".rpt2_cache/**": true,
|
|
22
|
+
"**/.nyc_output": true,
|
|
23
|
+
"**/coverage": true,
|
|
24
|
+
"dist/**": true,
|
|
25
|
+
"docs/**": true,
|
|
26
|
+
"node_modules/**": true,
|
|
27
|
+
"typings/**": true
|
|
28
|
+
},
|
|
29
|
+
"files.exclude": {
|
|
30
|
+
".history/**": true
|
|
31
|
+
},
|
|
32
|
+
"typescript.tsdk": "./node_modules/typescript/lib",
|
|
33
|
+
"cSpell.words": [
|
|
34
|
+
"BODYPART",
|
|
35
|
+
"Buildable",
|
|
36
|
+
"COOLDOWN",
|
|
37
|
+
"Coord",
|
|
38
|
+
"Grafana",
|
|
39
|
+
"Iclass",
|
|
40
|
+
"Ifun",
|
|
41
|
+
"Inte",
|
|
42
|
+
"MAPTOOL",
|
|
43
|
+
"Parens",
|
|
44
|
+
"Prefs",
|
|
45
|
+
"REGEN",
|
|
46
|
+
"Scorpior",
|
|
47
|
+
"Unlicense",
|
|
48
|
+
"Ureium's",
|
|
49
|
+
"authed",
|
|
50
|
+
"bodyparts",
|
|
51
|
+
"bodysetting",
|
|
52
|
+
"buble",
|
|
53
|
+
"crzytrane",
|
|
54
|
+
"dont",
|
|
55
|
+
"dynamicmarket",
|
|
56
|
+
"estree",
|
|
57
|
+
"importee",
|
|
58
|
+
"lcov",
|
|
59
|
+
"mincut",
|
|
60
|
+
"mongodb",
|
|
61
|
+
"mwcarhit",
|
|
62
|
+
"mwcarhlt",
|
|
63
|
+
"nodent",
|
|
64
|
+
"nuker",
|
|
65
|
+
"openttd",
|
|
66
|
+
"pserver",
|
|
67
|
+
"screepers",
|
|
68
|
+
"screepsbot",
|
|
69
|
+
"screepsmod",
|
|
70
|
+
"simplebot",
|
|
71
|
+
"splus",
|
|
72
|
+
"toolbelt",
|
|
73
|
+
"treemap",
|
|
74
|
+
"typeof",
|
|
75
|
+
"zeswarm"
|
|
76
|
+
],
|
|
77
|
+
"mochaExplorer.files": [
|
|
78
|
+
"dist/test-integration.bundle.js",
|
|
79
|
+
"dist/test-unit.bundle.js"
|
|
80
|
+
],
|
|
81
|
+
"mochaExplorer.require": [
|
|
82
|
+
"ts-node/register",
|
|
83
|
+
"test/setup-mocha.js"
|
|
84
|
+
],
|
|
85
|
+
"search.useIgnoreFiles": false,
|
|
86
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ureimu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED