@ibiliaze/stringman 1.2.0 → 1.2.1

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 CHANGED
@@ -1,6 +1,3 @@
1
- declare const _default: {
2
- superTrim: (stringData: any) => any;
3
- megaTrim: (stringData: any) => any;
4
- dp: (int: any, i: any) => number;
5
- };
6
- export default _default;
1
+ export declare const superTrim: (stringData: any) => any;
2
+ export declare const megaTrim: (stringData: any) => any;
3
+ export declare const dp: (int: any, i: any) => number;
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- superTrim: (stringData) => stringData.replace(/\s\s+/g, " ").trim(),
5
- megaTrim: (stringData) => stringData.replace(/\s\s+/g, ""),
6
- dp: (int, i) => (typeof int === "number" ? +int.toFixed(i) : 0),
7
- };
3
+ exports.dp = exports.megaTrim = exports.superTrim = void 0;
4
+ const superTrim = (stringData) => stringData.replace(/\s\s+/g, " ").trim();
5
+ exports.superTrim = superTrim;
6
+ const megaTrim = (stringData) => stringData.replace(/\s\s+/g, "");
7
+ exports.megaTrim = megaTrim;
8
+ const dp = (int, i) => (typeof int === "number" ? +int.toFixed(i) : 0);
9
+ exports.dp = dp;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ibiliaze/stringman",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "pub": "npm publish --access public",
10
- "git": "git add .; git commit -m 'changes'; git tag -a v1.2.0 -m 'v1.2.0'; git push origin v1.2.0; git push"
10
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.2.1 -m 'v1.2.1'; git push origin v1.2.1; git push"
11
11
  },
12
12
  "author": "Ibi Hasanli",
13
13
  "license": "ISC",
package/src/index.ts CHANGED
@@ -1,5 +1,3 @@
1
- export default {
2
- superTrim: (stringData) => stringData.replace(/\s\s+/g, " ").trim(),
3
- megaTrim: (stringData) => stringData.replace(/\s\s+/g, ""),
4
- dp: (int, i) => (typeof int === "number" ? +int.toFixed(i) : 0),
5
- };
1
+ export const superTrim = (stringData) => stringData.replace(/\s\s+/g, " ").trim();
2
+ export const megaTrim = (stringData) => stringData.replace(/\s\s+/g, "");
3
+ export const dp = (int, i) => (typeof int === "number" ? +int.toFixed(i) : 0);