pxt-core 12.2.1 → 12.2.2
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 +11 -0
- package/built/pxtlib.d.ts +1 -0
- package/built/pxtlib.js +11 -0
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/tests/blocksrunner.js +17 -2
- package/built/tests/blockssetup.js +17 -2
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.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/rtlsemantic.css +1 -1
- package/built/web/runnerembed.js +1 -1
- package/built/web/semantic.css +1 -1
- package/package.json +1 -1
- package/theme/home.less +8 -6
package/built/pxt.js
CHANGED
|
@@ -109001,6 +109001,7 @@ var pxt;
|
|
|
109001
109001
|
fileName: rid.fileName,
|
|
109002
109002
|
slug: rid.slug,
|
|
109003
109003
|
name: rid.fileName ? `${meta.name}-${rid.fileName}` : meta.name,
|
|
109004
|
+
displayName: meta.displayName,
|
|
109004
109005
|
description: meta.description,
|
|
109005
109006
|
defaultBranch: meta.defaultBranch || "master",
|
|
109006
109007
|
tag: rid.tag,
|
|
@@ -114080,6 +114081,7 @@ var pxt;
|
|
|
114080
114081
|
};
|
|
114081
114082
|
}
|
|
114082
114083
|
parseConfig(cfgSrc, targetVersion) {
|
|
114084
|
+
var _a;
|
|
114083
114085
|
try {
|
|
114084
114086
|
const cfg = JSON.parse(cfgSrc);
|
|
114085
114087
|
this.config = cfg;
|
|
@@ -114089,6 +114091,15 @@ var pxt;
|
|
|
114089
114091
|
pxt.tickEvent("package.invalidConfigEncountered");
|
|
114090
114092
|
}
|
|
114091
114093
|
const currentConfig = JSON.stringify(this.config);
|
|
114094
|
+
if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.files) {
|
|
114095
|
+
// clean up the files list. we had some issues in the past with
|
|
114096
|
+
// invalid entries being added to pxt.json
|
|
114097
|
+
this.config.files = this.config.files.filter(f => f !== pxt.HISTORY_FILE &&
|
|
114098
|
+
f !== pxt.CONFIG_NAME &&
|
|
114099
|
+
f !== "undefined" &&
|
|
114100
|
+
f !== "null" &&
|
|
114101
|
+
!!f);
|
|
114102
|
+
}
|
|
114092
114103
|
for (const dep in this.config.dependencies) {
|
|
114093
114104
|
const value = pxt.patching.upgradePackageReference(this.targetVersion(), dep, this.config.dependencies[dep]);
|
|
114094
114105
|
if (value != dep) {
|
package/built/pxtlib.d.ts
CHANGED
package/built/pxtlib.js
CHANGED
|
@@ -11280,6 +11280,7 @@ var pxt;
|
|
|
11280
11280
|
fileName: rid.fileName,
|
|
11281
11281
|
slug: rid.slug,
|
|
11282
11282
|
name: rid.fileName ? `${meta.name}-${rid.fileName}` : meta.name,
|
|
11283
|
+
displayName: meta.displayName,
|
|
11283
11284
|
description: meta.description,
|
|
11284
11285
|
defaultBranch: meta.defaultBranch || "master",
|
|
11285
11286
|
tag: rid.tag,
|
|
@@ -16359,6 +16360,7 @@ var pxt;
|
|
|
16359
16360
|
};
|
|
16360
16361
|
}
|
|
16361
16362
|
parseConfig(cfgSrc, targetVersion) {
|
|
16363
|
+
var _a;
|
|
16362
16364
|
try {
|
|
16363
16365
|
const cfg = JSON.parse(cfgSrc);
|
|
16364
16366
|
this.config = cfg;
|
|
@@ -16368,6 +16370,15 @@ var pxt;
|
|
|
16368
16370
|
pxt.tickEvent("package.invalidConfigEncountered");
|
|
16369
16371
|
}
|
|
16370
16372
|
const currentConfig = JSON.stringify(this.config);
|
|
16373
|
+
if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.files) {
|
|
16374
|
+
// clean up the files list. we had some issues in the past with
|
|
16375
|
+
// invalid entries being added to pxt.json
|
|
16376
|
+
this.config.files = this.config.files.filter(f => f !== pxt.HISTORY_FILE &&
|
|
16377
|
+
f !== pxt.CONFIG_NAME &&
|
|
16378
|
+
f !== "undefined" &&
|
|
16379
|
+
f !== "null" &&
|
|
16380
|
+
!!f);
|
|
16381
|
+
}
|
|
16371
16382
|
for (const dep in this.config.dependencies) {
|
|
16372
16383
|
const value = pxt.patching.upgradePackageReference(this.targetVersion(), dep, this.config.dependencies[dep]);
|
|
16373
16384
|
if (value != dep) {
|