@teambit/semantics.entities.semantic-schema 0.0.12 → 0.0.13

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/api-schema.ts CHANGED
@@ -54,7 +54,7 @@ export class APISchema extends SchemaNode {
54
54
  return this.module.exports.map((exp) => exp.signature);
55
55
  }
56
56
 
57
- static fromSchema(obj: Record<string, any>): APISchema {
57
+ static fromObject(obj: Record<string, any>): APISchema {
58
58
  return plainToInstance(APISchema, obj);
59
59
  }
60
60
  }
@@ -7,5 +7,5 @@ export declare class APISchema extends SchemaNode {
7
7
  toString(): string;
8
8
  toStringPerType(): string;
9
9
  listSignatures(): string[];
10
- static fromSchema(obj: Record<string, any>): APISchema;
10
+ static fromObject(obj: Record<string, any>): APISchema;
11
11
  }
@@ -43,7 +43,7 @@ class APISchema extends schema_node_1.SchemaNode {
43
43
  listSignatures() {
44
44
  return this.module.exports.map((exp) => exp.signature);
45
45
  }
46
- static fromSchema(obj) {
46
+ static fromObject(obj) {
47
47
  return (0, class_transformer_1.plainToInstance)(APISchema, obj);
48
48
  }
49
49
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/semantics.entities.semantic-schema",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "homepage": "https://bit.dev/teambit/semantics/entities/semantic-schema",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.semantics",
8
8
  "name": "entities/semantic-schema",
9
- "version": "0.0.12"
9
+ "version": "0.0.13"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -1 +1 @@
1
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_entities_semantic-schema@0.0.12/dist/semantic-schema.docs.md')]
1
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_entities_semantic-schema@0.0.13/dist/semantic-schema.docs.md')]