@live-change/secret-link-service 0.9.194 → 0.9.196
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.js +2 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -137,8 +137,8 @@ definition.trigger({
|
|
|
137
137
|
},
|
|
138
138
|
async execute({ secret }, context, emit) {
|
|
139
139
|
const linkData = await Link.indexObjectGet('bySecretCode', secret)
|
|
140
|
-
if(!linkData) throw
|
|
141
|
-
if(new Date().toISOString() > linkData.expire) throw "linkExpired"
|
|
140
|
+
if(!linkData) throw app.logicError("linkNotFound")
|
|
141
|
+
if(new Date().toISOString() > linkData.expire) throw app.logicError("linkExpired")
|
|
142
142
|
return linkData.authentication
|
|
143
143
|
}
|
|
144
144
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/secret-link-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.196",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.9.
|
|
25
|
+
"@live-change/framework": "^0.9.196",
|
|
26
26
|
"nodemailer": "^6.7.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7f358a1cc16fb35069f6ce3f897412232f766843"
|
|
29
29
|
}
|