@iexec/web3mail 0.1.0 → 0.1.1

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.
@@ -11,7 +11,7 @@ import { MAX_DESIRED_APP_ORDER_PRICE, MAX_DESIRED_WORKERPOOL_ORDER_PRICE, WEB3_M
11
11
  import { WorkflowError } from '../utils/errors.js';
12
12
  import { generateSecureUniqueId } from '../utils/generateUniqueId.js';
13
13
  import { checkProtectedDataValidity } from '../utils/subgraphQuery.js';
14
- import { addressOrEnsSchema, emailSubjectSchema, throwIfMissing, } from '../utils/validators.js';
14
+ import { addressOrEnsSchema, emailContentSchema, emailSubjectSchema, throwIfMissing, } from '../utils/validators.js';
15
15
  export const sendEmail = ({ graphQLClient = throwIfMissing(), iexec = throwIfMissing(), emailSubject, emailContent, protectedData, }) => __awaiter(void 0, void 0, void 0, function* () {
16
16
  var _a, _b, _c, _d, _e;
17
17
  try {
@@ -23,7 +23,7 @@ export const sendEmail = ({ graphQLClient = throwIfMissing(), iexec = throwIfMis
23
23
  .required()
24
24
  .label('emailSubject')
25
25
  .validateSync(emailSubject);
26
- const vEmailContent = emailSubjectSchema()
26
+ const vEmailContent = emailContentSchema()
27
27
  .required()
28
28
  .label('emailContent')
29
29
  .validateSync(emailContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iexec/web3mail",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "This product enables users to confidentially store data–such as mail address, documents, personal information ...",
5
5
  "main": "./dist/bundle.js",
6
6
  "type": "module",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "graphql-request": "^6.1.0",
64
- "iexec": "^8.1.0",
64
+ "iexec": "^8.1.5",
65
65
  "yup": "^1.1.1"
66
66
  }
67
67
  }
@@ -9,6 +9,7 @@ import { generateSecureUniqueId } from '../utils/generateUniqueId.js';
9
9
  import { checkProtectedDataValidity } from '../utils/subgraphQuery.js';
10
10
  import {
11
11
  addressOrEnsSchema,
12
+ emailContentSchema,
12
13
  emailSubjectSchema,
13
14
  throwIfMissing,
14
15
  } from '../utils/validators.js';
@@ -37,7 +38,7 @@ export const sendEmail = async ({
37
38
  .required()
38
39
  .label('emailSubject')
39
40
  .validateSync(emailSubject);
40
- const vEmailContent = emailSubjectSchema()
41
+ const vEmailContent = emailContentSchema()
41
42
  .required()
42
43
  .label('emailContent')
43
44
  .validateSync(emailContent);