universe-code 0.0.4 → 0.0.6

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,10 @@
1
+ function add(a, b) {
2
+ return a + b;
3
+ }
4
+
5
+ const result = 42;
6
+
7
+ module.exports = {
8
+ add,
9
+ result,
10
+ };
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export function add(a, b) {
2
+ return a + b;
3
+ }
4
+
5
+ export const result = 42;
package/package.json CHANGED
@@ -1,20 +1,29 @@
1
1
  {
2
2
  "name": "universe-code",
3
- "version": "0.0.4",
4
- "description": "",
5
- "homepage": "https://github.com/connectwithfalco/universe-code#readme",
6
- "bugs": {
7
- "url": "https://github.com/connectwithfalco/universe-code/issues"
3
+ "version": "0.0.6",
4
+ "description": "Universal utility functions for all JS frameworks",
5
+ "license": "ISC",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs"
13
+ }
8
14
  },
15
+ "files": [
16
+ "dist"
17
+ ],
9
18
  "repository": {
10
19
  "type": "git",
11
20
  "url": "git+https://github.com/connectwithfalco/universe-code.git"
12
21
  },
13
- "license": "ISC",
14
- "author": "",
15
- "type": "module",
16
- "main": "index.js",
22
+ "bugs": {
23
+ "url": "https://github.com/connectwithfalco/universe-code/issues"
24
+ },
25
+ "homepage": "https://github.com/connectwithfalco/universe-code#readme",
17
26
  "scripts": {
18
- "test": "echo \"Error: no test specified\" && exit 1"
27
+ "test": "echo \"No tests yet\""
19
28
  }
20
29
  }
package/index.js DELETED
@@ -1,3 +0,0 @@
1
- export default function greet(name) {
2
- return `Hello, ${name}!`;
3
- }