yata-fetch 2.0.1 → 2.1.5

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/.editorconfig ADDED
@@ -0,0 +1,10 @@
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ insert_final_newline = true
6
+
7
+ [*.{js,json,yml}]
8
+ charset = utf-8
9
+ indent_style = space
10
+ indent_size = 2
package/.eslintrc.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "env": {
3
3
  "browser": true,
4
- "es2021": true
4
+ "es2021": true,
5
+ "node": true
5
6
  },
6
7
  "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
7
8
  "parser": "@typescript-eslint/parser",
package/.gitattributes ADDED
@@ -0,0 +1,4 @@
1
+ /.yarn/** linguist-vendored
2
+ /.yarn/releases/* binary
3
+ /.yarn/plugins/**/* binary
4
+ /.pnp.* binary linguist-generated
@@ -9,15 +9,24 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - name: Checkout
12
- uses: actions/checkout@v2
12
+ uses: actions/checkout@v3
13
13
  - name: Setup Node
14
- uses: actions/setup-node@v2
14
+ uses: actions/setup-node@v3
15
15
  with:
16
- node-version: '16.16.0'
16
+ node-version: '20.0.0'
17
17
  registry-url: 'https://registry.npmjs.org'
18
- - name: Install dependencies and build 🔧
19
- run: npm install && npm run build
20
- - name: Publish package on NPM 📦
18
+ - name: Install
19
+ run: yarn install
20
+ - name: Build 🔧
21
+ run: yarn build
22
+ - name: Configure npm
23
+ run: |
24
+ cat << EOF > "$HOME/.npmrc"
25
+ //registry.npmjs.org/:_authToken=$NPM_TOKEN
26
+ EOF
27
+ env:
28
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29
+ - name: Publish 📦
21
30
  run: npm publish
22
31
  env:
23
32
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -2,142 +2,34 @@ name: Test
2
2
 
3
3
  on:
4
4
  pull_request:
5
+ branches:
6
+ - '*'
7
+ push:
5
8
  branches:
6
9
  - master
7
10
 
8
- env:
9
- cache_version: v1
10
- node-version: 16.16.0
11
-
12
11
  jobs:
13
- dependencies:
14
- name: Install dependencies
15
- runs-on: ubuntu-latest
16
- steps:
17
- - uses: actions/checkout@v2
18
- - name: Use Node.js ${{ matrix.node-version }}
19
- uses: actions/setup-node@v2
20
- with:
21
- node-version: ${{ env.node-version }}
22
- - name: Set lockfile_hash
23
- run: echo "lockfile_hash=${{ hashFiles('**/package-lock.json') }}" >> $GITHUB_ENV
24
- - name: Restore node_modules cache
25
- uses: actions/cache@v2
26
- id: node-modules-cache
27
- with:
28
- path: ./node_modules
29
- key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ env.lockfile_hash }}
30
- - name: Get npm cache directory path
31
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
32
- id: npm-cache-dir-path
33
- run: echo "::set-output name=dir::~/.npm/_cacache"
34
- - name: Restore npm cache
35
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
36
- uses: actions/cache@v2
37
- id: npm-cache
38
- with:
39
- path: ${{ steps.npm-cache-dir-path.outputs.dir }}
40
- key: ${{ runner.os }}-npm-${{ env.cache_version }}-${{ env.lockfile_hash }}
41
- restore-keys: ${{ runner.os }}-npm-${{ env.cache_version }}-
42
- - name: Install dependencies
43
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
44
- run: npm ci
45
- lint_scripts:
46
- name: Lint JavaScript
47
- needs: dependencies
48
- runs-on: ubuntu-latest
49
- steps:
50
- - uses: actions/checkout@v2
51
- - name: Use Node.js ${{ matrix.node-version }}
52
- uses: actions/setup-node@v2
53
- with:
54
- node-version: ${{ env.node-version }}
55
- - name: Restore node_modules cache
56
- uses: actions/cache@v2
57
- id: node-modules-cache
58
- with:
59
- path: ./node_modules
60
- key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
61
- - name: Lint
62
- run: npm run lint:eslint
63
- lint_format:
64
- name: Lint Formatting
65
- needs: dependencies
66
- runs-on: ubuntu-latest
67
- steps:
68
- - uses: actions/checkout@v2
69
- - name: Use Node.js ${{ matrix.node-version }}
70
- uses: actions/setup-node@v2
71
- with:
72
- node-version: ${{ env.node-version }}
73
- - name: Restore node_modules cache
74
- uses: actions/cache@v2
75
- id: node-modules-cache
76
- with:
77
- path: ./node_modules
78
- key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
79
- - name: Lint format
80
- run: npm run lint:fmt
81
- lint_types:
82
- name: Lint Typings
83
- needs: dependencies
84
- runs-on: ubuntu-latest
85
- steps:
86
- - uses: actions/checkout@v2
87
- - name: Use Node.js ${{ matrix.node-version }}
88
- uses: actions/setup-node@v2
89
- with:
90
- node-version: ${{ env.node-version }}
91
- - name: Restore node_modules cache
92
- uses: actions/cache@v2
93
- id: node-modules-cache
94
- with:
95
- path: ./node_modules
96
- key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
97
- - name: Lint
98
- run: npm run lint:ts
99
- build:
100
- name: Build application
101
- needs:
102
- - dependencies
103
- - lint_types
12
+ build-lint-test:
104
13
  runs-on: ubuntu-latest
14
+
105
15
  steps:
106
- - uses: actions/checkout@v2
107
- - name: Use Node.js ${{ matrix.node-version }}
108
- uses: actions/setup-node@v2
109
- with:
110
- node-version: ${{ env.node-version }}
111
- - name: Restore node_modules cache
112
- uses: actions/cache@v2
113
- id: node-modules-cache
114
- with:
115
- path: ./node_modules
116
- key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
117
- - name: Build app
118
- run: npm run build
119
- test_unit:
120
- name: Unit Tests
121
- needs:
122
- - build
123
- - lint_scripts
124
- - lint_format
125
- - lint_types
126
- runs-on: ubuntu-latest
127
- continue-on-error: false
128
- outputs:
129
- test-results: ${{ steps.status.outputs.test-results }}
130
- steps:
131
- - uses: actions/checkout@v2
132
- - name: Use Node.js ${{ matrix.node-version }}
133
- uses: actions/setup-node@v2
134
- with:
135
- node-version: ${{ env.node-version }}
136
- - name: Restore node_modules cache
137
- uses: actions/cache@v2
138
- id: node-modules-cache
139
- with:
140
- path: ./node_modules
141
- key: ${{ runner.os }}-node-modules-${{ env.cache_version }}-${{ hashFiles('**/package-lock.json') }}
142
- - name: Run tests
143
- run: npm run test
16
+ - name: Checkout
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Install
20
+ run: yarn install
21
+
22
+ - name: Lint Scripts
23
+ run: yarn lint:eslint
24
+
25
+ - name: Lint Format
26
+ run: yarn lint:fmt
27
+
28
+ - name: Lint Types
29
+ run: yarn lint:ts
30
+
31
+ - name: Unit Test
32
+ run: yarn test
33
+
34
+ - name: Build
35
+ run: yarn build
package/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 16.16.0
1
+ nodejs 20.0.0