@famibee/skynovel 1.23.2 → 1.24.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # [1.24.0](https://github.com/famibee/SKYNovel/compare/v1.23.2...v1.24.0) (2021-12-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * isNaN()演算子サポート ([33883dd](https://github.com/famibee/SKYNovel/commit/33883dd5241a0a2548649a2a1d13a1b464f241fd))
7
+
8
+ - feat: isNaN()演算子サポート
9
+ - > https://www.ikkitang1211.site/entry/defer-null-undefined
10
+ - > JavaScriptの仕様として、 toNumber(null) は 0 / toNumber(undefined) は NaN とするという取り決めがある
11
+ - NaN が判定できると数値 undefined 判定の取りこぼししなくなる
12
+
13
+
1
14
  ## [1.23.2](https://github.com/famibee/SKYNovel/compare/v1.23.1...v1.23.2) (2021-12-13)
2
15
 
3
16
 
package/app.js CHANGED
@@ -72034,6 +72034,7 @@ class PropParser {
72034
72034
  'ceil': a => Math.ceil(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
72035
72035
  'floor': a => Math.floor(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
72036
72036
  'round': a => Math.round(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
72037
+ 'isNaN': a => isNaN(Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift()))),
72037
72038
  '<<': a => Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())) <<
72038
72039
  Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())),
72039
72040
  '>>': a => Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())) >>
@@ -1 +1 @@
1
- {"version":3,"file":"PropParser.d.ts","sourceRoot":"","sources":["../../src/sn/PropParser.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKtD,qBAAa,UAAW,YAAW,WAAW;;IAGjC,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,SAAS,EAAE,EAAE,SAAO;IAiItD,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG;IAmKrB,eAAe,QAAS,MAAM,YAEvB;IAOP,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,GAAG,SAAS;CAqCzE"}
1
+ {"version":3,"file":"PropParser.d.ts","sourceRoot":"","sources":["../../src/sn/PropParser.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKtD,qBAAa,UAAW,YAAW,WAAW;;IAGjC,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,SAAS,EAAE,EAAE,SAAO;IAiItD,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG;IAoKrB,eAAe,QAAS,MAAM,YAEvB;IAOP,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,GAAG,SAAS;CAqCzE"}
@@ -52,7 +52,7 @@ export declare class SysBase implements ISysBase {
52
52
  protected readonly window: ITag;
53
53
  setTitleInfo(txt: string): void;
54
54
  decStr(ext: string, d: string): string;
55
- dec(ext: string, d: ArrayBuffer): Promise<string | HTMLImageElement | HTMLVideoElement | ArrayBuffer>;
55
+ dec(ext: string, d: ArrayBuffer): Promise<string | ArrayBuffer | HTMLImageElement | HTMLVideoElement>;
56
56
  protected enc: (d: string) => string;
57
57
  protected stk: () => string;
58
58
  hash: (_data: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famibee/skynovel",
3
- "version": "1.23.2",
3
+ "version": "1.24.0",
4
4
  "description": "webgl novelgame framework",
5
5
  "main": "core/web.js",
6
6
  "types": "core/lib/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "@types/electron-json-storage": "^4.5.0",
30
30
  "@types/fs-extra": "^9.0.13",
31
31
  "@types/mocha": "^9.0.0",
32
- "@types/node": "^16.11.12",
32
+ "@types/node": "^17.0.0",
33
33
  "@types/parsimmon": "^1.10.6",
34
34
  "@types/platform": "^1.3.4",
35
35
  "@types/power-assert": "^1.5.8",
@@ -43,7 +43,7 @@
43
43
  "semantic-release": "^18.0.1",
44
44
  "ts-loader": "^9.2.6",
45
45
  "ts-node": "^10.4.0",
46
- "typescript": "^4.5.3",
46
+ "typescript": "^4.5.4",
47
47
  "webpack": "^5.65.0",
48
48
  "webpack-cli": "^4.9.1",
49
49
  "webpack-dev-server": "^4.6.0"
package/web.js CHANGED
@@ -73382,6 +73382,7 @@ class PropParser {
73382
73382
  'ceil': a => Math.ceil(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
73383
73383
  'floor': a => Math.floor(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
73384
73384
  'round': a => Math.round(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_fncSub_ChkNum).call(this, a.shift())),
73385
+ 'isNaN': a => isNaN(Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift()))),
73385
73386
  '<<': a => Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())) <<
73386
73387
  Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())),
73387
73388
  '>>': a => Number(__classPrivateFieldGet(this, _PropParser_instances, "m", _PropParser_calc).call(this, a.shift())) >>