litecanvas 0.102.1 → 0.102.2
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/dist.dev.js +2 -2
- package/package.json +4 -4
- package/src/index.js +1 -1
- package/src/version.js +1 -1
package/dist/dist.dev.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// src/version.js
|
|
22
|
-
var version = "0.102.
|
|
22
|
+
var version = "0.102.2";
|
|
23
23
|
|
|
24
24
|
// src/index.js
|
|
25
25
|
function litecanvas(settings = {}) {
|
|
@@ -942,7 +942,7 @@
|
|
|
942
942
|
*/
|
|
943
943
|
pal(colors, textColor = 3) {
|
|
944
944
|
DEV: assert(
|
|
945
|
-
Array.isArray(colors) && colors.length > 0,
|
|
945
|
+
null == colors || Array.isArray(colors) && colors.length > 0,
|
|
946
946
|
"[litecanvas] pal() 1st param must be a array of color strings"
|
|
947
947
|
);
|
|
948
948
|
DEV: assert(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litecanvas",
|
|
3
|
-
"version": "0.102.
|
|
3
|
+
"version": "0.102.2",
|
|
4
4
|
"description": "Lightweight HTML5 canvas 2D game engine suitable for small projects and creative coding. Inspired by PICO-8 and p5.js/Processing.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Luiz Bills <luizbills@pm.me>",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@happy-dom/global-registrator": "^18.0.1",
|
|
35
35
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
36
|
-
"@swc/core": "^1.15.
|
|
36
|
+
"@swc/core": "^1.15.8",
|
|
37
37
|
"ava": "^6.4.1",
|
|
38
38
|
"esbuild": "^0.25.12",
|
|
39
39
|
"genversion": "^3.2.0",
|
|
40
40
|
"gzip-size": "^7.0.0",
|
|
41
|
-
"prettier": "^3.
|
|
42
|
-
"sinon": "^21.0.
|
|
41
|
+
"prettier": "^3.7.4",
|
|
42
|
+
"sinon": "^21.0.1",
|
|
43
43
|
"size-limit": "^11.2.0",
|
|
44
44
|
"tap-min": "^3.0.0"
|
|
45
45
|
},
|
package/src/index.js
CHANGED
|
@@ -1119,7 +1119,7 @@ export default function litecanvas(settings = {}) {
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
pal(colors, textColor = 3) {
|
|
1121
1121
|
DEV: assert(
|
|
1122
|
-
Array.isArray(colors) && colors.length > 0,
|
|
1122
|
+
null == colors || (Array.isArray(colors) && colors.length > 0),
|
|
1123
1123
|
'[litecanvas] pal() 1st param must be a array of color strings'
|
|
1124
1124
|
)
|
|
1125
1125
|
DEV: assert(
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '0.102.
|
|
2
|
+
export const version = '0.102.2'
|