Subscription/unsubscription seems to work.
This commit is contained in:
parent
d8ee364a4b
commit
e9165838dc
22 changed files with 14939 additions and 196 deletions
|
@ -105,13 +105,6 @@ class InvalidConfirmationForUnsubscriptionError extends InteroperableError {
|
|||
}
|
||||
}
|
||||
|
||||
class SubscriptionNotAllowedError extends InteroperableError {
|
||||
constructor(msg, data) {
|
||||
super('SubscriptionNotAllowedError', msg, data);
|
||||
this.status = 403;
|
||||
}
|
||||
}
|
||||
|
||||
const errorTypes = {
|
||||
InteroperableError,
|
||||
NotLoggedInError,
|
||||
|
@ -129,8 +122,7 @@ const errorTypes = {
|
|||
PermissionDeniedError,
|
||||
InvalidConfirmationForSubscriptionError,
|
||||
InvalidConfirmationForAddressChangeError,
|
||||
InvalidConfirmationForUnsubscriptionError,
|
||||
SubscriptionNotAllowedError
|
||||
InvalidConfirmationForUnsubscriptionError
|
||||
};
|
||||
|
||||
function deserialize(errorObj) {
|
||||
|
|
24
shared/package-lock.json
generated
Normal file
24
shared/package-lock.json
generated
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "mailtrain-shared",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"moment": {
|
||||
"version": "2.20.1",
|
||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.20.1.tgz",
|
||||
"integrity": "sha512-Yh9y73JRljxW5QxN08Fner68eFLxM5ynNOAw2LbIB1YAGeQzZT8QFSUvkAz609Zf+IHhhaUxqZK8dG3W/+HEvg=="
|
||||
},
|
||||
"moment-timezone": {
|
||||
"version": "0.5.14",
|
||||
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.14.tgz",
|
||||
"integrity": "sha1-TrOP+VOLgBCLpGekWPPtQmjM/LE=",
|
||||
"requires": {
|
||||
"moment": "2.20.1"
|
||||
}
|
||||
},
|
||||
"owasp-password-strength-test": {
|
||||
"version": "github:bures/owasp-password-strength-test#50bfcf0035b1468b9d03a00eaf561d4fed4973eb"
|
||||
}
|
||||
}
|
||||
}
|
20
shared/package.json
Normal file
20
shared/package.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "mailtrain-shared",
|
||||
"version": "1.0.0",
|
||||
"description": "Self hosted email newsletter app - shared lib",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Mailtrain-org/mailtrain.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "GPL-3.0",
|
||||
"homepage": "https://mailtrain.org/",
|
||||
"engines": {
|
||||
"node": ">=5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"moment": "^2.18.1",
|
||||
"moment-timezone": "^0.5.13",
|
||||
"owasp-password-strength-test": "github:bures/owasp-password-strength-test"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue