@necto/strings 1.4.0 → 1.6.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.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of o(e))!p.call(r,s)&&s!==t&&n(r,s,{get:()=>e[s],enumerable:!(a=i(e,s))||a.enumerable});return r};var f=r=>c(n({},"__esModule",{value:!0}),r);var b={};l(b,{kebabCase:()=>u});module.exports=f(b);function u(r,e=!1){let t=r.replace(/\p{Lu}/gu,a=>`-${a.toLowerCase()}`);return e?t:t.startsWith("-")?t.slice(1):t}u.reverse=r=>r.replace(/-\p{Ll}/gu,e=>e.slice(1).toUpperCase());0&&(module.exports={kebabCase});
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) Corinvo, LLC. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ declare function kebabCase(str: string, keepLeadingDash?: boolean): string;
9
+ declare namespace kebabCase {
10
+ var reverse: (str: string) => string;
11
+ }
12
+
13
+ export { kebabCase };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of o(e))!p.call(r,s)&&s!==t&&n(r,s,{get:()=>e[s],enumerable:!(a=i(e,s))||a.enumerable});return r};var f=r=>c(n({},"__esModule",{value:!0}),r);var b={};l(b,{kebabCase:()=>u});module.exports=f(b);function u(r,e=!1){let t=r.replace(/\p{Lu}/gu,a=>`-${a.toLowerCase()}`);return e?t:t.startsWith("-")?t.slice(1):t}u.reverse=r=>r.replace(/-\p{Ll}/gu,e=>e.slice(1).toUpperCase());0&&(module.exports={kebabCase});
1
+ function s(r,t=!1){let e=r.replace(/\p{Lu}/gu,a=>`-${a.toLowerCase()}`);return t?e:e.startsWith("-")?e.slice(1):e}s.reverse=r=>r.replace(/-\p{Ll}/gu,t=>t.slice(1).toUpperCase());export{s as kebabCase};
package/package.json CHANGED
@@ -1,14 +1,22 @@
1
1
  {
2
2
  "name": "@necto/strings",
3
- "version": "1.4.0",
3
+ "version": "1.6.1",
4
4
  "description": "Necto's library providing string manipulation methods.",
5
5
  "files": [
6
6
  "dist",
7
7
  "README.md"
8
8
  ],
9
- "types": "dist/index.d.ts",
10
- "main": "./dist/index.js",
11
- "module": "./dist/index.mjs",
9
+ "type": "module",
10
+ "types": "./dist/index.d.ts",
11
+ "main": "./dist/index.cjs",
12
+ "module": "./dist/index.js",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs"
18
+ }
19
+ },
12
20
  "author": "Corinvo OSS Team",
13
21
  "license": "MIT",
14
22
  "devDependencies": {