@aimidy/util 1.0.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 @@
1
+ hi
@@ -0,0 +1,3 @@
1
+ declare function add(a: number, b: number): number;
2
+
3
+ export { add };
@@ -0,0 +1,3 @@
1
+ declare function add(a: number, b: number): number;
2
+
3
+ export { add };
package/dist/index.js ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ add: () => add
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ function add(a, b) {
27
+ return a + b;
28
+ }
29
+ console.log(add(3, 5));
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ add
33
+ });
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export function add(a: number, b: number): number {\r\n return a + b;\r\n}\r\n\r\nconsole.log(add(3, 5)); //output: 8"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,IAAI,GAAW,GAAmB;AAC9C,SAAO,IAAI;AACf;AAEA,QAAQ,IAAI,IAAI,GAAG,CAAC,CAAC;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ // src/index.ts
2
+ function add(a, b) {
3
+ return a + b;
4
+ }
5
+ console.log(add(3, 5));
6
+ export {
7
+ add
8
+ };
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export function add(a: number, b: number): number {\r\n return a + b;\r\n}\r\n\r\nconsole.log(add(3, 5)); //output: 8"],"mappings":";AAAO,SAAS,IAAI,GAAW,GAAmB;AAC9C,SAAO,IAAI;AACf;AAEA,QAAQ,IAAI,IAAI,GAAG,CAAC,CAAC;","names":[]}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@aimidy/util",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsup",
13
+ "test": "jest"
14
+ },
15
+ "keywords": [
16
+ "demo",
17
+ "typescript",
18
+ "npm"
19
+ ],
20
+ "author": "aimidy",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@types/jest": "^29.5.12",
24
+ "jest": "^29.7.0",
25
+ "ts-jest": "^29.1.2",
26
+ "ts-node": "^10.9.2",
27
+ "tsup": "^8.0.2",
28
+ "typescript": "^5.3.3"
29
+ }
30
+ }