@teambit/semantics.entities.semantic-schema 0.0.58 → 0.0.59

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.
@@ -0,0 +1,7 @@
1
+ ;
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_entities_semantic-schema@0.0.59/dist/semantic-schema.docs.md';
3
+
4
+ export const compositions = [];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[]};
@@ -4,7 +4,8 @@ import { SchemaLocation, SchemaNode } from '../schema-node';
4
4
  */
5
5
  export declare class ThisTypeSchema extends SchemaNode {
6
6
  readonly location: SchemaLocation;
7
- constructor(location: SchemaLocation);
7
+ readonly name: string;
8
+ constructor(location: SchemaLocation, name: string);
8
9
  toString(): string;
9
10
  static fromObject(obj: Record<string, any>): ThisTypeSchema;
10
11
  }
@@ -6,16 +6,18 @@ const schema_node_1 = require("../schema-node");
6
6
  * e.g. `class A { createA(): this {} }`
7
7
  */
8
8
  class ThisTypeSchema extends schema_node_1.SchemaNode {
9
- constructor(location) {
9
+ constructor(location, name) {
10
10
  super();
11
11
  this.location = location;
12
+ this.name = name;
12
13
  }
13
14
  toString() {
14
- return 'this';
15
+ return this.name;
15
16
  }
16
17
  static fromObject(obj) {
17
18
  const location = obj.location;
18
- return new ThisTypeSchema(location);
19
+ const name = obj.name;
20
+ return new ThisTypeSchema(location, name);
19
21
  }
20
22
  }
21
23
  exports.ThisTypeSchema = ThisTypeSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"this-type.js","sourceRoot":"","sources":["../../schemas/this-type.ts"],"names":[],"mappings":";;;AAAA,gDAA4D;AAE5D;;GAEG;AACH,MAAa,cAAe,SAAQ,wBAAU;IAC5C,YAAqB,QAAwB;QAC3C,KAAK,EAAE,CAAC;QADW,aAAQ,GAAR,QAAQ,CAAgB;IAE7C,CAAC;IAED,QAAQ;QACN,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,GAAwB;QACxC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC9B,OAAO,IAAI,cAAc,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACF;AAbD,wCAaC"}
1
+ {"version":3,"file":"this-type.js","sourceRoot":"","sources":["../../schemas/this-type.ts"],"names":[],"mappings":";;;AAAA,gDAA4D;AAE5D;;GAEG;AACH,MAAa,cAAe,SAAQ,wBAAU;IAC5C,YAAqB,QAAwB,EAAW,IAAY;QAClE,KAAK,EAAE,CAAC;QADW,aAAQ,GAAR,QAAQ,CAAgB;QAAW,SAAI,GAAJ,IAAI,CAAQ;IAEpE,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,GAAwB;QACxC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC9B,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACtB,OAAO,IAAI,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC5C,CAAC;CACF;AAdD,wCAcC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/semantics.entities.semantic-schema",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "homepage": "https://bit.cloud/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.58"
9
+ "version": "0.0.59"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -4,16 +4,17 @@ import { SchemaLocation, SchemaNode } from '../schema-node';
4
4
  * e.g. `class A { createA(): this {} }`
5
5
  */
6
6
  export class ThisTypeSchema extends SchemaNode {
7
- constructor(readonly location: SchemaLocation) {
7
+ constructor(readonly location: SchemaLocation, readonly name: string) {
8
8
  super();
9
9
  }
10
10
 
11
11
  toString() {
12
- return 'this';
12
+ return this.name;
13
13
  }
14
14
 
15
15
  static fromObject(obj: Record<string, any>): ThisTypeSchema {
16
16
  const location = obj.location;
17
- return new ThisTypeSchema(location);
17
+ const name = obj.name;
18
+ return new ThisTypeSchema(location, name);
18
19
  }
19
20
  }
@@ -1,7 +0,0 @@
1
- ;
2
- import * as overview_0 from '/Users/davidfirst/Library/Caches/Bit/capsules/633786a8db5eb76897544549d9cae6b12f050100/teambit.semantics_entities_semantic-schema@0.0.58/dist/semantic-schema.docs.md';
3
-
4
- export const compositions = [];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[]};