extra-utils 5.1.1 → 5.2.0

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/README.md CHANGED
@@ -98,6 +98,8 @@ function isntChar(val: unknown): boolean
98
98
 
99
99
  function isURLString(text: string): boolean
100
100
  function isntURLString(text: string): boolean
101
+
102
+ function toString(val: unknown): string
101
103
  ```
102
104
 
103
105
  #### removeExtraIndents
@@ -5,3 +5,4 @@ export * from './remove-blank-lines.js';
5
5
  export * from './remove-extra-indents.js';
6
6
  export * from './remove-leading-blank-lines.js';
7
7
  export * from './remove-trailing-blank-lines.js';
8
+ export * from './to-string.js';
@@ -5,4 +5,5 @@ export * from './remove-blank-lines.js';
5
5
  export * from './remove-extra-indents.js';
6
6
  export * from './remove-leading-blank-lines.js';
7
7
  export * from './remove-trailing-blank-lines.js';
8
+ export * from './to-string.js';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/string/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,kCAAkC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/string/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,kCAAkC,CAAA;AAChD,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ export declare function toString(val: unknown): string;
@@ -0,0 +1,4 @@
1
+ export function toString(val) {
2
+ return `${val}`;
3
+ }
4
+ //# sourceMappingURL=to-string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-string.js","sourceRoot":"","sources":["../../src/string/to-string.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,GAAY;IACnC,OAAO,GAAG,GAAG,EAAE,CAAA;AACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-utils",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "description": "Utilities for JavaScript and Typescript",
5
5
  "files": [
6
6
  "src",
@@ -36,30 +36,30 @@
36
36
  "devDependencies": {
37
37
  "@blackglory/jest-resolver": "^0.3.0",
38
38
  "@blackglory/pass": "^1.1.0",
39
- "@commitlint/cli": "^17.4.4",
40
- "@commitlint/config-conventional": "^17.4.4",
41
- "@types/jest": "^29.4.0",
42
- "@types/jsdom": "^21.1.0",
43
- "@types/lodash-es": "^4.17.6",
44
- "@typescript-eslint/eslint-plugin": "^5.52.0",
45
- "@typescript-eslint/parser": "^5.52.0",
39
+ "@commitlint/cli": "^17.6.1",
40
+ "@commitlint/config-conventional": "^17.6.1",
41
+ "@types/jest": "^29.5.0",
42
+ "@types/jsdom": "^21.1.1",
43
+ "@types/lodash-es": "^4.17.7",
44
+ "@typescript-eslint/eslint-plugin": "^5.58.0",
45
+ "@typescript-eslint/parser": "^5.58.0",
46
46
  "cross-env": "^7.0.3",
47
- "eslint": "^8.34.0",
47
+ "eslint": "^8.38.0",
48
48
  "husky": "^4.3.8",
49
- "jest": "^29.4.3",
50
- "jest-resolve": "^29.4.3",
49
+ "jest": "^29.5.0",
50
+ "jest-resolve": "^29.5.0",
51
51
  "npm-run-all": "^4.1.5",
52
52
  "rimraf": "^3.0.2",
53
53
  "standard-version": "^9.5.0",
54
- "ts-jest": "^29.0.5",
54
+ "ts-jest": "^29.1.0",
55
55
  "ts-patch": "^2.1.0",
56
- "tsd": "^0.25.0",
56
+ "tsd": "^0.28.1",
57
57
  "tslib": "^2.5.0",
58
58
  "typescript": "4.8",
59
59
  "typescript-transform-paths": "^3.4.6"
60
60
  },
61
61
  "dependencies": {
62
- "justypes": "^4.1.0",
62
+ "justypes": "^4.2.0",
63
63
  "lodash-es": "^4.17.21"
64
64
  }
65
65
  }
@@ -5,3 +5,4 @@ export * from './remove-blank-lines.js'
5
5
  export * from './remove-extra-indents.js'
6
6
  export * from './remove-leading-blank-lines.js'
7
7
  export * from './remove-trailing-blank-lines.js'
8
+ export * from './to-string.js'
@@ -0,0 +1,3 @@
1
+ export function toString(val: unknown): string {
2
+ return `${val}`
3
+ }