@anmiles/google-api-wrapper 17.0.7 → 17.0.9
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/.eslintrc.js +5 -0
- package/.github/workflows/ci.yml +94 -0
- package/CHANGELOG.md +8 -0
- package/README.md +4 -2
- package/package.json +14 -13
- package/.gitlab-ci.yml +0 -117
package/.eslintrc.js
CHANGED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
install:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
container:
|
|
18
|
+
image: node:18.14
|
|
19
|
+
timeout-minutes: 30
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/cache@v4
|
|
23
|
+
with:
|
|
24
|
+
path: node_modules
|
|
25
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
26
|
+
lookup-only: true
|
|
27
|
+
- run: npm ci
|
|
28
|
+
|
|
29
|
+
build:
|
|
30
|
+
needs: install
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
container:
|
|
33
|
+
image: node:18.14
|
|
34
|
+
timeout-minutes: 30
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- uses: actions/cache@v4
|
|
38
|
+
with:
|
|
39
|
+
path: node_modules
|
|
40
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
41
|
+
- run: npm run build:ci
|
|
42
|
+
|
|
43
|
+
lint:
|
|
44
|
+
needs: build
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
container:
|
|
47
|
+
image: node:18.14
|
|
48
|
+
timeout-minutes: 30
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
- uses: actions/cache@v4
|
|
52
|
+
with:
|
|
53
|
+
path: node_modules
|
|
54
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
55
|
+
- run: npm run lint
|
|
56
|
+
|
|
57
|
+
test:
|
|
58
|
+
needs: build
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
container:
|
|
61
|
+
image: node:18.14
|
|
62
|
+
timeout-minutes: 30
|
|
63
|
+
steps:
|
|
64
|
+
- uses: actions/checkout@v4
|
|
65
|
+
- uses: actions/cache@v4
|
|
66
|
+
with:
|
|
67
|
+
path: node_modules
|
|
68
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
69
|
+
- uses: actions/cache@v4
|
|
70
|
+
with:
|
|
71
|
+
path: coverage
|
|
72
|
+
key: "coverage-${{ hashFiles('package-lock.json') }}"
|
|
73
|
+
lookup-only: true
|
|
74
|
+
- run: npm run test:ci
|
|
75
|
+
|
|
76
|
+
coverage:
|
|
77
|
+
needs:
|
|
78
|
+
- lint
|
|
79
|
+
- test
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
container:
|
|
82
|
+
image: node:18.14
|
|
83
|
+
timeout-minutes: 30
|
|
84
|
+
steps:
|
|
85
|
+
- uses: actions/checkout@v4
|
|
86
|
+
- uses: actions/cache@v4
|
|
87
|
+
with:
|
|
88
|
+
path: node_modules
|
|
89
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
90
|
+
- uses: actions/cache@v4
|
|
91
|
+
with:
|
|
92
|
+
path: coverage
|
|
93
|
+
key: "coverage-${{ hashFiles('package-lock.json') }}"
|
|
94
|
+
- run: npm run test:report:coverage
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [17.0.9](../../tags/v17.0.9) - 2024-01-31
|
|
9
|
+
### Changed
|
|
10
|
+
- Migrate to GitHub
|
|
11
|
+
|
|
12
|
+
## [17.0.8](../../tags/v17.0.8) - 2024-01-29
|
|
13
|
+
### Changed
|
|
14
|
+
- Explicitly specify ignores from .gitignore in .eslintrc.js
|
|
15
|
+
|
|
8
16
|
## [17.0.7](../../tags/v17.0.7) - 2024-01-28
|
|
9
17
|
### Changed
|
|
10
18
|
- Update `out-url`
|
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# @anmiles/google-api-wrapper
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Wrapper around googleapis for getting data shortly
|
|
4
|
+
- provides quick interface for getting google API data
|
|
5
|
+
- incapsulates auth process
|
|
6
|
+
- combines getting paged items in one call
|
|
5
7
|
----
|
|
6
8
|
|
|
7
9
|
## Installation
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anmiles/google-api-wrapper",
|
|
3
|
-
"version": "17.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "17.0.9",
|
|
4
|
+
"description": "Wrapper around googleapis for getting data shortly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"google",
|
|
7
7
|
"api",
|
|
8
8
|
"auth"
|
|
9
9
|
],
|
|
10
10
|
"author": "Anatoliy Oblaukhov",
|
|
11
|
-
"homepage": "https://
|
|
12
|
-
"repository": "
|
|
11
|
+
"homepage": "https://github.com/anmiles/google-api-wrapper",
|
|
12
|
+
"repository": "github:anmiles/google-api-wrapper",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=18.14.2"
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"main": "dist/index.js",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "rimraf dist && tsc -p ./tsconfig.build.json && copyfiles -u 1 src/templates/* dist/",
|
|
20
|
-
"
|
|
20
|
+
"build:ci": "tsc -noEmit -p ./tsconfig.build.json",
|
|
21
|
+
"lint": "eslint --ext .js,.ts .",
|
|
21
22
|
"lint:fix": "npm run lint -- --fix",
|
|
22
23
|
"test": "jest --verbose",
|
|
23
24
|
"test:coverage": "npm test -- --coverage",
|
|
@@ -27,21 +28,21 @@
|
|
|
27
28
|
"test:report:coverage": "nyc report --nycrc-path ./coverage.config.js -t ./coverage --report-dir ./coverage"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@anmiles/logger": "^6.0.
|
|
31
|
-
"@anmiles/prototypes": "^9.0.
|
|
32
|
-
"@anmiles/sleep": "^3.0.
|
|
31
|
+
"@anmiles/logger": "^6.0.2",
|
|
32
|
+
"@anmiles/prototypes": "^9.0.2",
|
|
33
|
+
"@anmiles/sleep": "^3.0.2",
|
|
33
34
|
"googleapis": "^130.0.0",
|
|
34
35
|
"out-url": "^1.2.2",
|
|
35
36
|
"server-destroy": "^1.0.1"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@anmiles/eslint-config": "^5.0.
|
|
39
|
-
"@anmiles/tsconfig": "^2.0.
|
|
39
|
+
"@anmiles/eslint-config": "^5.0.2",
|
|
40
|
+
"@anmiles/tsconfig": "^2.0.1",
|
|
40
41
|
"@types/event-emitter": "^0.3.5",
|
|
41
42
|
"@types/jest": "^29.5.11",
|
|
42
43
|
"@types/server-destroy": "^1.0.3",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
44
|
-
"@typescript-eslint/parser": "^6.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
45
|
+
"@typescript-eslint/parser": "^6.20.0",
|
|
45
46
|
"copyfiles": "^2.4.1",
|
|
46
47
|
"eslint": "^8.56.0",
|
|
47
48
|
"eslint-plugin-align-assignments": "^1.1.2",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"jest": "^29.7.0",
|
|
52
53
|
"nyc": "^15.1.0",
|
|
53
54
|
"rimraf": "^5.0.5",
|
|
54
|
-
"ts-jest": "^29.1.
|
|
55
|
+
"ts-jest": "^29.1.2",
|
|
55
56
|
"typescript": "^5.3.3"
|
|
56
57
|
}
|
|
57
58
|
}
|
package/.gitlab-ci.yml
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
default:
|
|
2
|
-
image: node:18.14
|
|
3
|
-
|
|
4
|
-
stages:
|
|
5
|
-
- setup
|
|
6
|
-
- build
|
|
7
|
-
- test
|
|
8
|
-
- coverage
|
|
9
|
-
- deploy
|
|
10
|
-
|
|
11
|
-
install:
|
|
12
|
-
stage: setup
|
|
13
|
-
cache:
|
|
14
|
-
key:
|
|
15
|
-
files:
|
|
16
|
-
- package-lock.json
|
|
17
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
18
|
-
paths:
|
|
19
|
-
- node_modules
|
|
20
|
-
policy: pull-push
|
|
21
|
-
script:
|
|
22
|
-
- npm ci
|
|
23
|
-
only:
|
|
24
|
-
- main
|
|
25
|
-
- merge_requests
|
|
26
|
-
|
|
27
|
-
build:
|
|
28
|
-
stage: build
|
|
29
|
-
cache:
|
|
30
|
-
key:
|
|
31
|
-
files:
|
|
32
|
-
- package-lock.json
|
|
33
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
34
|
-
paths:
|
|
35
|
-
- node_modules
|
|
36
|
-
policy: pull
|
|
37
|
-
script:
|
|
38
|
-
- npm run build
|
|
39
|
-
artifacts:
|
|
40
|
-
paths:
|
|
41
|
-
- dist/
|
|
42
|
-
only:
|
|
43
|
-
- main
|
|
44
|
-
- merge_requests
|
|
45
|
-
|
|
46
|
-
lint:
|
|
47
|
-
stage: test
|
|
48
|
-
cache:
|
|
49
|
-
key:
|
|
50
|
-
files:
|
|
51
|
-
- package-lock.json
|
|
52
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
53
|
-
paths:
|
|
54
|
-
- node_modules
|
|
55
|
-
policy: pull
|
|
56
|
-
script:
|
|
57
|
-
- npm run lint
|
|
58
|
-
only:
|
|
59
|
-
- main
|
|
60
|
-
- merge_requests
|
|
61
|
-
|
|
62
|
-
test:
|
|
63
|
-
stage: test
|
|
64
|
-
cache:
|
|
65
|
-
- key:
|
|
66
|
-
files:
|
|
67
|
-
- package-lock.json
|
|
68
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
69
|
-
paths:
|
|
70
|
-
- node_modules
|
|
71
|
-
policy: pull
|
|
72
|
-
- key: ${CI_COMMIT_REF_SLUG}_coverage
|
|
73
|
-
paths:
|
|
74
|
-
- coverage/**/*
|
|
75
|
-
policy: push
|
|
76
|
-
script:
|
|
77
|
-
- npm run test:ci
|
|
78
|
-
only:
|
|
79
|
-
- main
|
|
80
|
-
- merge_requests
|
|
81
|
-
|
|
82
|
-
coverage:
|
|
83
|
-
stage: coverage
|
|
84
|
-
cache:
|
|
85
|
-
- key:
|
|
86
|
-
files:
|
|
87
|
-
- package-lock.json
|
|
88
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
89
|
-
paths:
|
|
90
|
-
- node_modules
|
|
91
|
-
policy: pull
|
|
92
|
-
- key: ${CI_COMMIT_REF_SLUG}_coverage
|
|
93
|
-
paths:
|
|
94
|
-
- coverage/**/*
|
|
95
|
-
policy: pull
|
|
96
|
-
script:
|
|
97
|
-
- npm run test:report:coverage
|
|
98
|
-
only:
|
|
99
|
-
- main
|
|
100
|
-
- merge_requests
|
|
101
|
-
|
|
102
|
-
publish:
|
|
103
|
-
stage: deploy
|
|
104
|
-
cache:
|
|
105
|
-
key:
|
|
106
|
-
files:
|
|
107
|
-
- package-lock.json
|
|
108
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
109
|
-
paths:
|
|
110
|
-
- node_modules
|
|
111
|
-
policy: pull
|
|
112
|
-
script:
|
|
113
|
-
- npm publish
|
|
114
|
-
when: manual
|
|
115
|
-
only:
|
|
116
|
-
- main
|
|
117
|
-
- merge_requests
|