dymo-api 1.0.44 → 1.0.46
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.
|
@@ -29,7 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.getRandom = exports.sendEmail = exports.isValidData = void 0;
|
|
30
30
|
const axios_1 = __importDefault(require("axios"));
|
|
31
31
|
const react_1 = __importDefault(require("react"));
|
|
32
|
-
|
|
32
|
+
//@ts-ignore
|
|
33
|
+
const { twi } = require("tw-to-css");
|
|
33
34
|
const config_1 = __importStar(require("../config"));
|
|
34
35
|
const render_1 = require("@react-email/render");
|
|
35
36
|
const customError = (code, message) => {
|
|
@@ -37,7 +38,7 @@ const customError = (code, message) => {
|
|
|
37
38
|
};
|
|
38
39
|
const convertTailwindToInlineCss = (htmlContent) => {
|
|
39
40
|
return htmlContent.replace(/class="([^"]+)"/g, (match, classList) => {
|
|
40
|
-
return match.replace(classList, twi(classList, { minify: true, merge: true }));
|
|
41
|
+
return match.replace("class", "style").replace(classList, twi(classList, { minify: true, merge: true }));
|
|
41
42
|
});
|
|
42
43
|
};
|
|
43
44
|
/**
|
|
@@ -29,7 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.getRandom = exports.sendEmail = exports.isValidData = void 0;
|
|
30
30
|
const axios_1 = __importDefault(require("axios"));
|
|
31
31
|
const react_1 = __importDefault(require("react"));
|
|
32
|
-
|
|
32
|
+
//@ts-ignore
|
|
33
|
+
const { twi } = require("tw-to-css");
|
|
33
34
|
const config_1 = __importStar(require("../config"));
|
|
34
35
|
const render_1 = require("@react-email/render");
|
|
35
36
|
const customError = (code, message) => {
|
|
@@ -37,7 +38,7 @@ const customError = (code, message) => {
|
|
|
37
38
|
};
|
|
38
39
|
const convertTailwindToInlineCss = (htmlContent) => {
|
|
39
40
|
return htmlContent.replace(/class="([^"]+)"/g, (match, classList) => {
|
|
40
|
-
return match.replace(classList, twi(classList, { minify: true, merge: true }));
|
|
41
|
+
return match.replace("class", "style").replace(classList, twi(classList, { minify: true, merge: true }));
|
|
41
42
|
});
|
|
42
43
|
};
|
|
43
44
|
/**
|