@dazhicheng/utils 1.0.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.
@@ -0,0 +1,2 @@
1
+ "use strict";exports.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},exports.divide=function(t,r){return t/r},exports.multiply=function(t,r){return t*r},exports.subtract=function(t,r){return t-r},exports.sum=function(t,r){return t+r},exports.trim=function(t){return t.trim()};
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/string.ts","../src/math.ts"],"sourcesContent":["export function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nexport function trim(str: string): string {\n return str.trim();\n}","export function sum(a: number, b: number): number {\n return a + b;\n}\n\nexport function multiply(a: number, b: number): number {\n return a * b;\n}\n\nexport function subtract(a: number, b: number): number {\n return a - b;\n}\n\nexport function divide(a: number, b: number): number {\n return a / b;\n}"],"names":["str","charAt","toUpperCase","slice","a","b","trim"],"mappings":"gCAAM,SAAqBA,GACzB,OAAOA,EAAIC,OAAO,GAAGC,cAAgBF,EAAIG,MAAM,EACjD,iBCUM,SAAiBC,EAAWC,GAChC,OAAOD,EAAIC,CACb,mBAVM,SAAmBD,EAAWC,GAClC,OAAOD,EAAIC,CACb,mBAEM,SAAmBD,EAAWC,GAClC,OAAOD,EAAIC,CACb,cAVM,SAAcD,EAAWC,GAC7B,OAAOD,EAAIC,CACb,eDEM,SAAeL,GACnB,OAAOA,EAAIM,MACb"}
@@ -0,0 +1,3 @@
1
+ export * from "./string";
2
+ export * from "./math";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ function n(n){return n.charAt(0).toUpperCase()+n.slice(1)}function r(n){return n.trim()}function t(n,r){return n+r}function u(n,r){return n*r}function e(n,r){return n-r}function c(n,r){return n/r}export{n as capitalize,c as divide,u as multiply,e as subtract,t as sum,r as trim};
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/string.ts","../src/math.ts"],"sourcesContent":["export function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nexport function trim(str: string): string {\n return str.trim();\n}","export function sum(a: number, b: number): number {\n return a + b;\n}\n\nexport function multiply(a: number, b: number): number {\n return a * b;\n}\n\nexport function subtract(a: number, b: number): number {\n return a - b;\n}\n\nexport function divide(a: number, b: number): number {\n return a / b;\n}"],"names":["capitalize","str","charAt","toUpperCase","slice","trim","sum","a","b","multiply","subtract","divide"],"mappings":"AAAM,SAAUA,EAAWC,GACzB,OAAOA,EAAIC,OAAO,GAAGC,cAAgBF,EAAIG,MAAM,EACjD,CAEM,SAAUC,EAAKJ,GACnB,OAAOA,EAAII,MACb,CCNM,SAAUC,EAAIC,EAAWC,GAC7B,OAAOD,EAAIC,CACb,CAEM,SAAUC,EAASF,EAAWC,GAClC,OAAOD,EAAIC,CACb,CAEM,SAAUE,EAASH,EAAWC,GAClC,OAAOD,EAAIC,CACb,CAEM,SAAUG,EAAOJ,EAAWC,GAChC,OAAOD,EAAIC,CACb"}
@@ -0,0 +1,2 @@
1
+ var TtyiMonorepoUtils=function(t){"use strict";return t.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.divide=function(t,n){return t/n},t.multiply=function(t,n){return t*n},t.subtract=function(t,n){return t-n},t.sum=function(t,n){return t+n},t.trim=function(t){return t.trim()},t}({});
2
+ //# sourceMappingURL=index.iife.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.iife.js","sources":["../src/string.ts","../src/math.ts"],"sourcesContent":["export function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nexport function trim(str: string): string {\n return str.trim();\n}","export function sum(a: number, b: number): number {\n return a + b;\n}\n\nexport function multiply(a: number, b: number): number {\n return a * b;\n}\n\nexport function subtract(a: number, b: number): number {\n return a - b;\n}\n\nexport function divide(a: number, b: number): number {\n return a / b;\n}"],"names":["str","charAt","toUpperCase","slice","a","b","trim"],"mappings":"mEAAM,SAAqBA,GACzB,OAAOA,EAAIC,OAAO,GAAGC,cAAgBF,EAAIG,MAAM,EACjD,WCUM,SAAiBC,EAAWC,GAChC,OAAOD,EAAIC,CACb,aAVM,SAAmBD,EAAWC,GAClC,OAAOD,EAAIC,CACb,aAEM,SAAmBD,EAAWC,GAClC,OAAOD,EAAIC,CACb,QAVM,SAAcD,EAAWC,GAC7B,OAAOD,EAAIC,CACb,SDEM,SAAeL,GACnB,OAAOA,EAAIM,MACb"}
package/dist/math.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export declare function sum(a: number, b: number): number;
2
+ export declare function multiply(a: number, b: number): number;
3
+ export declare function subtract(a: number, b: number): number;
4
+ export declare function divide(a: number, b: number): number;
5
+ //# sourceMappingURL=math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../src/math.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD"}
@@ -0,0 +1,3 @@
1
+ export declare function capitalize(str: string): string;
2
+ export declare function trim(str: string): string;
3
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../src/string.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@dazhicheng/utils",
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "module": "./dist/index.esm.js",
8
+ "types": "./dist/index.d.ts",
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "buildOptions": {
13
+ "name": "TtyiMonorepoUtils",
14
+ "formats": [
15
+ "esm",
16
+ "cjs",
17
+ "iife"
18
+ ]
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "test": "echo \"Error: no test specified\" && exit 1"
28
+ }
29
+ }