pxt-core 11.3.63 → 11.3.64
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/pxt.js +12 -1
- package/built/pxtlib.js +12 -1
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/runnerembed.js +3 -3
- package/package.json +1 -1
package/built/pxt.js
CHANGED
|
@@ -113873,6 +113873,7 @@ var pxt;
|
|
|
113873
113873
|
};
|
|
113874
113874
|
}
|
|
113875
113875
|
parseConfig(cfgSrc, targetVersion) {
|
|
113876
|
+
var _a;
|
|
113876
113877
|
try {
|
|
113877
113878
|
const cfg = JSON.parse(cfgSrc);
|
|
113878
113879
|
this.config = cfg;
|
|
@@ -113882,6 +113883,15 @@ var pxt;
|
|
|
113882
113883
|
pxt.tickEvent("package.invalidConfigEncountered");
|
|
113883
113884
|
}
|
|
113884
113885
|
const currentConfig = JSON.stringify(this.config);
|
|
113886
|
+
if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.files) {
|
|
113887
|
+
// clean up the files list. we had some issues in the past with
|
|
113888
|
+
// invalid entries being added to pxt.json
|
|
113889
|
+
this.config.files = this.config.files.filter(f => f !== pxt.HISTORY_FILE &&
|
|
113890
|
+
f !== pxt.CONFIG_NAME &&
|
|
113891
|
+
f !== "undefined" &&
|
|
113892
|
+
f !== "null" &&
|
|
113893
|
+
!!f);
|
|
113894
|
+
}
|
|
113885
113895
|
for (const dep in this.config.dependencies) {
|
|
113886
113896
|
const value = pxt.patching.upgradePackageReference(this.targetVersion(), dep, this.config.dependencies[dep]);
|
|
113887
113897
|
if (value != dep) {
|
|
@@ -114574,6 +114584,7 @@ var pxt;
|
|
|
114574
114584
|
cfg.dependencies[k] = v;
|
|
114575
114585
|
}
|
|
114576
114586
|
});
|
|
114587
|
+
cfg.files = cfg.files.filter(fn => fn !== pxt.HISTORY_FILE);
|
|
114577
114588
|
return cfg;
|
|
114578
114589
|
}
|
|
114579
114590
|
filesToBePublishedAsync(allowPrivate = false) {
|
|
@@ -114586,7 +114597,7 @@ var pxt;
|
|
|
114586
114597
|
files[pxt.CONFIG_NAME] = pxt.Package.stringifyConfig(cfg);
|
|
114587
114598
|
for (let f of this.getFiles()) {
|
|
114588
114599
|
// already stored
|
|
114589
|
-
if (f
|
|
114600
|
+
if (f === pxt.CONFIG_NAME || f === pxt.HISTORY_FILE)
|
|
114590
114601
|
continue;
|
|
114591
114602
|
let str = this.readFile(f);
|
|
114592
114603
|
if (str == null)
|
package/built/pxtlib.js
CHANGED
|
@@ -16187,6 +16187,7 @@ var pxt;
|
|
|
16187
16187
|
};
|
|
16188
16188
|
}
|
|
16189
16189
|
parseConfig(cfgSrc, targetVersion) {
|
|
16190
|
+
var _a;
|
|
16190
16191
|
try {
|
|
16191
16192
|
const cfg = JSON.parse(cfgSrc);
|
|
16192
16193
|
this.config = cfg;
|
|
@@ -16196,6 +16197,15 @@ var pxt;
|
|
|
16196
16197
|
pxt.tickEvent("package.invalidConfigEncountered");
|
|
16197
16198
|
}
|
|
16198
16199
|
const currentConfig = JSON.stringify(this.config);
|
|
16200
|
+
if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.files) {
|
|
16201
|
+
// clean up the files list. we had some issues in the past with
|
|
16202
|
+
// invalid entries being added to pxt.json
|
|
16203
|
+
this.config.files = this.config.files.filter(f => f !== pxt.HISTORY_FILE &&
|
|
16204
|
+
f !== pxt.CONFIG_NAME &&
|
|
16205
|
+
f !== "undefined" &&
|
|
16206
|
+
f !== "null" &&
|
|
16207
|
+
!!f);
|
|
16208
|
+
}
|
|
16199
16209
|
for (const dep in this.config.dependencies) {
|
|
16200
16210
|
const value = pxt.patching.upgradePackageReference(this.targetVersion(), dep, this.config.dependencies[dep]);
|
|
16201
16211
|
if (value != dep) {
|
|
@@ -16888,6 +16898,7 @@ var pxt;
|
|
|
16888
16898
|
cfg.dependencies[k] = v;
|
|
16889
16899
|
}
|
|
16890
16900
|
});
|
|
16901
|
+
cfg.files = cfg.files.filter(fn => fn !== pxt.HISTORY_FILE);
|
|
16891
16902
|
return cfg;
|
|
16892
16903
|
}
|
|
16893
16904
|
filesToBePublishedAsync(allowPrivate = false) {
|
|
@@ -16900,7 +16911,7 @@ var pxt;
|
|
|
16900
16911
|
files[pxt.CONFIG_NAME] = pxt.Package.stringifyConfig(cfg);
|
|
16901
16912
|
for (let f of this.getFiles()) {
|
|
16902
16913
|
// already stored
|
|
16903
|
-
if (f
|
|
16914
|
+
if (f === pxt.CONFIG_NAME || f === pxt.HISTORY_FILE)
|
|
16904
16915
|
continue;
|
|
16905
16916
|
let str = this.readFile(f);
|
|
16906
16917
|
if (str == null)
|