@acodeninja/persist 2.3.0 → 2.3.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/README.md +21 -235
- package/docs/code-quirks.md +71 -0
- package/docs/model-property-types.md +173 -0
- package/docs/models-as-properties.md +159 -0
- package/docs/search-queries.md +47 -0
- package/docs/storage-engines.md +61 -0
- package/docs/structured-queries.md +107 -0
- package/docs/transactions.md +23 -0
- package/package.json +1 -1
- package/src/Persist.js +1 -1
- package/src/engine/Engine.js +6 -4
- package/src/engine/HTTPEngine.js +12 -12
- package/src/engine/S3Engine.js +5 -5
- package/src/type/Model.js +25 -5
- package/src/type/Type.js +8 -4
- package/src/type/complex/ArrayType.js +3 -3
- package/src/type/complex/CustomType.js +12 -4
- package/src/type/resolved/SlugType.js +8 -0
- package/src/type/simple/BooleanType.js +9 -5
- package/src/type/simple/DateType.js +14 -10
- package/src/type/simple/NumberType.js +9 -5
- package/src/type/simple/StringType.js +9 -5
@@ -10,11 +10,15 @@ import SimpleType from './SimpleType.js';
|
|
10
10
|
* @extends SimpleType
|
11
11
|
*/
|
12
12
|
class StringType extends SimpleType {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
static {
|
14
|
+
/**
|
15
|
+
* @static
|
16
|
+
* @property {string} _type - The type identifier for the string type.
|
17
|
+
*/
|
18
|
+
this._type = 'string';
|
19
|
+
|
20
|
+
Object.defineProperty(this, 'name', {value: 'String'});
|
21
|
+
}
|
18
22
|
}
|
19
23
|
|
20
24
|
export default StringType;
|