affinirum 1.2.0 → 1.2.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.
- package/README.md +1 -1
- package/dst/Affinirum.js +1 -1
- package/dst/Type.d.ts +1 -1
- package/dst/Value.d.ts +1 -1
- package/dst/cjs/Affinirum.js +1 -1
- package/dst/constant/String.d.ts +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -275,7 +275,7 @@ Unknown or variant type is declared as **??**.
|
|
|
275
275
|
- **integer timestamp.Minute(utc: boolean?)** — Minute
|
|
276
276
|
- **integer timestamp.Second(utc: boolean?)** — Second
|
|
277
277
|
- **integer timestamp.Millisecond(utc: boolean?)** — Millisecond
|
|
278
|
-
- **integer timestamp.EpochTime(epoch: timestamp?)** —
|
|
278
|
+
- **integer timestamp.EpochTime(epoch: timestamp?)** — Milliseconds since epoch
|
|
279
279
|
|
|
280
280
|
## Reference
|
|
281
281
|
|
package/dst/Affinirum.js
CHANGED
|
@@ -356,7 +356,7 @@ export class Affinirum {
|
|
|
356
356
|
else if (state.isVariable || state.isValue) {
|
|
357
357
|
const assignable = state.isVariable;
|
|
358
358
|
if (!state.next().isToken) {
|
|
359
|
-
state.throwError(
|
|
359
|
+
state.throwError("missing variable name");
|
|
360
360
|
}
|
|
361
361
|
const token = state.token;
|
|
362
362
|
if (scope.has(token)) {
|
package/dst/Type.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare class Type {
|
|
|
30
30
|
toString(): string;
|
|
31
31
|
static union(...types: Type[]): Type;
|
|
32
32
|
static of(value: Value): Type;
|
|
33
|
-
static isPrimitiveType(value: Value): value is string | number | bigint | boolean |
|
|
33
|
+
static isPrimitiveType(value: Value): value is string | number | bigint | boolean | Date | ArrayBuffer | null | undefined;
|
|
34
34
|
static primitiveType(primitive: Primitive): Type;
|
|
35
35
|
static arrayType(itemTypes?: Type[]): Type;
|
|
36
36
|
static objectType(propTypes?: Record<string, Type>): Type;
|
package/dst/Value.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type Value =
|
|
1
|
+
export type Value = undefined | null | number | boolean | Date | bigint | ArrayBuffer | string | Value[] | {
|
|
2
2
|
[key: string]: Value;
|
|
3
3
|
} | ((...args: any[]) => Value);
|
package/dst/cjs/Affinirum.js
CHANGED
|
@@ -359,7 +359,7 @@ class Affinirum {
|
|
|
359
359
|
else if (state.isVariable || state.isValue) {
|
|
360
360
|
const assignable = state.isVariable;
|
|
361
361
|
if (!state.next().isToken) {
|
|
362
|
-
state.throwError(
|
|
362
|
+
state.throwError("missing variable name");
|
|
363
363
|
}
|
|
364
364
|
const token = state.token;
|
|
365
365
|
if (scope.has(token)) {
|
package/dst/constant/String.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const equateStrings: (value1?: string, value2?: string, ignoreCas
|
|
|
16
16
|
export declare const containsString: (value?: string, search?: string, startPos?: number, ignoreCaseSpaceEtc?: boolean) => boolean;
|
|
17
17
|
export declare const startsWithString: (value?: string, search?: string, startPos?: number, ignoreCaseSpaceEtc?: boolean) => boolean;
|
|
18
18
|
export declare const endsWithString: (value?: string, search?: string, endPos?: number, ignoreCaseSpaceEtc?: boolean) => boolean;
|
|
19
|
-
export declare const encodeString: (value?: string, encoding?: StringEncoding) =>
|
|
19
|
+
export declare const encodeString: (value?: string, encoding?: StringEncoding) => ArrayBuffer;
|
|
20
20
|
export declare const funcLike: Constant;
|
|
21
21
|
export declare const funcUnlike: Constant;
|
|
22
22
|
export declare const funcStartsWith: Constant;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "affinirum",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Affinirum Scripting Language",
|
|
5
5
|
"main": "dst/cjs/index.js",
|
|
6
6
|
"module": "dst/index.js",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@types/jasmine": "~5.1.
|
|
59
|
+
"@types/jasmine": "~5.1.13",
|
|
60
60
|
"copyfiles": "~2.4.1",
|
|
61
|
-
"eslint": "~9.
|
|
62
|
-
"jasmine": "~5.
|
|
63
|
-
"rimraf": "~6.
|
|
64
|
-
"typescript": "~5.
|
|
65
|
-
"typescript-eslint": "~8.
|
|
61
|
+
"eslint": "~9.39.1",
|
|
62
|
+
"jasmine": "~5.12.0",
|
|
63
|
+
"rimraf": "~6.1.2",
|
|
64
|
+
"typescript": "~5.9.3",
|
|
65
|
+
"typescript-eslint": "~8.48.0"
|
|
66
66
|
}
|
|
67
67
|
}
|