warpo 3.2.2 → 3.4.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/asconfig.schema.json +18 -2
- package/assemblyscript/std/assembly/array.ts +2 -1
- package/assemblyscript/std/assembly/map.ts +89 -2
- package/assemblyscript/std/assembly/readonlyarray.ts +24 -0
- package/assemblyscript/std/assembly/string.ts +8 -10
- package/assemblyscript/std/assembly/templatestringsarray.ts +113 -0
- package/assemblyscript/std/assembly/typedarray.ts +5 -5
- package/create/resolveModule.ts +2 -0
- package/dist/debug_server/debugSession.d.ts +1 -0
- package/dist/debug_server/debugSession.js +1 -0
- package/dist/debug_server/debugSession.js.map +1 -1
- package/dist/debug_server/debugger.d.ts +1 -0
- package/dist/debug_server/nodeDebugger.js +6 -1
- package/dist/debug_server/nodeDebugger.js.map +1 -1
- package/dist/debug_server/tests/debugSession.test.js +4 -3
- package/dist/debug_server/tests/debugSession.test.js.map +1 -1
- package/dist/debug_server/tests/testModule/unittest_debug.case.js +5 -0
- package/dist/debug_server/tests/testModule/unittest_debug.case.js.map +1 -1
- package/dist/heap_analyzer/tests/tlsfBlockWalker.test.js +6 -6
- package/dist/heap_analyzer/tests/tlsfBlockWalker.test.js.map +1 -1
- package/dist/test_runner/core/compiler.js +1 -0
- package/dist/test_runner/core/compiler.js.map +1 -1
- package/package.json +1 -1
- package/types/std/index.d.ts +41 -3
- package/types/warpo/index.d.ts +4 -0
- package/warpo_extension/std/warpo/memory.ts +6 -0
package/types/std/index.d.ts
CHANGED
|
@@ -1755,6 +1755,26 @@ interface ArrayLike<T> {
|
|
|
1755
1755
|
length: i32;
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
|
+
interface ReadonlyArray<T> extends Iterable<T> {
|
|
1759
|
+
[key: number]: T;
|
|
1760
|
+
readonly length: i32;
|
|
1761
|
+
at(index: i32): T;
|
|
1762
|
+
findIndex(callbackfn: (value: T, index: i32, array: ReadonlyArray<T>) => bool): i32;
|
|
1763
|
+
findLastIndex(callbackfn: (value: T, index: i32, array: ReadonlyArray<T>) => bool): i32;
|
|
1764
|
+
includes(searchElement: T, fromIndex?: i32): bool;
|
|
1765
|
+
indexOf(searchElement: T, fromIndex?: i32): i32;
|
|
1766
|
+
lastIndexOf(searchElement: T, fromIndex?: i32): i32;
|
|
1767
|
+
forEach(callbackfn: (value: T, index: i32, array: ReadonlyArray<T>) => void): void;
|
|
1768
|
+
filter(callbackfn: (value: T, index: i32, array: ReadonlyArray<T>) => bool): Array<T>;
|
|
1769
|
+
every(callbackfn: (value: T, index: i32, array: ReadonlyArray<T>) => bool): bool;
|
|
1770
|
+
some(callbackfn: (value: T, index: i32, array: ReadonlyArray<T>) => bool): bool;
|
|
1771
|
+
concat(other: Array<T>): Array<T>;
|
|
1772
|
+
slice(from?: i32, to?: i32): Array<T>;
|
|
1773
|
+
join(separator?: string): string;
|
|
1774
|
+
flat(): T;
|
|
1775
|
+
toString(): string;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1758
1778
|
/** Interface for a typed view on an array buffer. */
|
|
1759
1779
|
interface ArrayBufferView {
|
|
1760
1780
|
/** The {@link ArrayBuffer} referenced by this view. */
|
|
@@ -1890,7 +1910,7 @@ declare class Float64Array extends TypedArray<f64> {
|
|
|
1890
1910
|
}
|
|
1891
1911
|
|
|
1892
1912
|
/** Class representing a sequence of values of type `T`. */
|
|
1893
|
-
declare class Array<T> {
|
|
1913
|
+
declare class Array<T> implements ReadonlyArray<T> {
|
|
1894
1914
|
/** Tests if a value is an array. */
|
|
1895
1915
|
static isArray<U>(value: any): value is Array<any>;
|
|
1896
1916
|
|
|
@@ -2057,8 +2077,26 @@ declare namespace String {
|
|
|
2057
2077
|
}
|
|
2058
2078
|
}
|
|
2059
2079
|
|
|
2060
|
-
declare class TemplateStringsArray
|
|
2061
|
-
|
|
2080
|
+
declare class TemplateStringsArray implements ReadonlyArray<string> {
|
|
2081
|
+
[key: number]: string;
|
|
2082
|
+
readonly raw: ReadonlyArray<string>;
|
|
2083
|
+
readonly length: i32;
|
|
2084
|
+
[Symbol.iterator](): Iterator<string>;
|
|
2085
|
+
at(index: i32): string;
|
|
2086
|
+
findIndex(callbackfn: (value: string, index: i32, array: ReadonlyArray<string>) => bool): i32;
|
|
2087
|
+
findLastIndex(callbackfn: (value: string, index: i32, array: ReadonlyArray<string>) => bool): i32;
|
|
2088
|
+
includes(searchElement: string, fromIndex?: i32): bool;
|
|
2089
|
+
indexOf(searchElement: string, fromIndex?: i32): i32;
|
|
2090
|
+
lastIndexOf(searchElement: string, fromIndex?: i32): i32;
|
|
2091
|
+
forEach(callbackfn: (value: string, index: i32, array: ReadonlyArray<string>) => void): void;
|
|
2092
|
+
filter(callbackfn: (value: string, index: i32, array: ReadonlyArray<string>) => bool): Array<string>;
|
|
2093
|
+
every(callbackfn: (value: string, index: i32, array: ReadonlyArray<string>) => bool): bool;
|
|
2094
|
+
some(callbackfn: (value: string, index: i32, array: ReadonlyArray<string>) => bool): bool;
|
|
2095
|
+
concat(other: Array<string>): Array<string>;
|
|
2096
|
+
slice(from?: i32, to?: i32): Array<string>;
|
|
2097
|
+
join(separator?: string): string;
|
|
2098
|
+
flat(): string;
|
|
2099
|
+
toString(): string;
|
|
2062
2100
|
}
|
|
2063
2101
|
|
|
2064
2102
|
declare class Object {
|
package/types/warpo/index.d.ts
CHANGED