@wessberg/stringutil
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -0,1 +1,10 @@ | ||
<a name="1.0.11"></a> | ||
## 1.0.11 (2017-10-22) | ||
* 1.0.11 ([9f1a622](https://github.com/wessberg/StringUtil/commit/9f1a622)) | ||
* Bumped deps. Added an 'unquote' method ([e8b9fec](https://github.com/wessberg/StringUtil/commit/e8b9fec)) | ||
* Bumped version ([155b0f3](https://github.com/wessberg/StringUtil/commit/155b0f3)) | ||
<a name="1.0.10"></a> | ||
@@ -2,0 +11,0 @@ ## 1.0.10 (2017-08-20) |
@@ -27,2 +27,3 @@ export interface IStringUtil { | ||
takeFromAfter(str: string, from: string): string; | ||
unquote(str: string): string; | ||
} |
@@ -7,2 +7,8 @@ import { IStringUtil } from "./i-string-util"; | ||
/** | ||
* Unquotes a quoted string | ||
* @param {string} str | ||
* @returns {string} | ||
*/ | ||
unquote(str: string): string; | ||
/** | ||
* Returns true if the string is in camelCase | ||
@@ -9,0 +15,0 @@ * @param {string} str |
@@ -6,2 +6,10 @@ /** | ||
/** | ||
* Unquotes a quoted string | ||
* @param {string} str | ||
* @returns {string} | ||
*/ | ||
unquote(str) { | ||
return this.isQuoted(str) ? str.slice(1, str.length - 1) : str; | ||
} | ||
/** | ||
* Returns true if the string is in camelCase | ||
@@ -8,0 +16,0 @@ * @param {string} str |
@@ -27,2 +27,3 @@ export interface IStringUtil { | ||
takeFromAfter(str: string, from: string): string; | ||
unquote(str: string): string; | ||
} |
@@ -7,2 +7,8 @@ import { IStringUtil } from "./i-string-util"; | ||
/** | ||
* Unquotes a quoted string | ||
* @param {string} str | ||
* @returns {string} | ||
*/ | ||
unquote(str: string): string; | ||
/** | ||
* Returns true if the string is in camelCase | ||
@@ -9,0 +15,0 @@ * @param {string} str |
@@ -17,2 +17,10 @@ (function (factory) { | ||
/** | ||
* Unquotes a quoted string | ||
* @param {string} str | ||
* @returns {string} | ||
*/ | ||
unquote(str) { | ||
return this.isQuoted(str) ? str.slice(1, str.length - 1) : str; | ||
} | ||
/** | ||
* Returns true if the string is in camelCase | ||
@@ -19,0 +27,0 @@ * @param {string} str |
{ | ||
"name": "@wessberg/stringutil", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "A class for performing simple operations on strings.", | ||
@@ -57,9 +57,9 @@ "repository": { | ||
"ava": "^0.22.0", | ||
"conventional-changelog-cli": "latest", | ||
"conventional-changelog-cli": "^1.3.4", | ||
"husky": "^0.14.3", | ||
"tslint": "^5.6.0", | ||
"typescript": "^2.5.1" | ||
"tslint": "^5.8.0", | ||
"typescript": "^2.5.3" | ||
}, | ||
"dependencies": { | ||
"tslib": "^1.7.1" | ||
"tslib": "^1.8.0" | ||
}, | ||
@@ -66,0 +66,0 @@ "main": "./dist/umd/index.js", |
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
56830
1008
Updatedtslib@^1.8.0