pxt-common-packages 12.1.1 → 12.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/built/common-sim.d.ts +1 -0
- package/built/common-sim.js +7 -0
- package/libs/base/sim/control.ts +6 -0
- package/package.json +2 -2
package/built/common-sim.d.ts
CHANGED
|
@@ -175,6 +175,7 @@ declare namespace pxsim.control {
|
|
|
175
175
|
let runInParallel: typeof thread.runInBackground;
|
|
176
176
|
let delay: typeof thread.pause;
|
|
177
177
|
function reset(): void;
|
|
178
|
+
function singleSimulator(): void;
|
|
178
179
|
function waitMicros(micros: number): void;
|
|
179
180
|
function deviceName(): string;
|
|
180
181
|
function _ramSize(): number;
|
package/built/common-sim.js
CHANGED
|
@@ -475,6 +475,13 @@ var pxsim;
|
|
|
475
475
|
const cb = pxsim.getResume();
|
|
476
476
|
}
|
|
477
477
|
control.reset = reset;
|
|
478
|
+
function singleSimulator() {
|
|
479
|
+
pxsim.Runtime.postMessage({
|
|
480
|
+
type: "simulator",
|
|
481
|
+
command: "single"
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
control.singleSimulator = singleSimulator;
|
|
478
485
|
function waitMicros(micros) {
|
|
479
486
|
pxsim.thread.pause(micros / 1000); // it prempts not much we can do here.
|
|
480
487
|
}
|
package/libs/base/sim/control.ts
CHANGED
|
@@ -43,6 +43,12 @@ namespace pxsim.control {
|
|
|
43
43
|
})
|
|
44
44
|
const cb = getResume();
|
|
45
45
|
}
|
|
46
|
+
export function singleSimulator() {
|
|
47
|
+
pxsim.Runtime.postMessage(<pxsim.SimulatorCommandMessage>{
|
|
48
|
+
type: "simulator",
|
|
49
|
+
command: "single"
|
|
50
|
+
})
|
|
51
|
+
}
|
|
46
52
|
export function waitMicros(micros: number) {
|
|
47
53
|
thread.pause(micros / 1000); // it prempts not much we can do here.
|
|
48
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pxt-common-packages",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.1",
|
|
4
4
|
"description": "Microsoft MakeCode (PXT) common packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MakeCode",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"libs/**/*"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"pxt-core": "
|
|
27
|
+
"pxt-core": "11.2.24"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"typescript": "^4.2.3"
|