jaypie 0.1.1 → 0.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jaypie",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"author": "Finlayson Studio",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"test:spec:mongoose.package": "vitest run ./src/__tests__/mongoose.package.spec.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@jaypie/core": "^0.
|
|
20
|
+
"@jaypie/core": "^0.4.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"eslint": "^8.57.0",
|
|
@@ -33,12 +33,16 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@jaypie/aws": "^0.1.1",
|
|
36
|
+
"@jaypie/lambda": "^0.1.1",
|
|
36
37
|
"@jaypie/mongoose": "^0.1.1"
|
|
37
38
|
},
|
|
38
39
|
"peerDependenciesMeta": {
|
|
39
40
|
"@jaypie/aws": {
|
|
40
41
|
"optional": true
|
|
41
42
|
},
|
|
43
|
+
"@jaypie/lambda": {
|
|
44
|
+
"optional": true
|
|
45
|
+
},
|
|
42
46
|
"@jaypie/mongoose": {
|
|
43
47
|
"optional": true
|
|
44
48
|
}
|
|
@@ -100,5 +100,11 @@ describe("Dynamic Export Function", () => {
|
|
|
100
100
|
await result.named();
|
|
101
101
|
expect(mockNamedFunction).toHaveBeenCalled();
|
|
102
102
|
});
|
|
103
|
+
it.todo("Returns the scalar", async () => {
|
|
104
|
+
const exports = ["scalar"];
|
|
105
|
+
const result = dynamicExport({ exports, moduleImport: MOCK.MODULE });
|
|
106
|
+
expect(result.scalar).not.toBeFunction();
|
|
107
|
+
expect(result.scalar).toBe(mockScalar);
|
|
108
|
+
});
|
|
103
109
|
});
|
|
104
110
|
});
|
package/src/index.js
CHANGED