@oliversalzburg/js-utils 0.0.58-dev.0 → 0.0.58-dev.10
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/async.d.ts +1 -1
- package/data/array.d.ts +2 -1
- package/data/array.js +1 -0
- package/data/array.js.map +1 -1
- package/device/shake.d.ts +0 -2
- package/dom/core.d.ts +0 -1
- package/error/console.d.ts +0 -2
- package/error/index.d.ts +1 -1
- package/error/index.js +1 -1
- package/error/index.js.map +1 -1
- package/event.d.ts +0 -1
- package/graphics/canvas-sandbox-mp.d.ts +0 -3
- package/graphics/canvas-sandbox.d.ts +0 -1
- package/graphics/canvas.d.ts +0 -1
- package/graphics/canvas2d-headless.d.ts +0 -1
- package/graphics/canvas2d.d.ts +0 -1
- package/graphics/canvas3d.d.ts +0 -1
- package/graphics/palette-sampler.d.ts +0 -1
- package/graphics/shader.d.ts +0 -1
- package/package.json +10 -10
package/async.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { AnyAsyncFunction, AnyFunctionReturning, ConstructorOf } from "./core.js
|
|
|
10
10
|
* @returns A function returning nothing.
|
|
11
11
|
* @group Async
|
|
12
12
|
*/
|
|
13
|
-
export declare const prepareAsyncContext: <TArguments extends unknown
|
|
13
|
+
export declare const prepareAsyncContext: <TArguments extends Array<unknown>>(context: AnyAsyncFunction) => (...args: TArguments) => void;
|
|
14
14
|
/**
|
|
15
15
|
* Executes an asynchronous function and resolves with an alternative result
|
|
16
16
|
* in case the function failed.
|
package/data/array.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConstructorOf } from "../core.js";
|
|
2
2
|
/**
|
|
3
3
|
* Places the items in the array in random order.
|
|
4
|
+
* The array is shuffled in-place, no copy is created. The returned array is exactly the passed array.
|
|
4
5
|
* @param array - The array to shuffle.
|
|
5
6
|
* @typeParam TElements - The type of the elements in the array.
|
|
6
7
|
* @returns The passed array in random order.
|
|
@@ -36,4 +37,4 @@ export declare const difference: <TElements>(a: Array<TElements>, b: Array<TElem
|
|
|
36
37
|
* @returns A new array with the filtered items.
|
|
37
38
|
* @group Array
|
|
38
39
|
*/
|
|
39
|
-
export declare const filterType: <TElements>(array: Array<unknown>, InstanceType: ConstructorOf<TElements>) => TElements
|
|
40
|
+
export declare const filterType: <TElements>(array: Array<unknown>, InstanceType: ConstructorOf<TElements>) => Array<TElements>;
|
package/data/array.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { is } from "../nil.js";
|
|
2
2
|
/**
|
|
3
3
|
* Places the items in the array in random order.
|
|
4
|
+
* The array is shuffled in-place, no copy is created. The returned array is exactly the passed array.
|
|
4
5
|
* @param array - The array to shuffle.
|
|
5
6
|
* @typeParam TElements - The type of the elements in the array.
|
|
6
7
|
* @returns The passed array in random order.
|
package/data/array.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","sourceRoot":"","sources":["../../source/data/array.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAE/B
|
|
1
|
+
{"version":3,"file":"array.js","sourceRoot":"","sources":["../../source/data/array.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAE/B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAY,KAAuB,EAAE,EAAE;IACjE,KAAK,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;QACtD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;QAC5D,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;QAClC,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAC5B,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAY,CAAmB,EAAE,CAAmB,EAAE,EAAE;IAC/E,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAY,CAAmB,EAAE,CAAmB,EAAE,EAAE;IAChF,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,KAAqB,EACrB,YAAsC,EACtC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC,CAAqB,CAAC"}
|
package/device/shake.d.ts
CHANGED
package/dom/core.d.ts
CHANGED
package/error/console.d.ts
CHANGED
package/error/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AbstractError.js";
|
|
2
|
+
export * from "./console.js";
|
|
2
3
|
export * from "./InternalError.js";
|
|
3
4
|
export * from "./InvalidArgumentError.js";
|
|
4
5
|
export * from "./InvalidOperationError.js";
|
|
@@ -6,4 +7,3 @@ export * from "./NotImplementedError.js";
|
|
|
6
7
|
export * from "./PermissionViolationError.js";
|
|
7
8
|
export * from "./ResourceConflictError.js";
|
|
8
9
|
export * from "./UnknownError.js";
|
|
9
|
-
export * from "./console.js";
|
package/error/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AbstractError.js";
|
|
2
|
+
export * from "./console.js";
|
|
2
3
|
export * from "./InternalError.js";
|
|
3
4
|
export * from "./InvalidArgumentError.js";
|
|
4
5
|
export * from "./InvalidOperationError.js";
|
|
@@ -6,5 +7,4 @@ export * from "./NotImplementedError.js";
|
|
|
6
7
|
export * from "./PermissionViolationError.js";
|
|
7
8
|
export * from "./ResourceConflictError.js";
|
|
8
9
|
export * from "./UnknownError.js";
|
|
9
|
-
export * from "./console.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/error/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
|
package/event.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="@types/web" />
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
4
1
|
import { ConstructorOf } from "../core.js";
|
|
5
2
|
import { Random } from "../random.js";
|
|
6
3
|
import { CanvasSandboxApplication, CanvasSandboxExpectedOptions } from "./canvas-sandbox.js";
|
package/graphics/canvas.d.ts
CHANGED
package/graphics/canvas2d.d.ts
CHANGED
package/graphics/canvas3d.d.ts
CHANGED
package/graphics/shader.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@oliversalzburg/js-utils",
|
|
4
|
-
"version": "0.0.58-dev.
|
|
4
|
+
"version": "0.0.58-dev.10",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Oliver Salzburg <oliver.salzburg@gmail.com>",
|
|
7
7
|
"repository": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"types": "./index.d.ts",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@eslint/js": "9.
|
|
42
|
-
"@oliversalzburg/eslint-config": "0.0.
|
|
41
|
+
"@eslint/js": "9.6.0",
|
|
42
|
+
"@oliversalzburg/eslint-config": "0.0.15",
|
|
43
43
|
"@types/chai": "4.3.16",
|
|
44
44
|
"@types/eslint": "8.56.10",
|
|
45
45
|
"@types/mocha": "10.0.7",
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
"@types/web": "0.0.150",
|
|
48
48
|
"c8": "10.1.2",
|
|
49
49
|
"chai": "5.1.1",
|
|
50
|
-
"eslint": "9.
|
|
50
|
+
"eslint": "9.6.0",
|
|
51
51
|
"eslint-config-prettier": "9.1.0",
|
|
52
52
|
"eslint-plugin-jsdoc": "48.5.0",
|
|
53
53
|
"eslint-plugin-tsdoc": "0.3.0",
|
|
54
|
-
"globals": "15.
|
|
54
|
+
"globals": "15.7.0",
|
|
55
55
|
"lint-staged": "15.2.7",
|
|
56
|
-
"mocha": "10.5.
|
|
56
|
+
"mocha": "10.5.2",
|
|
57
57
|
"prettier": "3.3.2",
|
|
58
58
|
"prettier-package-json": "2.8.0",
|
|
59
59
|
"prettier-plugin-organize-imports": "3.2.4",
|
|
60
|
-
"typedoc": "0.26.
|
|
61
|
-
"typedoc-plugin-mdn-links": "3.2.
|
|
62
|
-
"typescript": "5.
|
|
63
|
-
"typescript-eslint": "8.0.0-alpha.
|
|
60
|
+
"typedoc": "0.26.3",
|
|
61
|
+
"typedoc-plugin-mdn-links": "3.2.2",
|
|
62
|
+
"typescript": "5.5.2",
|
|
63
|
+
"typescript-eslint": "8.0.0-alpha.37"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=18"
|