iweather-react 0.1.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 ADDED
@@ -0,0 +1,15 @@
1
+ # iweather-react
2
+
3
+ To install dependencies:
4
+
5
+ ```bash
6
+ bun install
7
+ ```
8
+
9
+ To run:
10
+
11
+ ```bash
12
+ bun run index.ts
13
+ ```
14
+
15
+ This project was created using `bun init` in bun v1.2.9. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
package/dist/index.cjs ADDED
@@ -0,0 +1,3 @@
1
+ var{defineProperty:h,getOwnPropertyNames:j,getOwnPropertyDescriptor:l}=Object,m=Object.prototype.hasOwnProperty;var i=new WeakMap,n=(d)=>{var c=i.get(d),e;if(c)return c;if(c=h({},"__esModule",{value:!0}),d&&typeof d==="object"||typeof d==="function")j(d).map((f)=>!m.call(c,f)&&h(c,f,{get:()=>d[f],enumerable:!(e=l(d,f))||e.enumerable}));return i.set(d,c),c};var o=(d,c)=>{for(var e in c)h(d,e,{get:c[e],enumerable:!0,configurable:!0,set:(f)=>c[e]=()=>f})};var s={};o(s,{sum:()=>q,multiply:()=>r});module.exports=n(s);function q(d,c){return d+c}function r(d,c){return console.log("multiply",d,c),d*c}
2
+
3
+ //# debugId=41199253A196633D64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": [
5
+ "/**\n * pkg-a:求和工具函数\n */\nexport function sum(a: number, b: number): number {\n return a + b;\n}\n\n/**\n * pkg-a:求积工具函数\n */\nexport function multiply(a: number, b: number): number {\n console.log('multiply', a, b);\n return a * b;\n}\n"
6
+ ],
7
+ "mappings": "sgBAGO,SAAS,CAAG,CAAC,EAAW,EAAmB,CAChD,OAAO,EAAI,EAMN,SAAS,CAAQ,CAAC,EAAW,EAAmB,CAErD,OADA,QAAQ,IAAI,WAAY,EAAG,CAAC,EACrB,EAAI",
8
+ "debugId": "41199253A196633D64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * pkg-a:求和工具函数
3
+ */
4
+ export declare function sum(a: number, b: number): number;
5
+ /**
6
+ * pkg-a:求积工具函数
7
+ */
8
+ export declare function multiply(a: number, b: number): number;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAGrD"}
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * pkg-a:求和工具函数
3
+ */
4
+ export function sum(a, b) {
5
+ return a + b;
6
+ }
7
+ /**
8
+ * pkg-a:求积工具函数
9
+ */
10
+ export function multiply(a, b) {
11
+ console.log('multiply', a, b);
12
+ return a * b;
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,CAAS,EAAE,CAAS;IACtC,OAAO,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,CAAS,EAAE,CAAS;IAC3C,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,OAAO,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ function e(c,d){return c+d}function f(c,d){return console.log("multiply",c,d),c*d}export{e as sum,f as multiply};
2
+
3
+ //# debugId=6E8FA65CA5D08DC064756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": [
5
+ "/**\n * pkg-a:求和工具函数\n */\nexport function sum(a: number, b: number): number {\n return a + b;\n}\n\n/**\n * pkg-a:求积工具函数\n */\nexport function multiply(a: number, b: number): number {\n console.log('multiply', a, b);\n return a * b;\n}\n"
6
+ ],
7
+ "mappings": "AAGO,SAAS,CAAG,CAAC,EAAW,EAAmB,CAChD,OAAO,EAAI,EAMN,SAAS,CAAQ,CAAC,EAAW,EAAmB,CAErD,OADA,QAAQ,IAAI,WAAY,EAAG,CAAC,EACrB,EAAI",
8
+ "debugId": "6E8FA65CA5D08DC064756E2164756E21",
9
+ "names": []
10
+ }
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "iweather-react",
3
+ "version": "0.1.0",
4
+ "description": "工具函数包",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "files": ["dist"],
9
+ "exports": {
10
+ ".": {
11
+ "require": "./dist/index.js",
12
+ "import": "./dist/index.mjs",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "scripts": {
17
+ "build": "rm -rf dist && bun x tsc && bun run build.ts",
18
+ "prepublishOnly": "bun run build"
19
+ },
20
+ "license": "MIT",
21
+ "publishConfig": {
22
+ "access": "public"
23
+ }
24
+ }