pinokiod 7.1.51 → 7.1.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.1.51",
3
+ "version": "7.1.60",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -267,8 +267,9 @@ function createContentValidationService({ kernel }) {
267
267
  ))
268
268
  }
269
269
  if (normalizedPath.startsWith("/plugin/")) {
270
+ const isManagedDefaultPlugin = normalizedPath.startsWith("/plugin/code/")
270
271
  const declaredPath = typeof config.path === "string" ? config.path.trim() : ""
271
- if (declaredPath !== "plugin") {
272
+ if (!isManagedDefaultPlugin && declaredPath !== "plugin") {
272
273
  errors.push(buildError(
273
274
  'Standalone plugins must set `path: "plugin"`.',
274
275
  'Add `path: "plugin"` to pinokio.js.',