@thomaschaplin/cusip-generator
Advanced tools
Comparing version 1.0.8 to 1.0.10
@@ -18,6 +18,10 @@ "use strict"; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -28,3 +32,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var base_ten_numbers_1 = require("./base-ten-numbers"); | ||
exports.alphanumeric = __spreadArray(__spreadArray([], __read(alphabet_1.alphabet)), __read(base_ten_numbers_1.baseTenNumbers)); | ||
exports.alphanumeric = __spreadArray(__spreadArray([], __read(alphabet_1.alphabet), false), __read(base_ten_numbers_1.baseTenNumbers), false); | ||
//# sourceMappingURL=alphanumeric-values.js.map |
@@ -13,7 +13,7 @@ "use strict"; | ||
currentValue = cusip[i]; | ||
var currentNumberToBaseTen = convert_string_to_base_ten_number_1.convertStringToBaseTenNumber(currentValue); | ||
var currentNumberToBaseTen = (0, convert_string_to_base_ten_number_1.convertStringToBaseTenNumber)(currentValue); | ||
var currentNumberOrPosition = isNaN(currentNumberToBaseTen) | ||
? currentValue.charCodeAt(0) - "A".charCodeAt(0) + 10 | ||
: currentValue; | ||
if (is_odd_1.isOdd(i)) { | ||
if ((0, is_odd_1.isOdd)(i)) { | ||
currentNumberOrPosition = currentNumberOrPosition * 2; | ||
@@ -20,0 +20,0 @@ } |
@@ -7,4 +7,4 @@ "use strict"; | ||
var generateCusipWithoutCheckCode = function () { | ||
var randomBaseTenString = generate_random_string_of_base_ten_chars_1.generateRandomStringOfBaseTenChars(); | ||
var randomAlphanumericString = generate_random_string_of_alphanumeric_chars_1.generateRandomStringOfAlphanumericChars(); | ||
var randomBaseTenString = (0, generate_random_string_of_base_ten_chars_1.generateRandomStringOfBaseTenChars)(); | ||
var randomAlphanumericString = (0, generate_random_string_of_alphanumeric_chars_1.generateRandomStringOfAlphanumericChars)(); | ||
return randomBaseTenString + randomAlphanumericString; | ||
@@ -11,0 +11,0 @@ }; |
@@ -7,4 +7,4 @@ "use strict"; | ||
var generateCusip = function () { | ||
var cusip = generate_cusip_without_check_code_1.generateCusipWithoutCheckCode(); | ||
var check = generate_cusip_check_code_1.generateCusipCheckCode(cusip); | ||
var cusip = (0, generate_cusip_without_check_code_1.generateCusipWithoutCheckCode)(); | ||
var check = (0, generate_cusip_check_code_1.generateCusipCheckCode)(cusip); | ||
return cusip + check; | ||
@@ -11,0 +11,0 @@ }; |
@@ -8,3 +8,3 @@ "use strict"; | ||
for (var i = 0; i < 2; i++) { | ||
string = string + generate_random_alphanumeric_1.generateRandomAlphanumeric(); | ||
string = string + (0, generate_random_alphanumeric_1.generateRandomAlphanumeric)(); | ||
} | ||
@@ -11,0 +11,0 @@ return string; |
@@ -8,3 +8,3 @@ "use strict"; | ||
for (var i = 0; i < 6; i++) { | ||
string = string + generate_random_base_ten_number_1.generateRandomBaseTenNumber(); | ||
string = string + (0, generate_random_base_ten_number_1.generateRandomBaseTenNumber)(); | ||
} | ||
@@ -11,0 +11,0 @@ return string; |
{ | ||
"name": "@thomaschaplin/cusip-generator", | ||
"version": "1.0.8", | ||
"version": "1.0.10", | ||
"description": "Generate a valid CUSIP", | ||
@@ -17,3 +17,5 @@ "main": "build/index.js", | ||
"build": "rm -rf ./build && tsc", | ||
"watch": "npm run build -- --watch" | ||
"watch": "npm run build -- --watch", | ||
"pre-push": "./prepush.sh", | ||
"prepare": "husky install" | ||
}, | ||
@@ -37,13 +39,13 @@ "repository": { | ||
"devDependencies": { | ||
"jest": "^26.6.3", | ||
"kelonio": "^0.6.0", | ||
"ts-jest": "^26.5.3", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^14.14.31", | ||
"husky": "^5.1.3", | ||
"typescript": "^4.2.3", | ||
"jest": "^27.3.1", | ||
"kelonio": "^0.7.0", | ||
"ts-jest": "^27.0.7", | ||
"@types/jest": "^27.0.3", | ||
"@types/node": "^16.11.10", | ||
"typescript": "^4.5.2", | ||
"@stryker-mutator/core": "^4.4.1", | ||
"@stryker-mutator/jest-runner": "^4.4.1", | ||
"@stryker-mutator/typescript-checker": "^4.4.1" | ||
"@stryker-mutator/typescript-checker": "^4.4.1", | ||
"husky": "^6.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
42342
192
0