proto-toolkit 1.0.1 → 1.0.2

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
@@ -44,7 +44,7 @@ After importing, you can directly use the added methods on strings.
44
44
  Include the script tag before your custom script:
45
45
 
46
46
  ```html
47
- <script src="https://cdn.jsdelivr.net/npm/proto-toolkit/dist/proto-toolkit.umd.js"></script>
47
+ <script src="https://cdn.jsdelivr.net/npm/proto-toolkit/dist/proto-toolkit.umd.min.js"></script>
48
48
  <script>
49
49
  let name = 'Kousik Chowdhury';
50
50
  console.log(name.mask());
@@ -110,4 +110,3 @@ https://kousikchowdhury.in
110
110
 
111
111
  **Proto-Toolkit Docs**
112
112
  https://proto-toolkit.kousikchowdhury.in
113
-
@@ -0,0 +1 @@
1
+ !function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(t){return t[0].toUpperCase()+t.slice(1).toLowerCase()}String.prototype.mask||(String.prototype.mask=function(){const t=this.trim();if(t.length<=4)return t;const e=t.slice(0,2),n=t.slice(-2),r=t.length-4;return e+"*".repeat(r)+n}),String.prototype.toAbbreviatedName||(String.prototype.toAbbreviatedName=function(){if("string"!=typeof this)throw new TypeError("Input must be a string");const e=this.trim().split(/\s+/).filter(Boolean);if(0===e.length)return"";if(1===e.length)return t(e[0]);const n=e.pop();return`${e.map(t=>t[0].toUpperCase()+".").join(" ")} ${t(n)}`})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-toolkit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A lightweight JavaScript utility toolkit",
5
5
  "type": "module",
6
6
  "main": "dist/proto-toolkit.cjs.js",
@@ -21,6 +21,7 @@
21
21
  "author": "Kousik Chowdhury",
22
22
  "license": "MIT",
23
23
  "devDependencies": {
24
+ "@rollup/plugin-terser": "^0.4.4",
24
25
  "rollup": "^4.59.0"
25
26
  }
26
27
  }