@semapps/auth 1.2.4 → 1.2.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/services/mail.js
CHANGED
|
@@ -5,6 +5,8 @@ import MailService from 'moleculer-mail';
|
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
// @ts-expect-error TS(1470): The 'import.meta' meta-property is not allowed in ... Remove this comment to see the full error message
|
|
7
7
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
// The templates are at the root of the package, but this file also runs from dist/ (one level deeper)
|
|
9
|
+
const templateFolder = path.join(__dirname, __dirname.includes(`${path.sep}dist${path.sep}`) ? '../../templates' : '../templates');
|
|
8
10
|
const AuthMailSchema = {
|
|
9
11
|
name: 'auth.mail',
|
|
10
12
|
mixins: [MailService],
|
|
@@ -13,7 +15,7 @@ const AuthMailSchema = {
|
|
|
13
15
|
locale: 'en',
|
|
14
16
|
frontUrl: null
|
|
15
17
|
},
|
|
16
|
-
templateFolder
|
|
18
|
+
templateFolder,
|
|
17
19
|
from: null,
|
|
18
20
|
transport: null
|
|
19
21
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail.js","sourceRoot":"","sources":["../../services/mail.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,OAAO,MAAM,UAAU,CAAC;AAC/B,qIAAqI;AACrI,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,qIAAqI;AACrI,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"mail.js","sourceRoot":"","sources":["../../services/mail.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,OA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4B,KAAK,EAAE;qBAClG;iBACF,EACD;oBACE,SAAS,EAAE,GAAG;iBACf,CACF,CAAC;YACJ,CAAC;SACF;KACF;IACD,OAAO,EAAE;QACP,iBAAiB,CAAC,UAAU;YAC1B,QAAQ,UAAU,EAAE,CAAC;gBACnB,KAAK,IAAI;oBACP,OAAO,OAAO,CAAC;gBACjB,KAAK,IAAI;oBACP,OAAO,OAAO,CAAC;gBACjB;oBACE,OAAO,OAAO,CAAC;YACnB,CAAC;QACH,CAAC;KACF;CACsB,CAAC;AAE1B,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../index.ts"],"errors":true,"version":"5.9.
|
|
1
|
+
{"root":["../index.ts"],"errors":true,"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semapps/auth",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Authentification module for SemApps",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Virtual Assembly",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@semapps/ldp": "1.2.
|
|
9
|
-
"@semapps/middlewares": "1.2.
|
|
10
|
-
"@semapps/mime-types": "1.2.
|
|
11
|
-
"@semapps/triplestore": "1.2.
|
|
8
|
+
"@semapps/ldp": "1.2.6",
|
|
9
|
+
"@semapps/middlewares": "1.2.6",
|
|
10
|
+
"@semapps/mime-types": "1.2.6",
|
|
11
|
+
"@semapps/triplestore": "1.2.6",
|
|
12
12
|
"bcrypt": "^5.0.1",
|
|
13
13
|
"express-session": "^1.17.0",
|
|
14
14
|
"jsonwebtoken": "^9.0.2",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"prepack": "node ../../scripts/switch-main-to-publish.js .",
|
|
40
40
|
"postpack": "node ../../scripts/revert-main-from-publish.js ."
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8573abfe2389bd14a30d94ad3a86817c20cf204c",
|
|
43
43
|
"xDevMain": "./index.ts"
|
|
44
44
|
}
|
package/services/mail.ts
CHANGED
|
@@ -7,6 +7,11 @@ import { fileURLToPath } from 'url';
|
|
|
7
7
|
|
|
8
8
|
// @ts-expect-error TS(1470): The 'import.meta' meta-property is not allowed in ... Remove this comment to see the full error message
|
|
9
9
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
// The templates are at the root of the package, but this file also runs from dist/ (one level deeper)
|
|
11
|
+
const templateFolder = path.join(
|
|
12
|
+
__dirname,
|
|
13
|
+
__dirname.includes(`${path.sep}dist${path.sep}`) ? '../../templates' : '../templates'
|
|
14
|
+
);
|
|
10
15
|
|
|
11
16
|
const AuthMailSchema = {
|
|
12
17
|
name: 'auth.mail' as const,
|
|
@@ -16,7 +21,7 @@ const AuthMailSchema = {
|
|
|
16
21
|
locale: 'en',
|
|
17
22
|
frontUrl: null
|
|
18
23
|
},
|
|
19
|
-
templateFolder
|
|
24
|
+
templateFolder,
|
|
20
25
|
from: null,
|
|
21
26
|
transport: null
|
|
22
27
|
},
|