@oliversalzburg/js-utils 0.0.5 → 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/package.json +5 -8
- package/output/vector.d.ts +0 -10
- package/output/vector.js +0 -19
- package/output/vector.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}/core.d.ts +0 -0
- /package/{output → lib}/core.js +0 -0
- /package/{output → lib}/core.js.map +0 -0
- /package/{output → lib}/error-serializer.d.ts +0 -0
- /package/{output → lib}/error-serializer.js +0 -0
- /package/{output → lib}/error-serializer.js.map +0 -0
- /package/{output → lib}/errors/AbstractError.d.ts +0 -0
- /package/{output → lib}/errors/AbstractError.js +0 -0
- /package/{output → lib}/errors/AbstractError.js.map +0 -0
- /package/{output → lib}/errors/InternalError.d.ts +0 -0
- /package/{output → lib}/errors/InternalError.js +0 -0
- /package/{output → lib}/errors/InternalError.js.map +0 -0
- /package/{output → lib}/errors/InvalidArgumentError.d.ts +0 -0
- /package/{output → lib}/errors/InvalidArgumentError.js +0 -0
- /package/{output → lib}/errors/InvalidArgumentError.js.map +0 -0
- /package/{output → lib}/errors/InvalidOperationError.d.ts +0 -0
- /package/{output → lib}/errors/InvalidOperationError.js +0 -0
- /package/{output → lib}/errors/InvalidOperationError.js.map +0 -0
- /package/{output → lib}/errors/NotImplementedError.d.ts +0 -0
- /package/{output → lib}/errors/NotImplementedError.js +0 -0
- /package/{output → lib}/errors/NotImplementedError.js.map +0 -0
- /package/{output → lib}/errors/PermissionViolationError.d.ts +0 -0
- /package/{output → lib}/errors/PermissionViolationError.js +0 -0
- /package/{output → lib}/errors/PermissionViolationError.js.map +0 -0
- /package/{output → lib}/errors/ResourceConflictError.d.ts +0 -0
- /package/{output → lib}/errors/ResourceConflictError.js +0 -0
- /package/{output → lib}/errors/ResourceConflictError.js.map +0 -0
- /package/{output → lib}/errors/UnknownError.d.ts +0 -0
- /package/{output → lib}/errors/UnknownError.js +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}/graphics/canvas.d.ts +0 -0
- /package/{output → lib}/graphics/canvas.js +0 -0
- /package/{output → lib}/graphics/canvas.js.map +0 -0
- /package/{output → lib}/graphics/core.d.ts +0 -0
- /package/{output → lib}/graphics/core.js +0 -0
- /package/{output → lib}/graphics/core.js.map +0 -0
- /package/{output → lib}/graphics/index.d.ts +0 -0
- /package/{output → lib}/graphics/index.js +0 -0
- /package/{output → lib}/graphics/index.js.map +0 -0
- /package/{output → lib}/graphics/render-loop.d.ts +0 -0
- /package/{output → lib}/graphics/render-loop.js +0 -0
- /package/{output → lib}/graphics/render-loop.js.map +0 -0
- /package/{output → lib}/index.d.ts +0 -0
- /package/{output → lib}/index.js +0 -0
- /package/{output → lib}/index.js.map +0 -0
- /package/{output → lib}/math/core.d.ts +0 -0
- /package/{output → lib}/math/core.js +0 -0
- /package/{output → lib}/math/core.js.map +0 -0
- /package/{output → lib}/math/index.d.ts +0 -0
- /package/{output → lib}/math/index.js +0 -0
- /package/{output → lib}/math/index.js.map +0 -0
- /package/{output → lib}/math/vector.d.ts +0 -0
- /package/{output → lib}/math/vector.js +0 -0
- /package/{output → lib}/math/vector.js.map +0 -0
- /package/{output → lib}/nil.d.ts +0 -0
- /package/{output → lib}/nil.js +0 -0
- /package/{output → lib}/nil.js.map +0 -0
- /package/{output → lib}/random.d.ts +0 -0
- /package/{output → lib}/random.js +0 -0
- /package/{output → lib}/random.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/{output → lib}/string-formatter.test.d.ts +0 -0
- /package/{output → lib}/string-formatter.test.js +0 -0
- /package/{output → lib}/string-formatter.test.js.map +0 -0
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
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": {
|
|
@@ -27,11 +24,11 @@
|
|
|
27
24
|
"npm:publish:minor": "npm version minor && npm publish",
|
|
28
25
|
"npm:publish:patch": "npm version patch && npm publish",
|
|
29
26
|
"prepack": "yarn run build",
|
|
30
|
-
"test": "node --enable-source-maps $(yarn bin mocha) ./
|
|
27
|
+
"test": "node --enable-source-maps $(yarn bin mocha) ./lib/*.test.js",
|
|
31
28
|
"test:coverage": "c8 --reporter html-spa --reporter text node --enable-source-maps $(yarn bin mocha)",
|
|
32
|
-
"test:inspect": "node $(yarn bin mocha) --inspect ./
|
|
29
|
+
"test:inspect": "node $(yarn bin mocha) --inspect ./lib/*.test.js"
|
|
33
30
|
},
|
|
34
|
-
"types": "./
|
|
31
|
+
"types": "./lib/index.d.ts",
|
|
35
32
|
"devDependencies": {
|
|
36
33
|
"@types/chai": "4.3.9",
|
|
37
34
|
"@types/chai-as-promised": "7.1.7",
|
package/output/vector.d.ts
DELETED
package/output/vector.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export class Vector2 {
|
|
2
|
-
x;
|
|
3
|
-
y;
|
|
4
|
-
constructor(x, y) {
|
|
5
|
-
this.x = x;
|
|
6
|
-
this.y = y;
|
|
7
|
-
}
|
|
8
|
-
dot2(x, y) {
|
|
9
|
-
return this.x * x + this.y * y;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export class Vector3 extends Vector2 {
|
|
13
|
-
z;
|
|
14
|
-
constructor(x, y, z) {
|
|
15
|
-
super(x, y);
|
|
16
|
-
this.z = z;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=vector.js.map
|
package/output/vector.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vector.js","sourceRoot":"","sources":["../source/vector.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,OAAO;IAClB,CAAC,CAAS;IACV,CAAC,CAAS;IAEV,YAAY,CAAS,EAAE,CAAS;QAC9B,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAED,IAAI,CAAC,CAAS,EAAE,CAAS;QACvB,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;CACF;AAED,MAAM,OAAO,OAAQ,SAAQ,OAAO;IAClC,CAAC,CAAS;IAEV,YAAY,CAAS,EAAE,CAAS,EAAE,CAAS;QACzC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACZ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF"}
|
|
File without changes
|
/package/{output → lib}/array.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{output → lib}/core.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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{output → lib}/index.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
|
/package/{output → lib}/nil.d.ts
RENAMED
|
File without changes
|
/package/{output → lib}/nil.js
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|