@teambit/legacy-bit-id 0.0.394 → 0.0.398
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/__preview-1644377006839.js +1 -0
- package/dist/exceptions/index.d.ts +2 -1
- package/dist/exceptions/index.js +3 -1
- package/dist/exceptions/index.js.map +1 -1
- package/dist/exceptions/invalid-scope-name-from-remote.d.ts +4 -0
- package/dist/exceptions/invalid-scope-name-from-remote.js +12 -0
- package/dist/exceptions/invalid-scope-name-from-remote.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/exceptions/index.ts +2 -1
- package/exceptions/invalid-scope-name-from-remote.ts +9 -0
- package/index.ts +11 -2
- package/package-tar/teambit-legacy-bit-id-0.0.398.tgz +0 -0
- package/package.json +5 -16
- package/package-tar/teambit-legacy-bit-id-0.0.394.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -2,4 +2,5 @@ import InvalidBitId from './invalid-bit-id';
|
|
|
2
2
|
import InvalidIdChunk from './invalid-id-chunk';
|
|
3
3
|
import InvalidName from './invalid-name';
|
|
4
4
|
import InvalidScopeName from './invalid-scope-name';
|
|
5
|
-
|
|
5
|
+
import InvalidScopeNameFromRemote from './invalid-scope-name-from-remote';
|
|
6
|
+
export { InvalidBitId, InvalidIdChunk, InvalidName, InvalidScopeName, InvalidScopeNameFromRemote };
|
package/dist/exceptions/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.InvalidScopeName = exports.InvalidName = exports.InvalidIdChunk = exports.InvalidBitId = void 0;
|
|
6
|
+
exports.InvalidScopeNameFromRemote = exports.InvalidScopeName = exports.InvalidName = exports.InvalidIdChunk = exports.InvalidBitId = void 0;
|
|
7
7
|
const invalid_bit_id_1 = __importDefault(require("./invalid-bit-id"));
|
|
8
8
|
exports.InvalidBitId = invalid_bit_id_1.default;
|
|
9
9
|
const invalid_id_chunk_1 = __importDefault(require("./invalid-id-chunk"));
|
|
@@ -12,4 +12,6 @@ const invalid_name_1 = __importDefault(require("./invalid-name"));
|
|
|
12
12
|
exports.InvalidName = invalid_name_1.default;
|
|
13
13
|
const invalid_scope_name_1 = __importDefault(require("./invalid-scope-name"));
|
|
14
14
|
exports.InvalidScopeName = invalid_scope_name_1.default;
|
|
15
|
+
const invalid_scope_name_from_remote_1 = __importDefault(require("./invalid-scope-name-from-remote"));
|
|
16
|
+
exports.InvalidScopeNameFromRemote = invalid_scope_name_from_remote_1.default;
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../exceptions/index.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA4C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../exceptions/index.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA4C;AAMnC,uBANF,wBAAY,CAME;AALrB,0EAAgD;AAKzB,yBALhB,0BAAc,CAKgB;AAJrC,kEAAyC;AAIF,sBAJhC,sBAAW,CAIgC;AAHlD,8EAAoD;AAGA,2BAH7C,4BAAgB,CAG6C;AAFpE,sGAA0E;AAEJ,qCAF/D,wCAA0B,CAE+D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const bit_error_1 = require("@teambit/bit-error");
|
|
4
|
+
class InvalidScopeNameFromRemote extends bit_error_1.BitError {
|
|
5
|
+
constructor(scopeName) {
|
|
6
|
+
super(`cannot find scope '${scopeName}'.
|
|
7
|
+
if you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.
|
|
8
|
+
if this is a scope on bit.dev please add the organization name before the scope (yourOrg.some-scope-name)`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.default = InvalidScopeNameFromRemote;
|
|
12
|
+
//# sourceMappingURL=invalid-scope-name-from-remote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-scope-name-from-remote.js","sourceRoot":"","sources":["../../exceptions/invalid-scope-name-from-remote.ts"],"names":[],"mappings":";;AAAA,kDAA8C;AAE9C,MAAqB,0BAA2B,SAAQ,oBAAQ;IAC9D,YAAY,SAAiB;QAC3B,KAAK,CAAC,sBAAsB,SAAS;;0GAEiE,CAAC,CAAC;IAC1G,CAAC;CACF;AAND,6CAMC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import BitId, { BitIdProps, VERSION_DELIMITER, BitIdStr } from './bit-id';
|
|
2
|
-
import { InvalidName, InvalidScopeName } from './exceptions';
|
|
2
|
+
import { InvalidName, InvalidScopeName, InvalidScopeNameFromRemote } from './exceptions';
|
|
3
3
|
import isValidScopeName from './utils/is-valid-scope-name';
|
|
4
|
-
export { BitId, BitIdProps, BitIdStr, VERSION_DELIMITER, isValidScopeName, InvalidName, InvalidScopeName };
|
|
4
|
+
export { BitId, BitIdProps, BitIdStr, VERSION_DELIMITER, isValidScopeName, InvalidName, InvalidScopeName, InvalidScopeNameFromRemote, };
|
package/dist/index.js
CHANGED
|
@@ -22,13 +22,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.InvalidScopeName = exports.InvalidName = exports.isValidScopeName = exports.VERSION_DELIMITER = exports.BitId = void 0;
|
|
25
|
+
exports.InvalidScopeNameFromRemote = exports.InvalidScopeName = exports.InvalidName = exports.isValidScopeName = exports.VERSION_DELIMITER = exports.BitId = void 0;
|
|
26
26
|
const bit_id_1 = __importStar(require("./bit-id"));
|
|
27
27
|
exports.BitId = bit_id_1.default;
|
|
28
28
|
Object.defineProperty(exports, "VERSION_DELIMITER", { enumerable: true, get: function () { return bit_id_1.VERSION_DELIMITER; } });
|
|
29
29
|
const exceptions_1 = require("./exceptions");
|
|
30
30
|
Object.defineProperty(exports, "InvalidName", { enumerable: true, get: function () { return exceptions_1.InvalidName; } });
|
|
31
31
|
Object.defineProperty(exports, "InvalidScopeName", { enumerable: true, get: function () { return exceptions_1.InvalidScopeName; } });
|
|
32
|
+
Object.defineProperty(exports, "InvalidScopeNameFromRemote", { enumerable: true, get: function () { return exceptions_1.InvalidScopeNameFromRemote; } });
|
|
32
33
|
const is_valid_scope_name_1 = __importDefault(require("./utils/is-valid-scope-name"));
|
|
33
34
|
exports.isValidScopeName = is_valid_scope_name_1.default;
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA0E;AAKxE,gBALK,gBAAK,CAKL;AAGL,kGAR0B,0BAAiB,OAQ1B;AAPnB,6CAAyF;AASvF,4FATO,wBAAW,OASP;AACX,iGAVoB,6BAAgB,OAUpB;AAChB,2GAXsC,uCAA0B,OAWtC;AAV5B,sFAA2D;AAOzD,2BAPK,6BAAgB,CAOL"}
|
package/exceptions/index.ts
CHANGED
|
@@ -2,5 +2,6 @@ import InvalidBitId from './invalid-bit-id';
|
|
|
2
2
|
import InvalidIdChunk from './invalid-id-chunk';
|
|
3
3
|
import InvalidName from './invalid-name';
|
|
4
4
|
import InvalidScopeName from './invalid-scope-name';
|
|
5
|
+
import InvalidScopeNameFromRemote from './invalid-scope-name-from-remote';
|
|
5
6
|
|
|
6
|
-
export { InvalidBitId, InvalidIdChunk, InvalidName, InvalidScopeName };
|
|
7
|
+
export { InvalidBitId, InvalidIdChunk, InvalidName, InvalidScopeName, InvalidScopeNameFromRemote };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BitError } from '@teambit/bit-error';
|
|
2
|
+
|
|
3
|
+
export default class InvalidScopeNameFromRemote extends BitError {
|
|
4
|
+
constructor(scopeName: string) {
|
|
5
|
+
super(`cannot find scope '${scopeName}'.
|
|
6
|
+
if you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.
|
|
7
|
+
if this is a scope on bit.dev please add the organization name before the scope (yourOrg.some-scope-name)`);
|
|
8
|
+
}
|
|
9
|
+
}
|
package/index.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import BitId, { BitIdProps, VERSION_DELIMITER, BitIdStr } from './bit-id';
|
|
2
|
-
import { InvalidName, InvalidScopeName } from './exceptions';
|
|
2
|
+
import { InvalidName, InvalidScopeName, InvalidScopeNameFromRemote } from './exceptions';
|
|
3
3
|
import isValidScopeName from './utils/is-valid-scope-name';
|
|
4
4
|
|
|
5
|
-
export {
|
|
5
|
+
export {
|
|
6
|
+
BitId,
|
|
7
|
+
BitIdProps,
|
|
8
|
+
BitIdStr,
|
|
9
|
+
VERSION_DELIMITER,
|
|
10
|
+
isValidScopeName,
|
|
11
|
+
InvalidName,
|
|
12
|
+
InvalidScopeName,
|
|
13
|
+
InvalidScopeNameFromRemote,
|
|
14
|
+
};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,50 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/legacy-bit-id",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.398",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/component/legacy-bit-id",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "legacy-bit-id",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.398"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"decamelize": "1.2.0",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"semver": "7.3.4",
|
|
15
|
-
"@teambit/component-version": "0.0.
|
|
16
|
-
"@teambit/bit-error": "0.0.
|
|
15
|
+
"@teambit/component-version": "0.0.395",
|
|
16
|
+
"@teambit/bit-error": "0.0.394"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"chai": "4.3.0",
|
|
20
20
|
"@types/chai": "4.2.15",
|
|
21
21
|
"@types/lodash": "4.14.165",
|
|
22
22
|
"@types/semver": "7.3.4",
|
|
23
|
-
"@types/mocha": "5.2.7",
|
|
24
23
|
"@babel/runtime": "7.12.18",
|
|
25
24
|
"@types/node": "12.20.4",
|
|
26
25
|
"@types/jest": "26.0.20"
|
|
27
26
|
},
|
|
28
|
-
"peerDependencies": {
|
|
29
|
-
"@teambit/legacy": "1.0.191"
|
|
30
|
-
},
|
|
27
|
+
"peerDependencies": {},
|
|
31
28
|
"license": "Apache-2.0",
|
|
32
29
|
"bit": {
|
|
33
30
|
"bindingPrefix": "@teambit",
|
|
34
31
|
"env": {},
|
|
35
32
|
"overrides": {
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@teambit/legacy": "-"
|
|
38
|
-
},
|
|
39
33
|
"devDependencies": {
|
|
40
|
-
"@teambit/legacy": "-",
|
|
41
|
-
"@types/mocha": "5.2.7",
|
|
42
34
|
"@babel/runtime": "7.12.18",
|
|
43
35
|
"@types/node": "12.20.4",
|
|
44
36
|
"@types/jest": "26.0.20"
|
|
45
|
-
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"@teambit/legacy": "1.0.191"
|
|
48
37
|
}
|
|
49
38
|
}
|
|
50
39
|
},
|
|
Binary file
|