@react-email/button 0.0.11 → 0.0.13

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/dist/index.js CHANGED
@@ -65,7 +65,7 @@ function convertToPx(value) {
65
65
  if (typeof value === "number") {
66
66
  return value;
67
67
  }
68
- const matches = value.match(/^([\d.]+)(px|em|rem|%)$/);
68
+ const matches = /^([\d.]+)(px|em|rem|%)$/.exec(value);
69
69
  if (matches && matches.length === 3) {
70
70
  const numValue = parseFloat(matches[1]);
71
71
  const unit = matches[2];
package/dist/index.mjs CHANGED
@@ -42,7 +42,7 @@ function convertToPx(value) {
42
42
  if (typeof value === "number") {
43
43
  return value;
44
44
  }
45
- const matches = value.match(/^([\d.]+)(px|em|rem|%)$/);
45
+ const matches = /^([\d.]+)(px|em|rem|%)$/.exec(value);
46
46
  if (matches && matches.length === 3) {
47
47
  const numValue = parseFloat(matches[1]);
48
48
  const unit = matches[2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/button",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "A link that is styled to look like a button",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -12,7 +12,7 @@
12
12
  "exports": {
13
13
  ".": {
14
14
  "import": {
15
- "types": "./dist/index.d.ts",
15
+ "types": "./dist/index.d.mts",
16
16
  "default": "./dist/index.mjs"
17
17
  },
18
18
  "require": {
@@ -22,14 +22,6 @@
22
22
  }
23
23
  },
24
24
  "license": "MIT",
25
- "scripts": {
26
- "build": "tsup src/index.ts --format esm,cjs --dts --external react",
27
- "clean": "rm -rf dist",
28
- "dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch",
29
- "lint": "eslint .",
30
- "test:watch": "vitest",
31
- "test": "vitest run"
32
- },
33
25
  "repository": {
34
26
  "type": "git",
35
27
  "url": "https://github.com/resendlabs/react-email.git",
@@ -47,12 +39,20 @@
47
39
  },
48
40
  "devDependencies": {
49
41
  "@babel/preset-react": "7.22.5",
50
- "@react-email/render": "workspace:*",
51
- "eslint-config-custom": "workspace:*",
52
- "tsconfig": "workspace:*",
53
- "typescript": "5.1.6"
42
+ "typescript": "5.1.6",
43
+ "eslint-config-custom": "0.0.0",
44
+ "@react-email/render": "0.0.10",
45
+ "tsconfig": "0.0.0"
54
46
  },
55
47
  "publishConfig": {
56
48
  "access": "public"
49
+ },
50
+ "scripts": {
51
+ "build": "tsup src/index.ts --format esm,cjs --dts --external react",
52
+ "clean": "rm -rf dist",
53
+ "dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch",
54
+ "lint": "eslint .",
55
+ "test:watch": "vitest",
56
+ "test": "vitest run"
57
57
  }
58
- }
58
+ }