@tpmjs/content-calendar-plan 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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -9,11 +9,11 @@ function calculateDateRange(duration) {
9
9
  const durationLower = duration.toLowerCase();
10
10
  if (durationLower.includes("week")) {
11
11
  const weekMatch = durationLower.match(/(\d+)\s*week/);
12
- weeks = weekMatch?.[1] ? Number.parseInt(weekMatch[1]) : 1;
12
+ weeks = weekMatch?.[1] ? Number.parseInt(weekMatch[1], 10) : 1;
13
13
  endDate.setDate(endDate.getDate() + weeks * 7);
14
14
  } else if (durationLower.includes("month")) {
15
15
  const monthMatch = durationLower.match(/(\d+)\s*month/);
16
- const months = monthMatch?.[1] ? Number.parseInt(monthMatch[1]) : 1;
16
+ const months = monthMatch?.[1] ? Number.parseInt(monthMatch[1], 10) : 1;
17
17
  endDate.setMonth(endDate.getMonth() + months);
18
18
  weeks = Math.ceil((endDate.getTime() - startDate.getTime()) / (7 * 24 * 60 * 60 * 1e3));
19
19
  } else if (durationLower.includes("quarter")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpmjs/content-calendar-plan",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Generate content calendar structure with themes, topics, and posting schedule",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  "dist"
21
21
  ],
22
22
  "devDependencies": {
23
- "tsup": "^8.3.5",
23
+ "tsup": "^8.5.1",
24
24
  "typescript": "^5.9.3",
25
25
  "@tpmjs/tsconfig": "0.0.0"
26
26
  },
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "tools": [
43
43
  {
44
- "exportName": "contentCalendarPlanTool",
44
+ "name": "contentCalendarPlanTool",
45
45
  "description": "Generates a structured content calendar with posting schedule, themes, topics, and content types. Organizes content by date, channel, and theme while maintaining consistent posting frequency.",
46
46
  "parameters": [
47
47
  {
@@ -80,7 +80,7 @@
80
80
  ]
81
81
  },
82
82
  "dependencies": {
83
- "ai": "6.0.0-beta.124"
83
+ "ai": "6.0.49"
84
84
  },
85
85
  "scripts": {
86
86
  "build": "tsup",