speedly 1.2.43 → 1.2.44

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.
@@ -7,14 +7,16 @@ exports.put = void 0;
7
7
  const makeOptional_1 = __importDefault(require("../../util/makeOptional"));
8
8
  const yup_1 = require("yup");
9
9
  const paramId = (0, yup_1.object)({
10
- id: (0, yup_1.string)().required('id is required').matches(/^[0-9a-fA-F]{24}$/, 'id is invalid')
10
+ id: (0, yup_1.string)()
11
+ .required("id is required")
12
+ .matches(/^[0-9a-fA-F]{24}$/, "id is invalid"),
11
13
  });
12
14
  const schema = (0, yup_1.object)({
13
- translatedText: (0, yup_1.string)().required('translatedText is required'),
15
+ translatedText: (0, yup_1.string)().required("translatedText is required"),
14
16
  });
15
17
  //? exports
16
18
  const put = {
17
19
  params: paramId,
18
- body: (0, makeOptional_1.default)(schema)
20
+ body: (0, makeOptional_1.default)(schema),
19
21
  };
20
22
  exports.put = put;
@@ -7,14 +7,16 @@ exports.put = void 0;
7
7
  const makeOptional_1 = __importDefault(require("../../util/makeOptional"));
8
8
  const yup_1 = require("yup");
9
9
  const paramId = (0, yup_1.object)({
10
- id: (0, yup_1.string)().required('id is required').matches(/^[0-9a-fA-F]{24}$/, 'id is invalid')
10
+ id: (0, yup_1.string)()
11
+ .required("id is required")
12
+ .matches(/^[0-9a-fA-F]{24}$/, "id is invalid"),
11
13
  });
12
14
  const schema = (0, yup_1.object)({
13
- translatedText: (0, yup_1.string)().required('translatedText is required'),
15
+ translatedText: (0, yup_1.string)().required("translatedText is required"),
14
16
  });
15
17
  //? exports
16
18
  const put = {
17
19
  params: paramId,
18
- body: (0, makeOptional_1.default)(schema)
20
+ body: (0, makeOptional_1.default)(schema),
19
21
  };
20
22
  exports.put = put;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speedly",
3
- "version": "1.2.43",
3
+ "version": "1.2.44",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",