@d-zero/backlog-projects 0.3.4 → 0.4.0

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/README.md CHANGED
@@ -49,7 +49,7 @@ NOTION_TOKEN=secret_xxxxxxxxxxxxxx
49
49
 
50
50
  ## API
51
51
 
52
- ### `assing`
52
+ ### `assign`
53
53
 
54
54
  ```ts
55
55
  function assign(backlog: Backlog, params: Params): Promise<void>;
@@ -62,7 +62,7 @@ type Params = {
62
62
  };
63
63
  ```
64
64
 
65
- ### `createBacklogClient
65
+ ### `createBacklogClient`
66
66
 
67
67
  ```ts
68
68
  function createBacklogClient(): Backlog;
package/dist/assign.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { NotionDB } from '@d-zero/notion';
2
- import { skipHolydayPeriod } from '@d-zero/shared/skip-holyday-period';
2
+ import { skipHolidayPeriod } from '@d-zero/shared/skip-holiday-period';
3
3
  import dayjs from 'dayjs';
4
4
  import { PROJECT_COMMON_TASK_LIST_NOTION_URL } from './define.js';
5
5
  /**
@@ -42,7 +42,7 @@ export async function assign(backlog, params) {
42
42
  let interval = 0;
43
43
  for (const value of data['課題名']) {
44
44
  const days = +(data['工数(人日)']?.[i] || 1) - 1;
45
- const { startDate, dueDate } = skipHolydayPeriod(currentDate, currentDate.add(days, 'day'));
45
+ const { startDate, dueDate } = skipHolidayPeriod(currentDate, currentDate.add(days, 'day'));
46
46
  const start = startDate.format('YYYY-MM-DD');
47
47
  const due = dueDate.format('YYYY-MM-DD');
48
48
  const role = data['担当']?.[i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/backlog-projects",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "description": "A manipulating Backlog projects library",
5
5
  "author": "D-ZERO",
6
6
  "license": "MIT",
@@ -29,13 +29,13 @@
29
29
  "clean": "tsc --build --clean"
30
30
  },
31
31
  "dependencies": {
32
- "@d-zero/notion": "1.0.6",
33
- "@d-zero/shared": "0.8.0",
32
+ "@d-zero/notion": "1.0.7",
33
+ "@d-zero/shared": "0.9.0",
34
34
  "backlog-js": "0.13.4",
35
35
  "dayjs": "1.11.13",
36
36
  "dotenv": "16.5.0",
37
37
  "enquirer": "2.4.1",
38
38
  "minimist": "1.2.8"
39
39
  },
40
- "gitHead": "4e9cc7b87e0fef91b6f2d4edfb66ca9134b2491b"
40
+ "gitHead": "04c6969564182c36ee38ef41e78130936dfa4863"
41
41
  }