@oliversalzburg/js-utils 0.0.4 → 0.0.6
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/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/bundle.js +30 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +16 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/coverage/spa.css +298 -0
- package/coverage/string-formatter.ts.html +187 -0
- package/coverage/tmp/coverage-4186-1699218521999-0.json +1 -0
- package/coverage/tmp/coverage-4196-1699218521967-0.json +1 -0
- package/docs/README.md +3 -0
- package/docs/classes/AbstractError.md +271 -0
- package/docs/classes/Canvas.md +177 -0
- package/docs/classes/InternalError.md +301 -0
- package/docs/classes/InvalidArgumentError.md +277 -0
- package/docs/classes/InvalidOperationError.md +277 -0
- package/docs/classes/NotImplementedError.md +276 -0
- package/docs/classes/PermissionViolationError.md +277 -0
- package/docs/classes/Random.md +109 -0
- package/docs/classes/RenderLoop.md +49 -0
- package/docs/classes/ResourceConflictError.md +276 -0
- package/docs/classes/UnexpectedNilError.md +169 -0
- package/docs/classes/UnknownError.md +280 -0
- package/docs/classes/Vector2.md +79 -0
- package/docs/classes/Vector3.md +106 -0
- package/docs/modules.md +1313 -0
- package/lib/core.d.ts +21 -0
- package/lib/core.js +3 -0
- package/{output → lib}/core.js.map +1 -1
- package/{output → lib}/error-serializer.d.ts +1 -1
- package/{output → lib}/error-serializer.js +1 -1
- package/{output → lib}/errors/AbstractError.d.ts +9 -1
- package/{output → lib}/errors/AbstractError.js +10 -2
- package/{output → lib}/errors/AbstractError.js.map +1 -1
- package/{output → lib}/errors/InternalError.d.ts +6 -1
- package/{output → lib}/errors/InternalError.js +6 -1
- package/lib/errors/InternalError.js.map +1 -0
- package/{output → lib}/errors/InvalidArgumentError.d.ts +1 -1
- package/{output → lib}/errors/InvalidArgumentError.js +1 -1
- package/{output → lib}/errors/InvalidOperationError.d.ts +1 -1
- package/{output → lib}/errors/InvalidOperationError.js +1 -1
- package/{output → lib}/errors/NotImplementedError.d.ts +1 -1
- package/{output → lib}/errors/NotImplementedError.js +1 -1
- package/{output → lib}/errors/PermissionViolationError.d.ts +1 -1
- package/{output → lib}/errors/PermissionViolationError.js +1 -1
- package/{output → lib}/errors/ResourceConflictError.d.ts +1 -1
- package/{output → lib}/errors/ResourceConflictError.js +1 -1
- package/{output → lib}/errors/UnknownError.d.ts +2 -2
- package/{output → lib}/errors/UnknownError.js +2 -2
- package/lib/graphics/canvas.d.ts +80 -0
- package/lib/graphics/canvas.js +164 -0
- package/lib/graphics/canvas.js.map +1 -0
- package/lib/graphics/core.d.ts +94 -0
- package/lib/graphics/core.js +479 -0
- package/lib/graphics/core.js.map +1 -0
- package/lib/graphics/index.d.ts +3 -0
- package/lib/graphics/index.js +4 -0
- package/lib/graphics/index.js.map +1 -0
- package/lib/graphics/render-loop.d.ts +20 -0
- package/lib/graphics/render-loop.js +51 -0
- package/lib/graphics/render-loop.js.map +1 -0
- package/{output → lib}/index.d.ts +4 -0
- package/{output → lib}/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/lib/math/core.d.ts +46 -0
- package/lib/math/core.js +72 -0
- package/lib/math/core.js.map +1 -0
- package/lib/math/index.d.ts +2 -0
- package/lib/math/index.js +3 -0
- package/lib/math/index.js.map +1 -0
- package/lib/math/vector.d.ts +33 -0
- package/lib/math/vector.js +42 -0
- package/lib/math/vector.js.map +1 -0
- package/{output → lib}/nil.d.ts +13 -8
- package/{output → lib}/nil.js +16 -11
- package/lib/nil.js.map +1 -0
- package/lib/random.d.ts +56 -0
- package/lib/random.js +184 -0
- package/lib/random.js.map +1 -0
- package/lib/string-formatter.test.d.ts +1 -0
- package/lib/string-formatter.test.js +17 -0
- package/lib/string-formatter.test.js.map +1 -0
- package/mkdocs.yml +52 -0
- package/package.json +25 -13
- package/typedoc.json +8 -0
- package/output/core.d.ts +0 -4
- package/output/core.js +0 -2
- package/output/errors/InternalError.js.map +0 -1
- package/output/index.js.map +0 -1
- package/output/nil.js.map +0 -1
- /package/{output → lib}/array.d.ts +0 -0
- /package/{output → lib}/array.js +0 -0
- /package/{output → lib}/array.js.map +0 -0
- /package/{output → lib}/error-serializer.js.map +0 -0
- /package/{output → lib}/errors/InvalidArgumentError.js.map +0 -0
- /package/{output → lib}/errors/InvalidOperationError.js.map +0 -0
- /package/{output → lib}/errors/NotImplementedError.js.map +0 -0
- /package/{output → lib}/errors/PermissionViolationError.js.map +0 -0
- /package/{output → lib}/errors/ResourceConflictError.js.map +0 -0
- /package/{output → lib}/errors/UnknownError.js.map +0 -0
- /package/{output → lib}/errors/index.d.ts +0 -0
- /package/{output → lib}/errors/index.js +0 -0
- /package/{output → lib}/errors/index.js.map +0 -0
- /package/{output → lib}/sleep.d.ts +0 -0
- /package/{output → lib}/sleep.js +0 -0
- /package/{output → lib}/sleep.js.map +0 -0
- /package/{output → lib}/string-formatter.d.ts +0 -0
- /package/{output → lib}/string-formatter.js +0 -0
- /package/{output → lib}/string-formatter.js.map +0 -0
package/mkdocs.yml
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
copyright: Oliver Salzburg
|
|
2
|
+
dev_addr: 0.0.0.0:8000
|
|
3
|
+
docs_dir: docs
|
|
4
|
+
extra:
|
|
5
|
+
social:
|
|
6
|
+
- icon: fontawesome/brands/github
|
|
7
|
+
link: https://github.com/oliversalzburg/
|
|
8
|
+
markdown_extensions:
|
|
9
|
+
- abbr
|
|
10
|
+
- admonition
|
|
11
|
+
- pymdownx.details
|
|
12
|
+
- pymdownx.highlight:
|
|
13
|
+
anchor_linenums: true
|
|
14
|
+
- pymdownx.inlinehilite
|
|
15
|
+
- pymdownx.snippets
|
|
16
|
+
- pymdownx.superfences:
|
|
17
|
+
- pymdownx.tabbed:
|
|
18
|
+
alternate_style: true
|
|
19
|
+
- pymdownx.tilde
|
|
20
|
+
- toc:
|
|
21
|
+
permalink: true
|
|
22
|
+
plugins:
|
|
23
|
+
- search
|
|
24
|
+
repo_name: oliversalzburg/js-utils
|
|
25
|
+
repo_url: https://github.com/oliversalzburg/js-utils
|
|
26
|
+
site_name: JS Utils
|
|
27
|
+
theme:
|
|
28
|
+
favicon: assets/images/favicon.ico
|
|
29
|
+
features:
|
|
30
|
+
- content.code.copy
|
|
31
|
+
- navigation.instant
|
|
32
|
+
- navigation.sections
|
|
33
|
+
- navigation.tabs
|
|
34
|
+
- navigation.tabs.sticky
|
|
35
|
+
icon:
|
|
36
|
+
repo: fontawesome/brands/github
|
|
37
|
+
name: material
|
|
38
|
+
palette:
|
|
39
|
+
- media: "(prefers-color-scheme: light)"
|
|
40
|
+
scheme: default
|
|
41
|
+
accent: amber
|
|
42
|
+
primary: indigo
|
|
43
|
+
toggle:
|
|
44
|
+
icon: material/toggle-switch-off-outline
|
|
45
|
+
name: Switch to dark mode
|
|
46
|
+
- media: "(prefers-color-scheme: dark)"
|
|
47
|
+
scheme: slate
|
|
48
|
+
accent: indigo
|
|
49
|
+
primary: amber
|
|
50
|
+
toggle:
|
|
51
|
+
icon: material/toggle-switch
|
|
52
|
+
name: Switch to light mode
|
package/package.json
CHANGED
|
@@ -1,45 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@oliversalzburg/js-utils",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Oliver Salzburg <oliver.salzburg@gmail.com>",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"default": "./
|
|
11
|
-
},
|
|
12
|
-
"./*.js": {
|
|
13
|
-
"default": "./output/*.js"
|
|
10
|
+
"default": "./lib/index.js"
|
|
14
11
|
}
|
|
15
12
|
},
|
|
16
13
|
"scripts": {
|
|
17
14
|
"build": "yarn run build:tsc",
|
|
18
15
|
"build:esbuild": "node build.js",
|
|
19
16
|
"build:tsc": "tsc",
|
|
20
|
-
"
|
|
17
|
+
"docs:typedoc": "typedoc --plugin typedoc-plugin-markdown",
|
|
18
|
+
"lint": "yarn run lint:eslint && yarn run lint:prettier && yarn run lint:tsc",
|
|
21
19
|
"lint:eslint": "eslint source ./*js",
|
|
20
|
+
"lint:prettier": "prettier --check source ./*js",
|
|
22
21
|
"lint:tsc": "tsc --noEmit",
|
|
23
22
|
"npm:publish": "npm publish",
|
|
24
23
|
"npm:publish:major": "npm version major && npm publish",
|
|
25
24
|
"npm:publish:minor": "npm version minor && npm publish",
|
|
26
25
|
"npm:publish:patch": "npm version patch && npm publish",
|
|
27
|
-
"prepack": "yarn run build"
|
|
26
|
+
"prepack": "yarn run build",
|
|
27
|
+
"test": "node --enable-source-maps $(yarn bin mocha) ./lib/*.test.js",
|
|
28
|
+
"test:coverage": "c8 --reporter html-spa --reporter text node --enable-source-maps $(yarn bin mocha)",
|
|
29
|
+
"test:inspect": "node $(yarn bin mocha) --inspect ./lib/*.test.js"
|
|
28
30
|
},
|
|
29
|
-
"types": "./
|
|
31
|
+
"types": "./lib/index.d.ts",
|
|
30
32
|
"devDependencies": {
|
|
33
|
+
"@types/chai": "4.3.9",
|
|
34
|
+
"@types/chai-as-promised": "7.1.7",
|
|
31
35
|
"@types/eslint": "8.44.6",
|
|
32
|
-
"@types/
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
36
|
+
"@types/mocha": "10.0.3",
|
|
37
|
+
"@types/node": "20.8.10",
|
|
38
|
+
"@types/web": "0.0.119",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "6.9.1",
|
|
40
|
+
"@typescript-eslint/parser": "6.9.1",
|
|
41
|
+
"c8": "8.0.1",
|
|
42
|
+
"chai": "4.3.10",
|
|
43
|
+
"chai-as-promised": "7.1.1",
|
|
35
44
|
"esbuild": "0.19.5",
|
|
36
|
-
"eslint": "8.
|
|
45
|
+
"eslint": "8.53.0",
|
|
37
46
|
"eslint-plugin-jsdoc": "46.8.2",
|
|
38
47
|
"lint-staged": "15.0.2",
|
|
48
|
+
"mocha": "10.2.0",
|
|
39
49
|
"prettier": "3.0.3",
|
|
40
50
|
"prettier-package-json": "2.8.0",
|
|
41
51
|
"prettier-plugin-organize-imports": "3.2.3",
|
|
52
|
+
"typedoc": "0.25.3",
|
|
53
|
+
"typedoc-plugin-markdown": "3.17.0",
|
|
42
54
|
"typescript": "5.2.2"
|
|
43
55
|
},
|
|
44
|
-
"packageManager": "yarn@4.0.
|
|
56
|
+
"packageManager": "yarn@4.0.1"
|
|
45
57
|
}
|
package/typedoc.json
ADDED
package/output/core.d.ts
DELETED
package/output/core.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InternalError.js","sourceRoot":"","sources":["../../source/errors/InternalError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,aAAa;IAC9C;;;;OAIG;IACH,YAAY,OAAe,EAAE,MAAM,GAAG,GAAG;QACvC,KAAK,CAAC,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAE1C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAE5B,qEAAqE;QACrE,yEAAyE;QACzE,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAY;QAC3B,wEAAwE;QACxE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvD,kEAAkE;QAClE,mEAAmE;QACnE,0BAA0B;QAC1B,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,EAAE,IAAI,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACtE,uBAAuB;QACvB,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC;QAC5B,0CAA0C;QAC1C,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QAElC,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"}
|
package/output/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
|
package/output/nil.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nil.js","sourceRoot":"","sources":["../source/nil.ts"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,MAAM,UAAU,EAAE,CAAI,OAAiB,EAAE,YAA8B;IACrE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,OAAO,YAAY,YAAY,CAAC;AAC5D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,KAAK,CAAI,OAAiB;IACxC,OAAO,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAO,GAAG,sBAAsB;QAC1C,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAI,OAAiB;IAC5C,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;QAClB,MAAM,IAAI,kBAAkB,EAAE,CAAC;KAChC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
File without changes
|
/package/{output → lib}/array.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{output → lib}/sleep.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|