@imbricate/core 3.15.2 → 3.15.6
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/document/validate.js +6 -21
- package/package.json +1 -1
- package/static/base-class/author-only.d.ts +1 -1
- package/static/base-class/author-only.js +1 -1
- package/static/base-class/content-only.d.ts +1 -1
- package/static/base-class/content-only.js +1 -1
- package/static/base-class/full-feature.d.ts +1 -1
- package/static/base-class/full-feature.js +1 -1
- package/static/interface.d.ts +1 -1
- package/text/base-class/author-only.d.ts +1 -1
- package/text/base-class/author-only.js +1 -1
- package/text/base-class/content-only.d.ts +1 -1
- package/text/base-class/content-only.js +1 -1
- package/text/base-class/full-feature.d.ts +1 -1
- package/text/base-class/full-feature.js +1 -1
- package/text/interface.d.ts +1 -1
package/document/validate.js
CHANGED
|
@@ -60,35 +60,20 @@ const validateImbricateProperties = (properties, schema, allowExtraProperties =
|
|
|
60
60
|
break;
|
|
61
61
|
}
|
|
62
62
|
case property_1.IMBRICATE_PROPERTY_TYPE.MARKDOWN: {
|
|
63
|
-
if (
|
|
64
|
-
return `Property ${key} value must be
|
|
65
|
-
}
|
|
66
|
-
for (const markdown of value.value) {
|
|
67
|
-
if (typeof markdown !== "string") {
|
|
68
|
-
return `Property ${key} markdown must be a string`;
|
|
69
|
-
}
|
|
63
|
+
if (typeof value.value !== "string") {
|
|
64
|
+
return `Property ${key} value must be a string`;
|
|
70
65
|
}
|
|
71
66
|
break;
|
|
72
67
|
}
|
|
73
68
|
case property_1.IMBRICATE_PROPERTY_TYPE.JSON: {
|
|
74
|
-
if (
|
|
75
|
-
return `Property ${key} value must be
|
|
76
|
-
}
|
|
77
|
-
for (const json of value.value) {
|
|
78
|
-
if (typeof json !== "string") {
|
|
79
|
-
return `Property ${key} json must be a string`;
|
|
80
|
-
}
|
|
69
|
+
if (typeof value.value !== "string") {
|
|
70
|
+
return `Property ${key} value must be a string`;
|
|
81
71
|
}
|
|
82
72
|
break;
|
|
83
73
|
}
|
|
84
74
|
case property_1.IMBRICATE_PROPERTY_TYPE.IMBRISCRIPT: {
|
|
85
|
-
if (
|
|
86
|
-
return `Property ${key} value must be
|
|
87
|
-
}
|
|
88
|
-
for (const imbriscript of value.value) {
|
|
89
|
-
if (typeof imbriscript !== "string") {
|
|
90
|
-
return `Property ${key} imbriscript must be a string`;
|
|
91
|
-
}
|
|
75
|
+
if (typeof value.value !== "string") {
|
|
76
|
+
return `Property ${key} value must be a string`;
|
|
92
77
|
}
|
|
93
78
|
break;
|
|
94
79
|
}
|
package/package.json
CHANGED
|
@@ -8,6 +8,6 @@ import { IImbricateStatic } from "../interface";
|
|
|
8
8
|
import { ImbricateStaticGetContentOutcome } from "../outcome";
|
|
9
9
|
import { ImbricateStaticFullFeatureBase } from "./full-feature";
|
|
10
10
|
export declare abstract class ImbricateStaticAuthorOnlyBase extends ImbricateStaticFullFeatureBase implements IImbricateStatic {
|
|
11
|
-
readonly
|
|
11
|
+
readonly supportedFeatures: IMBRICATE_STATIC_FEATURE[];
|
|
12
12
|
getContentInBase64(): PromiseLike<ImbricateStaticGetContentOutcome<string>>;
|
|
13
13
|
}
|
|
@@ -12,7 +12,7 @@ const full_feature_1 = require("./full-feature");
|
|
|
12
12
|
class ImbricateStaticAuthorOnlyBase extends full_feature_1.ImbricateStaticFullFeatureBase {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
this.
|
|
15
|
+
this.supportedFeatures = [
|
|
16
16
|
feature_1.IMBRICATE_STATIC_FEATURE.STATIC_GET_AUTHOR,
|
|
17
17
|
];
|
|
18
18
|
}
|
|
@@ -7,6 +7,6 @@ import { ImbricateAuthor } from "../../author/definition";
|
|
|
7
7
|
import { IMBRICATE_STATIC_FEATURE } from "../feature";
|
|
8
8
|
import { ImbricateStaticFullFeatureBase } from "./full-feature";
|
|
9
9
|
export declare abstract class ImbricateStaticContentOnlyBase extends ImbricateStaticFullFeatureBase {
|
|
10
|
-
readonly
|
|
10
|
+
readonly supportedFeatures: IMBRICATE_STATIC_FEATURE[];
|
|
11
11
|
get author(): ImbricateAuthor;
|
|
12
12
|
}
|
|
@@ -12,7 +12,7 @@ const full_feature_1 = require("./full-feature");
|
|
|
12
12
|
class ImbricateStaticContentOnlyBase extends full_feature_1.ImbricateStaticFullFeatureBase {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
this.
|
|
15
|
+
this.supportedFeatures = [
|
|
16
16
|
feature_1.IMBRICATE_STATIC_FEATURE.STATIC_GET_CONTENT,
|
|
17
17
|
];
|
|
18
18
|
}
|
|
@@ -9,7 +9,7 @@ import { IImbricateStatic } from "../interface";
|
|
|
9
9
|
import { ImbricateStaticGetContentOutcome } from "../outcome";
|
|
10
10
|
export declare abstract class ImbricateStaticFullFeatureBase implements IImbricateStatic {
|
|
11
11
|
abstract readonly uniqueIdentifier: string;
|
|
12
|
-
readonly
|
|
12
|
+
readonly supportedFeatures: IMBRICATE_STATIC_FEATURE[];
|
|
13
13
|
abstract readonly author: ImbricateAuthor;
|
|
14
14
|
abstract getContentInBase64(): PromiseLike<ImbricateStaticGetContentOutcome<string>>;
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ exports.ImbricateStaticFullFeatureBase = void 0;
|
|
|
9
9
|
const feature_1 = require("../feature");
|
|
10
10
|
class ImbricateStaticFullFeatureBase {
|
|
11
11
|
constructor() {
|
|
12
|
-
this.
|
|
12
|
+
this.supportedFeatures = [
|
|
13
13
|
feature_1.IMBRICATE_STATIC_FEATURE.STATIC_GET_AUTHOR,
|
|
14
14
|
feature_1.IMBRICATE_STATIC_FEATURE.STATIC_GET_CONTENT,
|
|
15
15
|
];
|
package/static/interface.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ import { IImbricateText } from "../interface";
|
|
|
8
8
|
import { ImbricateTextGetContentOutcome } from "../outcome";
|
|
9
9
|
import { ImbricateTextFullFeatureBase } from "./full-feature";
|
|
10
10
|
export declare abstract class ImbricateTextAuthorOnlyBase extends ImbricateTextFullFeatureBase implements IImbricateText {
|
|
11
|
-
readonly
|
|
11
|
+
readonly supportedFeatures: IMBRICATE_TEXT_FEATURE[];
|
|
12
12
|
getContent(): PromiseLike<ImbricateTextGetContentOutcome>;
|
|
13
13
|
}
|
|
@@ -12,7 +12,7 @@ const full_feature_1 = require("./full-feature");
|
|
|
12
12
|
class ImbricateTextAuthorOnlyBase extends full_feature_1.ImbricateTextFullFeatureBase {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
this.
|
|
15
|
+
this.supportedFeatures = [
|
|
16
16
|
feature_1.IMBRICATE_TEXT_FEATURE.TEXT_GET_AUTHOR,
|
|
17
17
|
];
|
|
18
18
|
}
|
|
@@ -7,6 +7,6 @@ import { ImbricateAuthor } from "../../author/definition";
|
|
|
7
7
|
import { IMBRICATE_TEXT_FEATURE } from "../feature";
|
|
8
8
|
import { ImbricateTextFullFeatureBase } from "./full-feature";
|
|
9
9
|
export declare abstract class ImbricateTextContentOnlyBase extends ImbricateTextFullFeatureBase {
|
|
10
|
-
readonly
|
|
10
|
+
readonly supportedFeatures: IMBRICATE_TEXT_FEATURE[];
|
|
11
11
|
get author(): ImbricateAuthor;
|
|
12
12
|
}
|
|
@@ -12,7 +12,7 @@ const full_feature_1 = require("./full-feature");
|
|
|
12
12
|
class ImbricateTextContentOnlyBase extends full_feature_1.ImbricateTextFullFeatureBase {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
this.
|
|
15
|
+
this.supportedFeatures = [
|
|
16
16
|
feature_1.IMBRICATE_TEXT_FEATURE.TEXT_GET_CONTENT,
|
|
17
17
|
];
|
|
18
18
|
}
|
|
@@ -9,7 +9,7 @@ import { IImbricateText } from "../interface";
|
|
|
9
9
|
import { ImbricateTextGetContentOutcome } from "../outcome";
|
|
10
10
|
export declare abstract class ImbricateTextFullFeatureBase implements IImbricateText {
|
|
11
11
|
abstract readonly uniqueIdentifier: string;
|
|
12
|
-
readonly
|
|
12
|
+
readonly supportedFeatures: IMBRICATE_TEXT_FEATURE[];
|
|
13
13
|
abstract readonly author: ImbricateAuthor;
|
|
14
14
|
abstract getContent(): PromiseLike<ImbricateTextGetContentOutcome>;
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ exports.ImbricateTextFullFeatureBase = void 0;
|
|
|
9
9
|
const feature_1 = require("../feature");
|
|
10
10
|
class ImbricateTextFullFeatureBase {
|
|
11
11
|
constructor() {
|
|
12
|
-
this.
|
|
12
|
+
this.supportedFeatures = [
|
|
13
13
|
feature_1.IMBRICATE_TEXT_FEATURE.TEXT_GET_AUTHOR,
|
|
14
14
|
feature_1.IMBRICATE_TEXT_FEATURE.TEXT_GET_CONTENT,
|
|
15
15
|
];
|
package/text/interface.d.ts
CHANGED