i18query 1.0.1 → 1.0.2
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/index.cjs +6 -0
- package/index.js +3 -10
- package/package.json +12 -2
package/index.cjs
ADDED
package/index.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
// index.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @param {string} name - The name of the user to greet.
|
|
6
|
-
*/
|
|
7
|
-
function logGreeting(name) {
|
|
8
|
-
console.log(`Hello, ${name}! Welcome to my first npm package.`);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
module.exports = { logGreeting };
|
|
2
|
+
export function logGreeting(name) {
|
|
3
|
+
console.log(`Hello, ${name}!`);
|
|
4
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "i18query",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Reserved name",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,5 +9,15 @@
|
|
|
9
9
|
"keywords": [],
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
|
-
"type": "
|
|
12
|
+
"type": "module",
|
|
13
|
+
"files": [
|
|
14
|
+
"index.js",
|
|
15
|
+
"index.cjs"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./index.js",
|
|
20
|
+
"require": "./index.cjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
13
23
|
}
|