bunruntestpkg 0.3.0 → 0.4.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 +54 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12 -0
- package/package.json +1 -1
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var import_node_module = require("node:module");
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
7
|
+
var __toCommonJS = (from) => {
|
|
8
|
+
var entry = __moduleCache.get(from), desc;
|
|
9
|
+
if (entry)
|
|
10
|
+
return entry;
|
|
11
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function")
|
|
13
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
}));
|
|
17
|
+
__moduleCache.set(from, entry);
|
|
18
|
+
return entry;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, {
|
|
23
|
+
get: all[name],
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
set: (newValue) => all[name] = () => newValue
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var exports_src = {};
|
|
32
|
+
__export(exports_src, {
|
|
33
|
+
subtract: () => subtract,
|
|
34
|
+
multiply: () => multiply,
|
|
35
|
+
greet: () => greet,
|
|
36
|
+
divide: () => divide,
|
|
37
|
+
add: () => add
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(exports_src);
|
|
40
|
+
function greet(name) {
|
|
41
|
+
return `Hello, ${name}!`;
|
|
42
|
+
}
|
|
43
|
+
function add(a, b) {
|
|
44
|
+
return a + b;
|
|
45
|
+
}
|
|
46
|
+
function subtract(a, b) {
|
|
47
|
+
return a - b;
|
|
48
|
+
}
|
|
49
|
+
function multiply(a, b) {
|
|
50
|
+
return a * b;
|
|
51
|
+
}
|
|
52
|
+
function divide(a, b) {
|
|
53
|
+
return a / b;
|
|
54
|
+
}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare function greet(name: string): string;
|
|
2
|
+
declare function add(a: number, b: number): number;
|
|
3
|
+
declare function subtract(a: number, b: number): number;
|
|
4
|
+
declare function multiply(a: number, b: number): number;
|
|
5
|
+
declare function divide(a: number, b: number): number;
|
|
6
|
+
export { subtract, multiply, greet, divide, add };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
declare function greet(name: string): string;
|
|
2
2
|
declare function add(a: number, b: number): number;
|
|
3
|
-
|
|
3
|
+
declare function subtract(a: number, b: number): number;
|
|
4
|
+
declare function multiply(a: number, b: number): number;
|
|
5
|
+
declare function divide(a: number, b: number): number;
|
|
6
|
+
export { subtract, multiply, greet, divide, add };
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,19 @@ function greet(name) {
|
|
|
5
5
|
function add(a, b) {
|
|
6
6
|
return a + b;
|
|
7
7
|
}
|
|
8
|
+
function subtract(a, b) {
|
|
9
|
+
return a - b;
|
|
10
|
+
}
|
|
11
|
+
function multiply(a, b) {
|
|
12
|
+
return a * b;
|
|
13
|
+
}
|
|
14
|
+
function divide(a, b) {
|
|
15
|
+
return a / b;
|
|
16
|
+
}
|
|
8
17
|
export {
|
|
18
|
+
subtract,
|
|
19
|
+
multiply,
|
|
9
20
|
greet,
|
|
21
|
+
divide,
|
|
10
22
|
add
|
|
11
23
|
};
|