@my-devkit/core 1.0.94 → 1.0.96
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/passwords.d.ts +2 -0
- package/dist/passwords.js +13 -0
- package/dist/passwords.js.map +1 -0
- package/dist/vendors/lodash.d.ts +1 -1
- package/dist/vendors/lodash.js +6 -5
- package/dist/vendors/lodash.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/passwords.ts +9 -0
- package/src/vendors/lodash.ts +6 -5
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./json-helper"), exports);
|
|
|
29
29
|
__exportStar(require("./logger"), exports);
|
|
30
30
|
__exportStar(require("./maintenance-model"), exports);
|
|
31
31
|
__exportStar(require("./model"), exports);
|
|
32
|
+
__exportStar(require("./passwords"), exports);
|
|
32
33
|
__exportStar(require("./promise-helper"), exports);
|
|
33
34
|
__exportStar(require("./release-model"), exports);
|
|
34
35
|
__exportStar(require("./retry"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yCAA2C;AAE3C,8CAA4B;AAC5B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,gDAA8B;AAC9B,2CAAyB;AACzB,0CAAwB;AACxB,yCAAuB;AACvB,gDAA8B;AAC9B,2CAAyB;AACzB,sDAAoC;AACpC,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,0CAAwB;AACxB,6DAA2C;AAC3C,8CAA4B;AAC5B,0CAAwB;AACxB,kEAAgE;AAAvD,mHAAA,eAAe,OAAA;AACxB,4CAA0B;AAEb,QAAA,UAAU,GAAG,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yCAA2C;AAE3C,8CAA4B;AAC5B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,gDAA8B;AAC9B,2CAAyB;AACzB,0CAAwB;AACxB,yCAAuB;AACvB,gDAA8B;AAC9B,2CAAyB;AACzB,sDAAoC;AACpC,0CAAwB;AACxB,8CAA4B;AAC5B,mDAAiC;AACjC,kDAAgC;AAChC,0CAAwB;AACxB,6DAA2C;AAC3C,8CAA4B;AAC5B,0CAAwB;AACxB,kEAAgE;AAAvD,mHAAA,eAAe,OAAA;AACxB,4CAA0B;AAEb,QAAA,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hiddenPassword = exports.restorePassword = void 0;
|
|
4
|
+
var HIDDEN_PASSWORD_VALUE = '********';
|
|
5
|
+
function restorePassword(newPassword, oldPassword) {
|
|
6
|
+
return newPassword === HIDDEN_PASSWORD_VALUE ? oldPassword : newPassword;
|
|
7
|
+
}
|
|
8
|
+
exports.restorePassword = restorePassword;
|
|
9
|
+
function hiddenPassword() {
|
|
10
|
+
return HIDDEN_PASSWORD_VALUE;
|
|
11
|
+
}
|
|
12
|
+
exports.hiddenPassword = hiddenPassword;
|
|
13
|
+
//# sourceMappingURL=passwords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passwords.js","sourceRoot":"","sources":["../src/passwords.ts"],"names":[],"mappings":";;;AAAA,IAAM,qBAAqB,GAAG,UAAU,CAAC;AAEzC,SAAgB,eAAe,CAAC,WAAmB,EAAE,WAAmB;IACpE,OAAO,WAAW,KAAK,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;AAC7E,CAAC;AAFD,0CAEC;AAED,SAAgB,cAAc;IAC1B,OAAO,qBAAqB,CAAC;AACjC,CAAC;AAFD,wCAEC"}
|
package/dist/vendors/lodash.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { chunk as _chunk, cloneDeep as _cloneDeep, deburr as _deburr, first as _first, flatten as _flatten, flattenDeep as _flattenDeep, get as _get, groupBy as _groupBy, isEqual as _isEqual, isNil as _isNil, isObjectLike as _isObjectLike, kebabCase as _kebabCase, keys as _keys, last as _last, maxBy as _maxBy, minBy as _minBy, orderBy as _orderBy, padStart as _padStart, shuffle as _shuffle, sortBy as _sortBy, sum as _sum, sumBy as _sumBy, trim as _trim, trimEnd as _trimEnd, trimStart as _trimStart, uniq as _uniq,
|
|
1
|
+
export { chunk as _chunk, cloneDeep as _cloneDeep, deburr as _deburr, first as _first, flatten as _flatten, flattenDeep as _flattenDeep, get as _get, groupBy as _groupBy, isArray as _isArray, isBoolean as _isBoolean, isDate as _isDate, isEqual as _isEqual, isNil as _isNil, isObjectLike as _isObjectLike, isString as _isString, kebabCase as _kebabCase, keys as _keys, last as _last, maxBy as _maxBy, minBy as _minBy, orderBy as _orderBy, padStart as _padStart, shuffle as _shuffle, sortBy as _sortBy, sum as _sum, sumBy as _sumBy, trim as _trim, trimEnd as _trimEnd, trimStart as _trimStart, uniq as _uniq, upperFirst as _upperFirst, words as _words } from 'lodash';
|
package/dist/vendors/lodash.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports._words = exports._upperFirst = exports._uniq = exports._trimStart = exports._trimEnd = exports._trim = exports._sumBy = exports._sum = exports._sortBy = exports._shuffle = exports._padStart = exports._orderBy = exports._minBy = exports._maxBy = exports._last = exports._keys = exports._kebabCase = exports._isString = exports._isObjectLike = exports._isNil = exports._isEqual = exports._isDate = exports._isBoolean = exports._isArray = exports._groupBy = exports._get = exports._flattenDeep = exports._flatten = exports._first = exports._deburr = exports._cloneDeep = exports._chunk = void 0;
|
|
4
4
|
var lodash_1 = require("lodash");
|
|
5
5
|
Object.defineProperty(exports, "_chunk", { enumerable: true, get: function () { return lodash_1.chunk; } });
|
|
6
6
|
Object.defineProperty(exports, "_cloneDeep", { enumerable: true, get: function () { return lodash_1.cloneDeep; } });
|
|
@@ -10,9 +10,13 @@ Object.defineProperty(exports, "_flatten", { enumerable: true, get: function ()
|
|
|
10
10
|
Object.defineProperty(exports, "_flattenDeep", { enumerable: true, get: function () { return lodash_1.flattenDeep; } });
|
|
11
11
|
Object.defineProperty(exports, "_get", { enumerable: true, get: function () { return lodash_1.get; } });
|
|
12
12
|
Object.defineProperty(exports, "_groupBy", { enumerable: true, get: function () { return lodash_1.groupBy; } });
|
|
13
|
+
Object.defineProperty(exports, "_isArray", { enumerable: true, get: function () { return lodash_1.isArray; } });
|
|
14
|
+
Object.defineProperty(exports, "_isBoolean", { enumerable: true, get: function () { return lodash_1.isBoolean; } });
|
|
15
|
+
Object.defineProperty(exports, "_isDate", { enumerable: true, get: function () { return lodash_1.isDate; } });
|
|
13
16
|
Object.defineProperty(exports, "_isEqual", { enumerable: true, get: function () { return lodash_1.isEqual; } });
|
|
14
17
|
Object.defineProperty(exports, "_isNil", { enumerable: true, get: function () { return lodash_1.isNil; } });
|
|
15
18
|
Object.defineProperty(exports, "_isObjectLike", { enumerable: true, get: function () { return lodash_1.isObjectLike; } });
|
|
19
|
+
Object.defineProperty(exports, "_isString", { enumerable: true, get: function () { return lodash_1.isString; } });
|
|
16
20
|
Object.defineProperty(exports, "_kebabCase", { enumerable: true, get: function () { return lodash_1.kebabCase; } });
|
|
17
21
|
Object.defineProperty(exports, "_keys", { enumerable: true, get: function () { return lodash_1.keys; } });
|
|
18
22
|
Object.defineProperty(exports, "_last", { enumerable: true, get: function () { return lodash_1.last; } });
|
|
@@ -28,9 +32,6 @@ Object.defineProperty(exports, "_trim", { enumerable: true, get: function () { r
|
|
|
28
32
|
Object.defineProperty(exports, "_trimEnd", { enumerable: true, get: function () { return lodash_1.trimEnd; } });
|
|
29
33
|
Object.defineProperty(exports, "_trimStart", { enumerable: true, get: function () { return lodash_1.trimStart; } });
|
|
30
34
|
Object.defineProperty(exports, "_uniq", { enumerable: true, get: function () { return lodash_1.uniq; } });
|
|
35
|
+
Object.defineProperty(exports, "_upperFirst", { enumerable: true, get: function () { return lodash_1.upperFirst; } });
|
|
31
36
|
Object.defineProperty(exports, "_words", { enumerable: true, get: function () { return lodash_1.words; } });
|
|
32
|
-
Object.defineProperty(exports, "_isString", { enumerable: true, get: function () { return lodash_1.isString; } });
|
|
33
|
-
Object.defineProperty(exports, "_isArray", { enumerable: true, get: function () { return lodash_1.isArray; } });
|
|
34
|
-
Object.defineProperty(exports, "_isBoolean", { enumerable: true, get: function () { return lodash_1.isBoolean; } });
|
|
35
|
-
Object.defineProperty(exports, "_isDate", { enumerable: true, get: function () { return lodash_1.isDate; } });
|
|
36
37
|
//# sourceMappingURL=lodash.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lodash.js","sourceRoot":"","sources":["../../src/vendors/lodash.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"lodash.js","sourceRoot":"","sources":["../../src/vendors/lodash.ts"],"names":[],"mappings":";;;AAAA,iCAiCgB;AAhCZ,gGAAA,KAAK,OAAU;AACf,oGAAA,SAAS,OAAc;AACvB,iGAAA,MAAM,OAAW;AACjB,gGAAA,KAAK,OAAU;AACf,kGAAA,OAAO,OAAY;AACnB,sGAAA,WAAW,OAAgB;AAC3B,8FAAA,GAAG,OAAQ;AACX,kGAAA,OAAO,OAAY;AACnB,kGAAA,OAAO,OAAY;AACnB,oGAAA,SAAS,OAAc;AACvB,iGAAA,MAAM,OAAW;AACjB,kGAAA,OAAO,OAAY;AACnB,gGAAA,KAAK,OAAU;AACf,uGAAA,YAAY,OAAiB;AAC7B,mGAAA,QAAQ,OAAa;AACrB,oGAAA,SAAS,OAAc;AACvB,+FAAA,IAAI,OAAS;AACb,+FAAA,IAAI,OAAS;AACb,gGAAA,KAAK,OAAU;AACf,gGAAA,KAAK,OAAU;AACf,kGAAA,OAAO,OAAY;AACnB,mGAAA,QAAQ,OAAa;AACrB,kGAAA,OAAO,OAAY;AACnB,iGAAA,MAAM,OAAW;AACjB,8FAAA,GAAG,OAAQ;AACX,gGAAA,KAAK,OAAU;AACf,+FAAA,IAAI,OAAS;AACb,kGAAA,OAAO,OAAY;AACnB,oGAAA,SAAS,OAAc;AACvB,+FAAA,IAAI,OAAS;AACb,qGAAA,UAAU,OAAe;AACzB,gGAAA,KAAK,OAAU"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/passwords.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const HIDDEN_PASSWORD_VALUE = '********';
|
|
2
|
+
|
|
3
|
+
export function restorePassword(newPassword: string, oldPassword: string): string {
|
|
4
|
+
return newPassword === HIDDEN_PASSWORD_VALUE ? oldPassword : newPassword;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function hiddenPassword(): string {
|
|
8
|
+
return HIDDEN_PASSWORD_VALUE;
|
|
9
|
+
}
|
package/src/vendors/lodash.ts
CHANGED
|
@@ -7,9 +7,13 @@ export {
|
|
|
7
7
|
flattenDeep as _flattenDeep,
|
|
8
8
|
get as _get,
|
|
9
9
|
groupBy as _groupBy,
|
|
10
|
+
isArray as _isArray,
|
|
11
|
+
isBoolean as _isBoolean,
|
|
12
|
+
isDate as _isDate,
|
|
10
13
|
isEqual as _isEqual,
|
|
11
14
|
isNil as _isNil,
|
|
12
15
|
isObjectLike as _isObjectLike,
|
|
16
|
+
isString as _isString,
|
|
13
17
|
kebabCase as _kebabCase,
|
|
14
18
|
keys as _keys,
|
|
15
19
|
last as _last,
|
|
@@ -25,10 +29,7 @@ export {
|
|
|
25
29
|
trimEnd as _trimEnd,
|
|
26
30
|
trimStart as _trimStart,
|
|
27
31
|
uniq as _uniq,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
isArray as _isArray,
|
|
31
|
-
isBoolean as _isBoolean,
|
|
32
|
-
isDate as _isDate
|
|
32
|
+
upperFirst as _upperFirst,
|
|
33
|
+
words as _words
|
|
33
34
|
} from 'lodash';
|
|
34
35
|
|