string-converter
Advanced tools
Comparing version 1.1.0 to 1.2.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convert = void 0; | ||
const tslib_1 = require("tslib"); | ||
const stringConverter_1 = require("./lib/stringConverter"); | ||
exports.convert = stringConverter_1.convert; | ||
Object.defineProperty(exports, "convert", { enumerable: true, get: function () { return stringConverter_1.convert; } }); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convertToBoolean = void 0; | ||
const booleanValues = new Map([ | ||
@@ -4,0 +5,0 @@ ["true", true], |
@@ -0,1 +1,2 @@ | ||
import { StringLike } from "../../types"; | ||
/** | ||
@@ -6,2 +7,2 @@ * Converts a `StringLike` value to `number` | ||
*/ | ||
export declare const convertToNumber: (value: string | import("../../types").StringConvertible | undefined) => number | undefined; | ||
export declare const convertToNumber: (value: StringLike | undefined) => number | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convertToNumber = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Converts a `StringLike` value to `number` |
@@ -0,1 +1,2 @@ | ||
import { StringLike } from "../../types"; | ||
/** | ||
@@ -6,2 +7,2 @@ * Converts a `StringLike` value to `string` | ||
*/ | ||
export declare const convertToString: (value: string | import("../../types").StringConvertible | undefined) => string | undefined; | ||
export declare const convertToString: (value: StringLike | undefined) => string | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convertToString = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Converts a `StringLike` value to `string` |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var convertToBoolean_1 = require("./convertToBoolean"); | ||
exports.convertToBoolean = convertToBoolean_1.convertToBoolean; | ||
Object.defineProperty(exports, "convertToBoolean", { enumerable: true, get: function () { return convertToBoolean_1.convertToBoolean; } }); | ||
var convertToNumber_1 = require("./convertToNumber"); | ||
exports.convertToNumber = convertToNumber_1.convertToNumber; | ||
Object.defineProperty(exports, "convertToNumber", { enumerable: true, get: function () { return convertToNumber_1.convertToNumber; } }); | ||
var convertToString_1 = require("./convertToString"); | ||
exports.convertToString = convertToString_1.convertToString; | ||
Object.defineProperty(exports, "convertToString", { enumerable: true, get: function () { return convertToString_1.convertToString; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -9,2 +9,2 @@ #!/usr/bin/env node | ||
*/ | ||
export declare const convert: (value: string | StringConvertible | undefined) => StringConvertedType; | ||
export declare const convert: (value: StringLike | undefined) => StringConvertedType; |
#!/usr/bin/env node | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convert = void 0; | ||
const converters_1 = require("./converters"); | ||
@@ -5,0 +6,0 @@ /** |
{ | ||
"name": "string-converter", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Converts strings to other javascript types", | ||
@@ -49,32 +49,32 @@ "main": "dist/src/index.js", | ||
"lodash-es": "^4.17.15", | ||
"tslib": "^1.11.1" | ||
"tslib": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@types/jest": "^25.1.4", | ||
"@types/jest": "^26.0.0", | ||
"@types/lodash-es": "^4.17.3", | ||
"@typescript-eslint/eslint-plugin": "^2.23.0", | ||
"@typescript-eslint/parser": "^2.23.0", | ||
"@typescript-eslint/eslint-plugin": "^3.2.0", | ||
"@typescript-eslint/parser": "^3.2.0", | ||
"commitlint": "^8.3.5", | ||
"coveralls": "^3.0.9", | ||
"eslint": "^6.8.0", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.2.0", | ||
"eslint-config-airbnb": "^18.1.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.21.2", | ||
"eslint-plugin-jest": "^23.13.2", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"eslint-plugin-react": "^7.19.0", | ||
"eslint-plugin-react-hooks": "^2.5.0", | ||
"husky": "^4.2.3", | ||
"jest": "^25.1.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"eslint-plugin-react": "^7.20.0", | ||
"eslint-plugin-react-hooks": "^4.0.4", | ||
"husky": "^4.2.5", | ||
"jest": "^26.0.1", | ||
"jest-extended": "^0.11.5", | ||
"lint-staged": "^10.0.8", | ||
"lint-staged": "^10.2.9", | ||
"minimist": "^1.2.5", | ||
"prettier": "^1.19.1", | ||
"prettier": "^2.0.5", | ||
"rimraf": "^3.0.2", | ||
"shx": "^0.3.2", | ||
"ts-jest": "^25.2.1", | ||
"typedoc": "^0.16.11", | ||
"typescript": "^3.8.3" | ||
"ts-jest": "^26.1.0", | ||
"typedoc": "^0.17.7", | ||
"typescript": "^3.9.5" | ||
}, | ||
@@ -81,0 +81,0 @@ "husky": { |
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
13532
125
+ Addedtslib@2.8.1(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0