@checkdigit/time 1.0.0 → 1.1.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/dist/date-fns/_lib/defaultOptions/index.d.ts +1 -1
- package/dist/date-fns/_lib/format/formatters/index.d.ts +1 -1
- package/dist/date-fns/_lib/format/longFormatters/index.d.ts +1 -1
- package/dist/date-fns/intlFormat/index.d.ts +3 -3
- package/dist/date-fns/locale/_lib/buildLocalizeFn/index.d.ts +9 -9
- package/dist/date-fns/locale/types.d.ts +23 -23
- package/dist/date-fns/parse/_lib/types.d.ts +2 -2
- package/dist/date-fns/types.d.ts +10 -10
- package/dist/date-fns-tz/types.d.ts +1 -1
- package/dist/date-fns-tz.spec.d.ts +1 -0
- package/dist/date-fns.spec.d.ts +1 -0
- package/dist/format-utc.spec.d.ts +1 -0
- package/dist/holidays/index.d.ts +1 -0
- package/dist/holidays/united-states/federal-reserve-bank/add-us-federal-reserve-bank-business-days.d.ts +14 -0
- package/dist/holidays/united-states/federal-reserve-bank/add-us-federal-reserve-bank-business-days.spec.d.ts +1 -0
- package/dist/holidays/united-states/federal-reserve-bank/get-all-us-federal-reserve-bank-holidays.d.ts +18 -0
- package/dist/holidays/united-states/federal-reserve-bank/get-all-us-federal-reserve-bank-holidays.spec.d.ts +1 -0
- package/dist/holidays/united-states/federal-reserve-bank/index.d.ts +4 -0
- package/dist/holidays/united-states/federal-reserve-bank/is-us-federal-reserve-bank-closed.d.ts +14 -0
- package/dist/holidays/united-states/federal-reserve-bank/is-us-federal-reserve-bank-closed.spec.d.ts +1 -0
- package/dist/holidays/united-states/federal-reserve-bank/plain-date.d.ts +5 -0
- package/dist/holidays/united-states/federal-reserve-bank/subtract-us-federal-reserve-bank-business-days.spec.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/instant.d.ts +1 -1
- package/dist/instant.spec.d.ts +1 -0
- package/dist/now.spec.d.ts +1 -0
- package/package.json +9 -6
- package/.github/workflows/ci.yml +0 -72
- package/.github/workflows/codeql-analysis.yml +0 -31
- package/.github/workflows/coverage.yml +0 -46
- package/SECURITY.md +0 -14
package/dist/instant.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkdigit/time",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Standard time handling",
|
|
5
5
|
"typings": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,12 +18,15 @@
|
|
|
18
18
|
"url": "https://github.com/checkdigit/time/issues"
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/checkdigit/time#readme",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
21
24
|
"devDependencies": {
|
|
22
|
-
"@checkdigit/eslint-config": "7.
|
|
23
|
-
"@checkdigit/jest-config": "^2.
|
|
24
|
-
"@checkdigit/prettier-config": "^3.
|
|
25
|
-
"@checkdigit/typescript-config": "^3.
|
|
26
|
-
"@js-temporal/polyfill": "^0.4.
|
|
25
|
+
"@checkdigit/eslint-config": "7.4.0",
|
|
26
|
+
"@checkdigit/jest-config": "^2.1.0",
|
|
27
|
+
"@checkdigit/prettier-config": "^3.1.0",
|
|
28
|
+
"@checkdigit/typescript-config": "^3.2.0",
|
|
29
|
+
"@js-temporal/polyfill": "^0.4.3",
|
|
27
30
|
"rimraf": "^3.0.2",
|
|
28
31
|
"ts-node": "^10.9.1"
|
|
29
32
|
},
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- 'main'
|
|
7
|
-
|
|
8
|
-
env:
|
|
9
|
-
CI: true
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
pullRequestBuild:
|
|
13
|
-
name: Pull Request Build
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
strategy:
|
|
16
|
-
matrix:
|
|
17
|
-
node-version: [16.x, 18.x]
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v3
|
|
20
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
21
|
-
uses: actions/setup-node@v3
|
|
22
|
-
with:
|
|
23
|
-
node-version: ${{ matrix.node-version }}
|
|
24
|
-
cache: 'npm'
|
|
25
|
-
- name: Install dependencies
|
|
26
|
-
run: npm ci --ignore-scripts
|
|
27
|
-
env:
|
|
28
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
29
|
-
- name: Audit Signatures
|
|
30
|
-
run: npm audit signatures
|
|
31
|
-
env:
|
|
32
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
33
|
-
- name: Compile
|
|
34
|
-
run: npm run ci:compile
|
|
35
|
-
- name: Check Code Style
|
|
36
|
-
run: npm run ci:style
|
|
37
|
-
- name: Perform Linting
|
|
38
|
-
run: npm run ci:lint
|
|
39
|
-
- name: Run Tests
|
|
40
|
-
run: npm run ci:test
|
|
41
|
-
|
|
42
|
-
branchBuild:
|
|
43
|
-
runs-on: ubuntu-latest
|
|
44
|
-
name: Branch Build
|
|
45
|
-
strategy:
|
|
46
|
-
matrix:
|
|
47
|
-
node-version: [16.x, 18.x]
|
|
48
|
-
steps:
|
|
49
|
-
- uses: actions/checkout@v3
|
|
50
|
-
with:
|
|
51
|
-
ref: ${{ github.event.pull_request.head.sha }}
|
|
52
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
53
|
-
uses: actions/setup-node@v3
|
|
54
|
-
with:
|
|
55
|
-
node-version: ${{ matrix.node-version }}
|
|
56
|
-
cache: 'npm'
|
|
57
|
-
- name: Install dependencies
|
|
58
|
-
run: npm ci --ignore-scripts
|
|
59
|
-
env:
|
|
60
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
61
|
-
- name: Audit Signatures
|
|
62
|
-
run: npm audit signatures
|
|
63
|
-
env:
|
|
64
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
65
|
-
- name: Compile
|
|
66
|
-
run: npm run ci:compile
|
|
67
|
-
- name: Check Code Style
|
|
68
|
-
run: npm run ci:style
|
|
69
|
-
- name: Perform Linting
|
|
70
|
-
run: npm run ci:lint
|
|
71
|
-
- name: Run Tests
|
|
72
|
-
run: npm run ci:test
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: 'CodeQL'
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: ['main']
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: ['main']
|
|
8
|
-
schedule:
|
|
9
|
-
- cron: '22 7 * * 1'
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
analyze:
|
|
13
|
-
name: Analyze
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
permissions:
|
|
16
|
-
actions: read
|
|
17
|
-
contents: read
|
|
18
|
-
security-events: write
|
|
19
|
-
strategy:
|
|
20
|
-
fail-fast: false
|
|
21
|
-
matrix:
|
|
22
|
-
language: ['javascript']
|
|
23
|
-
steps:
|
|
24
|
-
- name: Checkout repository
|
|
25
|
-
uses: actions/checkout@v3
|
|
26
|
-
- name: Initialize CodeQL
|
|
27
|
-
uses: github/codeql-action/init@v2
|
|
28
|
-
with:
|
|
29
|
-
languages: ${{ matrix.language }}
|
|
30
|
-
- name: Perform CodeQL Analysis
|
|
31
|
-
uses: github/codeql-action/analyze@v2
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
name: Coverage
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- 'main'
|
|
7
|
-
|
|
8
|
-
env:
|
|
9
|
-
CI: true
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
branchBuild:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
name: Branch Build
|
|
15
|
-
strategy:
|
|
16
|
-
matrix:
|
|
17
|
-
node-version: [16.x]
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v3
|
|
20
|
-
with:
|
|
21
|
-
ref: ${{ github.event.pull_request.head.sha }}
|
|
22
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
23
|
-
uses: actions/setup-node@v3
|
|
24
|
-
with:
|
|
25
|
-
node-version: ${{ matrix.node-version }}
|
|
26
|
-
cache: 'npm'
|
|
27
|
-
- name: Install dependencies
|
|
28
|
-
run: npm ci --ignore-scripts
|
|
29
|
-
env:
|
|
30
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
31
|
-
- name: Calculate Code Coverage
|
|
32
|
-
run: npm run ci:coverage
|
|
33
|
-
- name: Create Coverage Report for base branch
|
|
34
|
-
run: |
|
|
35
|
-
mv coverage/lcov.info coverage/lcov_head.info
|
|
36
|
-
git fetch
|
|
37
|
-
git checkout origin/${{ github.event.pull_request.base.ref }}
|
|
38
|
-
npm ci --ignore-scripts && npm run ci:coverage
|
|
39
|
-
env:
|
|
40
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
41
|
-
- name: Post Coverage Report
|
|
42
|
-
uses: checkdigit/github-actions/coverage-reporter@main
|
|
43
|
-
with:
|
|
44
|
-
lcov-file: 'coverage/lcov_head.info'
|
|
45
|
-
lcov-base: 'coverage/lcov.info'
|
|
46
|
-
delete-old-comments: true
|
package/SECURITY.md
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
These versions of `@checkdigit/time` are currently being supported with security updates.
|
|
6
|
-
|
|
7
|
-
| Version | Supported |
|
|
8
|
-
| ------- | ------------------ |
|
|
9
|
-
| \>= 1.x | :white_check_mark: |
|
|
10
|
-
| < 1.0 | :x: |
|
|
11
|
-
|
|
12
|
-
## Reporting a Vulnerability
|
|
13
|
-
|
|
14
|
-
Please create an issue at https://github.com/checkdigit/time/issues
|