@teambit/dependency-resolver 0.0.988 → 0.0.989
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/policy/env-policy/validate-env-policy.js.map +1 -1
- package/dist/policy/env-policy/validate-env-policy.spec.js.map +1 -1
- package/dist/policy/index.d.ts +1 -1
- package/dist/policy/index.js.map +1 -1
- package/dist/policy/variant-policy/index.d.ts +1 -1
- package/dist/policy/variant-policy/index.js.map +1 -1
- package/dist/{preview-1676604673087.js → preview-1676777489824.js} +2 -2
- package/package-tar/teambit-dependency-resolver-0.0.989.tgz +0 -0
- package/package.json +17 -17
- package/policy/env-policy/validate-env-policy.spec.ts +3 -3
- package/policy/env-policy/validate-env-policy.ts +1 -1
- package/policy/index.ts +1 -5
- package/policy/variant-policy/index.ts +8 -1
- package/package-tar/teambit-dependency-resolver-0.0.988.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["validateEnvPolicyConfigObject","configObject","peers","validateEnvPeers","peer","supportedRange","BitError","name","version"],"sources":["validate-env-policy.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport type { EnvJsoncPolicyPeerEntry, EnvPolicyConfigObject } from './env-policy';\n\nexport function validateEnvPolicyConfigObject(configObject: EnvPolicyConfigObject) {\n if (configObject.peers) {\n validateEnvPeers(configObject.peers);\n }\n}\n\nfunction validateEnvPeers(peers: EnvJsoncPolicyPeerEntry[]){\n for (const peer of peers) {\n if (peer.supportedRange === '') {\n throw new BitError(`Peer \"${peer.name}\" has an empty supportedRange`);\n }\n if (peer.supportedRange == null) {\n throw new BitError(`Peer \"${peer.name}\" has no supportedRange set`);\n }\n if (peer.version === '') {\n throw new BitError(`Peer \"${peer.name}\" has an empty version`);\n }\n if (peer.version == null) {\n throw new BitError(`Peer \"${peer.name}\" has no version set`);\n }\n }\n}\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,SAASA,6BAA6B,CAACC,YAAmC,EAAE;EACjF,IAAIA,YAAY,CAACC,KAAK,EAAE;IACtBC,gBAAgB,CAACF,YAAY,CAACC,KAAK,CAAC;EACtC;AACF;AAEA,SAASC,gBAAgB,CAACD,KAAgC,
|
|
1
|
+
{"version":3,"names":["validateEnvPolicyConfigObject","configObject","peers","validateEnvPeers","peer","supportedRange","BitError","name","version"],"sources":["validate-env-policy.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport type { EnvJsoncPolicyPeerEntry, EnvPolicyConfigObject } from './env-policy';\n\nexport function validateEnvPolicyConfigObject(configObject: EnvPolicyConfigObject) {\n if (configObject.peers) {\n validateEnvPeers(configObject.peers);\n }\n}\n\nfunction validateEnvPeers(peers: EnvJsoncPolicyPeerEntry[]) {\n for (const peer of peers) {\n if (peer.supportedRange === '') {\n throw new BitError(`Peer \"${peer.name}\" has an empty supportedRange`);\n }\n if (peer.supportedRange == null) {\n throw new BitError(`Peer \"${peer.name}\" has no supportedRange set`);\n }\n if (peer.version === '') {\n throw new BitError(`Peer \"${peer.name}\" has an empty version`);\n }\n if (peer.version == null) {\n throw new BitError(`Peer \"${peer.name}\" has no version set`);\n }\n }\n}\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,SAASA,6BAA6B,CAACC,YAAmC,EAAE;EACjF,IAAIA,YAAY,CAACC,KAAK,EAAE;IACtBC,gBAAgB,CAACF,YAAY,CAACC,KAAK,CAAC;EACtC;AACF;AAEA,SAASC,gBAAgB,CAACD,KAAgC,EAAE;EAC1D,KAAK,MAAME,IAAI,IAAIF,KAAK,EAAE;IACxB,IAAIE,IAAI,CAACC,cAAc,KAAK,EAAE,EAAE;MAC9B,MAAM,KAAIC,oBAAQ,EAAE,SAAQF,IAAI,CAACG,IAAK,+BAA8B,CAAC;IACvE;IACA,IAAIH,IAAI,CAACC,cAAc,IAAI,IAAI,EAAE;MAC/B,MAAM,KAAIC,oBAAQ,EAAE,SAAQF,IAAI,CAACG,IAAK,6BAA4B,CAAC;IACrE;IACA,IAAIH,IAAI,CAACI,OAAO,KAAK,EAAE,EAAE;MACvB,MAAM,KAAIF,oBAAQ,EAAE,SAAQF,IAAI,CAACG,IAAK,wBAAuB,CAAC;IAChE;IACA,IAAIH,IAAI,CAACI,OAAO,IAAI,IAAI,EAAE;MACxB,MAAM,KAAIF,oBAAQ,EAAE,SAAQF,IAAI,CAACG,IAAK,sBAAqB,CAAC;IAC9D;EACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["describe","it","expect","validateEnvPolicyConfigObject","peers","name","supportedRange","toThrowError","version"],"sources":["validate-env-policy.spec.ts"],"sourcesContent":["import { validateEnvPolicyConfigObject } from './validate-env-policy';\n\ndescribe('validateEnvPolicyConfigObject', () => {\n it('should throw an exception if peer supportedRange is empty', () => {\n expect(() => validateEnvPolicyConfigObject({ peers: [{ name: 'peer', supportedRange: '' }] } as any)).toThrowError(\n 'Peer \"peer\" has an empty supportedRange'\n );\n });\n it('should throw an exception if peer supportedRange is null', () => {\n expect(()
|
|
1
|
+
{"version":3,"names":["describe","it","expect","validateEnvPolicyConfigObject","peers","name","supportedRange","toThrowError","version"],"sources":["validate-env-policy.spec.ts"],"sourcesContent":["import { validateEnvPolicyConfigObject } from './validate-env-policy';\n\ndescribe('validateEnvPolicyConfigObject', () => {\n it('should throw an exception if peer supportedRange is empty', () => {\n expect(() => validateEnvPolicyConfigObject({ peers: [{ name: 'peer', supportedRange: '' }] } as any)).toThrowError(\n 'Peer \"peer\" has an empty supportedRange'\n );\n });\n it('should throw an exception if peer supportedRange is null', () => {\n expect(() =>\n validateEnvPolicyConfigObject({ peers: [{ name: 'peer', supportedRange: null }] } as any)\n ).toThrowError('Peer \"peer\" has no supportedRange set');\n });\n it('should throw an exception if peer version is empty', () => {\n expect(() =>\n validateEnvPolicyConfigObject({ peers: [{ name: 'peer', supportedRange: '1', version: '' }] } as any)\n ).toThrowError('Peer \"peer\" has an empty version');\n });\n it('should throw an exception if peer version is null', () => {\n expect(() =>\n validateEnvPolicyConfigObject({ peers: [{ name: 'peer', supportedRange: '1', version: null }] } as any)\n ).toThrowError('Peer \"peer\" has no version set');\n });\n});\n"],"mappings":";;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEAA,QAAQ,CAAC,+BAA+B,EAAE,MAAM;EAC9CC,EAAE,CAAC,2DAA2D,EAAE,MAAM;IACpEC,MAAM,CAAC,MAAM,IAAAC,kDAA6B,EAAC;MAAEC,KAAK,EAAE,CAAC;QAAEC,IAAI,EAAE,MAAM;QAAEC,cAAc,EAAE;MAAG,CAAC;IAAE,CAAC,CAAQ,CAAC,CAACC,YAAY,CAChH,yCAAyC,CAC1C;EACH,CAAC,CAAC;EACFN,EAAE,CAAC,0DAA0D,EAAE,MAAM;IACnEC,MAAM,CAAC,MACL,IAAAC,kDAA6B,EAAC;MAAEC,KAAK,EAAE,CAAC;QAAEC,IAAI,EAAE,MAAM;QAAEC,cAAc,EAAE;MAAK,CAAC;IAAE,CAAC,CAAQ,CAC1F,CAACC,YAAY,CAAC,uCAAuC,CAAC;EACzD,CAAC,CAAC;EACFN,EAAE,CAAC,oDAAoD,EAAE,MAAM;IAC7DC,MAAM,CAAC,MACL,IAAAC,kDAA6B,EAAC;MAAEC,KAAK,EAAE,CAAC;QAAEC,IAAI,EAAE,MAAM;QAAEC,cAAc,EAAE,GAAG;QAAEE,OAAO,EAAE;MAAG,CAAC;IAAE,CAAC,CAAQ,CACtG,CAACD,YAAY,CAAC,kCAAkC,CAAC;EACpD,CAAC,CAAC;EACFN,EAAE,CAAC,mDAAmD,EAAE,MAAM;IAC5DC,MAAM,CAAC,MACL,IAAAC,kDAA6B,EAAC;MAAEC,KAAK,EAAE,CAAC;QAAEC,IAAI,EAAE,MAAM;QAAEC,cAAc,EAAE,GAAG;QAAEE,OAAO,EAAE;MAAK,CAAC;IAAE,CAAC,CAAQ,CACxG,CAACD,YAAY,CAAC,gCAAgC,CAAC;EAClD,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/policy/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Policy, PolicySemver, PolicyConfigKeys, PolicyConfigKeysNames, PolicyEntry } from './policy';
|
|
2
2
|
export { WorkspacePolicy, WorkspacePolicyFactory, WorkspacePolicyConfigObject, AddEntryOptions as WorkspacePolicyAddEntryOptions, WorkspacePolicyEntry, } from './workspace-policy';
|
|
3
|
-
export { VariantPolicy, VariantPolicyConfigObject, SerializedVariantPolicy
|
|
3
|
+
export { VariantPolicy, VariantPolicyConfigObject, SerializedVariantPolicy } from './variant-policy';
|
|
4
4
|
export { EnvPolicy, EnvPolicyConfigObject } from './env-policy';
|
package/dist/policy/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Policy, PolicySemver, PolicyConfigKeys, PolicyConfigKeysNames, PolicyEntry } from './policy';\nexport {\n WorkspacePolicy,\n WorkspacePolicyFactory,\n WorkspacePolicyConfigObject,\n AddEntryOptions as WorkspacePolicyAddEntryOptions,\n WorkspacePolicyEntry,\n} from './workspace-policy';\nexport {
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Policy, PolicySemver, PolicyConfigKeys, PolicyConfigKeysNames, PolicyEntry } from './policy';\nexport {\n WorkspacePolicy,\n WorkspacePolicyFactory,\n WorkspacePolicyConfigObject,\n AddEntryOptions as WorkspacePolicyAddEntryOptions,\n WorkspacePolicyEntry,\n} from './workspace-policy';\nexport { VariantPolicy, VariantPolicyConfigObject, SerializedVariantPolicy } from './variant-policy';\n\nexport { EnvPolicy, EnvPolicyConfigObject } from './env-policy';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAOA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { VariantPolicy, VariantPolicyConfigObject, SerializedVariantPolicy, VariantPolicyEntry, createVariantPolicyEntry, DependencySource } from './variant-policy';
|
|
1
|
+
export { VariantPolicy, VariantPolicyConfigObject, SerializedVariantPolicy, VariantPolicyEntry, createVariantPolicyEntry, DependencySource, } from './variant-policy';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export {
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export {\n VariantPolicy,\n VariantPolicyConfigObject,\n SerializedVariantPolicy,\n VariantPolicyEntry,\n createVariantPolicyEntry,\n DependencySource,\n} from './variant-policy';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_dependency-resolver@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_dependency-resolver@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_dependency-resolver@0.0.989/dist/dependency-resolver.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_dependency-resolver@0.0.989/dist/dependency-resolver.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/dependency-resolver",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.989",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/dependencies/dependency-resolver",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.dependencies",
|
|
8
8
|
"name": "dependency-resolver",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.989"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"cli-highlight": "2.1.9",
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
"@babel/runtime": "7.20.0",
|
|
31
31
|
"@teambit/harmony": "0.4.6",
|
|
32
32
|
"@pnpm/network.ca-file": "1.0.2",
|
|
33
|
-
"@teambit/envs": "0.0.
|
|
34
|
-
"@teambit/aspect-loader": "0.0.
|
|
35
|
-
"@teambit/component": "0.0.
|
|
36
|
-
"@teambit/logger": "0.0.
|
|
33
|
+
"@teambit/envs": "0.0.989",
|
|
34
|
+
"@teambit/aspect-loader": "0.0.989",
|
|
35
|
+
"@teambit/component": "0.0.989",
|
|
36
|
+
"@teambit/logger": "0.0.757",
|
|
37
37
|
"@teambit/bit-error": "0.0.402",
|
|
38
|
-
"@teambit/graphql": "0.0.
|
|
39
|
-
"@teambit/bit": "0.0.
|
|
40
|
-
"@teambit/cli": "0.0.
|
|
41
|
-
"@teambit/config": "0.0.
|
|
42
|
-
"@teambit/global-config": "0.0.
|
|
38
|
+
"@teambit/graphql": "0.0.989",
|
|
39
|
+
"@teambit/bit": "0.0.991",
|
|
40
|
+
"@teambit/cli": "0.0.664",
|
|
41
|
+
"@teambit/config": "0.0.677",
|
|
42
|
+
"@teambit/global-config": "0.0.666",
|
|
43
43
|
"@teambit/harmony.modules.requireable-component": "0.0.491",
|
|
44
|
-
"@teambit/legacy-bit-id": "0.0.
|
|
45
|
-
"@teambit/snapping": "0.0.
|
|
46
|
-
"@teambit/isolator": "0.0.
|
|
44
|
+
"@teambit/legacy-bit-id": "0.0.423",
|
|
45
|
+
"@teambit/snapping": "0.0.304",
|
|
46
|
+
"@teambit/isolator": "0.0.989",
|
|
47
47
|
"@teambit/component-package-version": "0.0.422",
|
|
48
|
-
"@teambit/component-
|
|
49
|
-
"@teambit/component-
|
|
48
|
+
"@teambit/component-version": "0.0.408",
|
|
49
|
+
"@teambit/component-id": "0.0.427"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^17.0.8",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@teambit/dependencies.aspect-docs.dependency-resolver": "0.0.158"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@teambit/legacy": "1.0.
|
|
66
|
+
"@teambit/legacy": "1.0.445",
|
|
67
67
|
"react": "^16.8.0 || ^17.0.0",
|
|
68
68
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
69
69
|
},
|
|
@@ -7,9 +7,9 @@ describe('validateEnvPolicyConfigObject', () => {
|
|
|
7
7
|
);
|
|
8
8
|
});
|
|
9
9
|
it('should throw an exception if peer supportedRange is null', () => {
|
|
10
|
-
expect(() =>
|
|
11
|
-
|
|
12
|
-
);
|
|
10
|
+
expect(() =>
|
|
11
|
+
validateEnvPolicyConfigObject({ peers: [{ name: 'peer', supportedRange: null }] } as any)
|
|
12
|
+
).toThrowError('Peer "peer" has no supportedRange set');
|
|
13
13
|
});
|
|
14
14
|
it('should throw an exception if peer version is empty', () => {
|
|
15
15
|
expect(() =>
|
|
@@ -7,7 +7,7 @@ export function validateEnvPolicyConfigObject(configObject: EnvPolicyConfigObjec
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
function validateEnvPeers(peers: EnvJsoncPolicyPeerEntry[]){
|
|
10
|
+
function validateEnvPeers(peers: EnvJsoncPolicyPeerEntry[]) {
|
|
11
11
|
for (const peer of peers) {
|
|
12
12
|
if (peer.supportedRange === '') {
|
|
13
13
|
throw new BitError(`Peer "${peer.name}" has an empty supportedRange`);
|
package/policy/index.ts
CHANGED
|
@@ -6,10 +6,6 @@ export {
|
|
|
6
6
|
AddEntryOptions as WorkspacePolicyAddEntryOptions,
|
|
7
7
|
WorkspacePolicyEntry,
|
|
8
8
|
} from './workspace-policy';
|
|
9
|
-
export {
|
|
10
|
-
VariantPolicy,
|
|
11
|
-
VariantPolicyConfigObject,
|
|
12
|
-
SerializedVariantPolicy,
|
|
13
|
-
} from './variant-policy';
|
|
9
|
+
export { VariantPolicy, VariantPolicyConfigObject, SerializedVariantPolicy } from './variant-policy';
|
|
14
10
|
|
|
15
11
|
export { EnvPolicy, EnvPolicyConfigObject } from './env-policy';
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {
|
|
2
|
+
VariantPolicy,
|
|
3
|
+
VariantPolicyConfigObject,
|
|
4
|
+
SerializedVariantPolicy,
|
|
5
|
+
VariantPolicyEntry,
|
|
6
|
+
createVariantPolicyEntry,
|
|
7
|
+
DependencySource,
|
|
8
|
+
} from './variant-policy';
|
|
Binary file
|