jaypie 0.1.7 → 0.1.8
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.8",
|
|
4
4
|
"author": "Finlayson Studio",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
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.5.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@jaypie/testkit": "^1.0.
|
|
23
|
+
"@jaypie/testkit": "^1.0.1",
|
|
24
24
|
"eslint": "^8.57.0",
|
|
25
25
|
"eslint-config-prettier": "^9.1.0",
|
|
26
26
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"vitest": "^1.4.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@jaypie/aws": "^0.1.
|
|
37
|
-
"@jaypie/lambda": "^0.1.
|
|
38
|
-
"@jaypie/mongoose": "^0.1.
|
|
36
|
+
"@jaypie/aws": "^0.1.2",
|
|
37
|
+
"@jaypie/lambda": "^0.1.6",
|
|
38
|
+
"@jaypie/mongoose": "^0.1.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@jaypie/aws": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigurationError, JAYPIE,
|
|
1
|
+
import { ConfigurationError, JAYPIE, log } from "@jaypie/core";
|
|
2
2
|
|
|
3
3
|
//
|
|
4
4
|
//
|
|
@@ -12,9 +12,6 @@ async function dynamicImport(module) {
|
|
|
12
12
|
// eslint-disable-next-line import/no-unresolved
|
|
13
13
|
_importedModule = await import(module);
|
|
14
14
|
} catch (error) {
|
|
15
|
-
moduleLogger
|
|
16
|
-
.with({ lib: JAYPIE.LIB.JAYPIE })
|
|
17
|
-
.error(`[jaypie] ${module} could not be imported`);
|
|
18
15
|
if (process.env.NODE_ENV === "test") {
|
|
19
16
|
if (!_importedModule) {
|
|
20
17
|
// eslint-disable-next-line no-console
|
|
@@ -61,9 +58,9 @@ export default async ({
|
|
|
61
58
|
// Attempt to import the module
|
|
62
59
|
return await dynamicImport(moduleImport);
|
|
63
60
|
} catch (error) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
log
|
|
62
|
+
.lib({ lib: JAYPIE.LIB.JAYPIE })
|
|
63
|
+
.trace(`[jaypie] ${moduleImport} could not be imported; continuing`);
|
|
67
64
|
}
|
|
68
65
|
// Return
|
|
69
66
|
const result = {};
|