@teambit/schema 0.0.944 → 0.0.946
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/dist/{preview-1672197955217.js → preview-1672331186584.js} +3 -3
- package/dist/schema.service.d.ts +7 -1
- package/dist/schema.service.js +7 -0
- package/dist/schema.service.js.map +1 -1
- package/package-tar/teambit-schema-0.0.946.tgz +0 -0
- package/package.json +8 -8
- package/package-tar/teambit-schema-0.0.944.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.
|
|
2
|
-
import * as compositions_1 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.
|
|
3
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.946/dist/schema.composition.js';
|
|
2
|
+
import * as compositions_1 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.946/dist/mock/button/button.composition.js';
|
|
3
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_schema@0.0.946/dist/schema.docs.mdx';
|
|
4
4
|
|
|
5
5
|
export const compositions = [compositions_0, compositions_1];
|
|
6
6
|
export const overview = [overview_0];
|
package/dist/schema.service.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { EnvService, ExecutionContext } from '@teambit/envs';
|
|
1
|
+
import { EnvService, ExecutionContext, Env, EnvContext, ServiceTransformationMap } from '@teambit/envs';
|
|
2
|
+
import { SchemaExtractor } from './schema-extractor';
|
|
3
|
+
declare type SchemaTransformationMap = ServiceTransformationMap & {
|
|
4
|
+
getSchemaExtractor: () => SchemaExtractor;
|
|
5
|
+
};
|
|
2
6
|
export declare class SchemaService implements EnvService<{}> {
|
|
3
7
|
name: string;
|
|
4
8
|
run(context: ExecutionContext): Promise<{
|
|
5
9
|
errors: never[];
|
|
6
10
|
context: ExecutionContext;
|
|
7
11
|
}>;
|
|
12
|
+
transform(env: Env, context: EnvContext): SchemaTransformationMap | undefined;
|
|
8
13
|
}
|
|
14
|
+
export {};
|
package/dist/schema.service.js
CHANGED
|
@@ -25,6 +25,13 @@ class SchemaService {
|
|
|
25
25
|
context
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
transform(env, context) {
|
|
29
|
+
// Old env
|
|
30
|
+
if (!(env !== null && env !== void 0 && env.schemaExtractor)) return undefined;
|
|
31
|
+
return {
|
|
32
|
+
getSchemaExtractor: env.schemaExtractor()(context)
|
|
33
|
+
};
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
exports.SchemaService = SchemaService;
|
|
30
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SchemaService","run","context","errors"],"sources":["schema.service.ts"],"sourcesContent":["import { EnvService, ExecutionContext } from '@teambit/envs';\n// import { APISchema } from './schema';\n\nexport class SchemaService implements EnvService<{}> {\n name = 'schema';\n\n async run(context: ExecutionContext) {\n return { errors: [], context };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"names":["SchemaService","run","context","errors","transform","env","schemaExtractor","undefined","getSchemaExtractor"],"sources":["schema.service.ts"],"sourcesContent":["import { EnvService, ExecutionContext, Env, EnvContext, ServiceTransformationMap } from '@teambit/envs';\nimport { SchemaExtractor } from './schema-extractor';\n// import { APISchema } from './schema';\n\ntype SchemaTransformationMap = ServiceTransformationMap & {\n getSchemaExtractor: () => SchemaExtractor;\n}\nexport class SchemaService implements EnvService<{}> {\n name = 'schema';\n\n async run(context: ExecutionContext) {\n return { errors: [], context };\n }\n\n transform(env: Env, context: EnvContext): SchemaTransformationMap | undefined {\n // Old env\n if (!env?.schemaExtractor) return undefined;\n return {\n getSchemaExtractor: env.schemaExtractor()(context),\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAEA;;AAKO,MAAMA,aAAa,CAA2B;EAAA;IAAA,8CAC5C,QAAQ;EAAA;EAEf,MAAMC,GAAG,CAACC,OAAyB,EAAE;IACnC,OAAO;MAAEC,MAAM,EAAE,EAAE;MAAED;IAAQ,CAAC;EAChC;EAEAE,SAAS,CAACC,GAAQ,EAAEH,OAAmB,EAAuC;IAC5E;IACA,IAAI,EAACG,GAAG,aAAHA,GAAG,eAAHA,GAAG,CAAEC,eAAe,GAAE,OAAOC,SAAS;IAC3C,OAAO;MACLC,kBAAkB,EAAEH,GAAG,CAACC,eAAe,EAAE,CAACJ,OAAO;IACnD,CAAC;EACH;AACF;AAAC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.946",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/semantics/schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.semantics",
|
|
8
8
|
"name": "schema",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.946"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"p-map-series": "2.1.0",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"@teambit/harmony": "0.4.6",
|
|
19
19
|
"@teambit/base-react.navigation.link": "2.0.27",
|
|
20
20
|
"@teambit/semantics.entities.semantic-schema": "0.0.48",
|
|
21
|
-
"@teambit/envs": "0.0.
|
|
22
|
-
"@teambit/component": "0.0.
|
|
23
|
-
"@teambit/formatter": "0.0.
|
|
21
|
+
"@teambit/envs": "0.0.946",
|
|
22
|
+
"@teambit/component": "0.0.946",
|
|
23
|
+
"@teambit/formatter": "0.0.497",
|
|
24
24
|
"@teambit/cli": "0.0.633",
|
|
25
25
|
"@teambit/logger": "0.0.726",
|
|
26
|
-
"@teambit/builder": "0.0.
|
|
26
|
+
"@teambit/builder": "0.0.946",
|
|
27
27
|
"@teambit/defender.prettier.config-mutator": "0.0.90",
|
|
28
|
-
"@teambit/graphql": "0.0.
|
|
29
|
-
"@teambit/workspace": "0.0.
|
|
28
|
+
"@teambit/graphql": "0.0.946",
|
|
29
|
+
"@teambit/workspace": "0.0.946"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/react": "^17.0.8",
|
|
Binary file
|