@tolokoban/tgd 2.1.0 → 2.1.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.
@@ -5,7 +5,7 @@ export function tgdTypeArrayForElements(arr) {
5
5
  let max = 0;
6
6
  for (let i = 0; i < arr.length; i++) {
7
7
  const value = arr[i];
8
- if (value < i) {
8
+ if (value < 0) {
9
9
  throw new Error(`[tgdTypeArrayForElements] Index for elements cannot be negative. But arr[${i}] === ${value}!`);
10
10
  }
11
11
  max = Math.max(max, value);
@@ -1,2 +1,2 @@
1
- export declare const version = "2.1.0";
1
+ export declare const version = "2.1.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export const version = "2.1.0";
1
+ export const version = "2.1.1";
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxPQUFPLENBQUEifQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolokoban/tgd",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "ToloGameDev library for WebGL2",
5
5
  "homepage": "https://tolokoban.github.io/tgd2",
6
6
  "main": "./lib/dist/index.js",