Skip to content

Commit 0a5ac93

Browse files
committed
v0.0.1
1 parent c129955 commit 0a5ac93

File tree

5 files changed

+23
-107
lines changed

5 files changed

+23
-107
lines changed

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.vscode
21
docs
32
src
43
test
@@ -10,4 +9,4 @@ test
109
global.d.ts
1110
jest.config.js
1211
rollup.config.js
13-
tsconfig.json
12+
tsconfig.json

.vscode/launch.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,3 @@
22
<h1>cars-parts-services-api</h1>
33
<span>Cars Parts Services API Client</span>
44
</div>
5-
6-
## Requisites
7-
8-
Its required to authenticate to GPM (GitHub Package Manager) in order to install this module in your project.
9-
Theres two possible ways at the moment to accomplish this,
10-
either using a `.npmrc` file or login to `npm` using `npm login`.
11-
12-
### Personal Access Token
13-
- Create a [GitHub Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with the following scopes:
14-
15-
Scope | Description | Repository permissions
16-
--- | --- | ---
17-
`read:packages` | Download and install packages from GitHub Packages | read
18-
`write:packages` | Upload and publish packages to GitHub Packages | write
19-
`delete:packages` | Delete specified versions of private packages from GitHub Packages | admin
20-
`repo` | Install, upload, and delete certain packages in private repositories (along with read:packages, write:packages, or delete:packages) | read, write, or admin
21-
[Source](https://docs.github.com/en/packages/publishing-and-managing-packages/about-github-packages#about-tokenss)
22-
23-
Add your personal access token to your `~/.npmrc` file, edit the `~/.npmrc` file for your project to include the following line, replacing TOKEN with your personal access token. Create a new `~/.npmrc` file if one doesn't exist.
24-
25-
```bash
26-
//npm.pkg.github.com/:_authToken=TOKEN
27-
```
28-
29-
### Logging to npm
30-
31-
Use the npm login command, replacing `USERNAME` with your GitHub username, `TOKEN` with your personal access token, and `PUBLIC-EMAIL-ADDRESS` with your email address.
32-
33-
```bash
34-
$ npm login --registry=https://npm.pkg.github.com
35-
> Username: USERNAME
36-
> Password: TOKEN
37-
> Email: PUBLIC-EMAIL-ADDRESS
38-
```
39-
[Source](https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#authenticating-to-github-packages)
40-
41-
## Installation
42-
43-
For npm or yarn to find this package during installation process, is required to specify the registry
44-
of `estebanborai` scope. For that create an `.npmrc` file in your project root (next to `package.json`)
45-
with the following content:
46-
47-
```bash
48-
@estebanborai:registry=https://npm.pkg.github.com
49-
```
50-
51-
Then, you must run:
52-
```bash
53-
# npm
54-
npm install
55-
56-
# yarn
57-
yarn
58-
```
59-
60-
## Publishing
61-
62-
```bash
63-
npm version <major|minor|patch>
64-
git push origin master --follow-tags
65-
npm publish --scope @estebanborai --tag latest
66-
```

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
{
2-
"name": "@estebanborai/cars-parts-services-api",
3-
"version": "0.2.0",
2+
"name": "cars-parts-services-api",
3+
"version": "0.0.1",
44
"description": "Cars Parts Services API Client",
55
"main": "dist/index.js",
6-
"publishConfig": {
7-
"registry": "https://npm.pkg.github.com/"
8-
},
96
"scripts": {
107
"prepublish": "npm run build",
118
"build": "rm -rf ./dist && rollup -c",
129
"test": "jest --env=node ./test/**"
1310
},
1411
"repository": {
1512
"type": "git",
16-
"url": "git+https://github.com/estebanborai/cars-parts-services-api.git"
13+
"url": "git+https://github.com/EstebanBorai/cars-parts-services-api.git"
1714
},
1815
"keywords": [
1916
"bovsoft",
@@ -24,12 +21,12 @@
2421
"author": "Esteban Borai <estebanborai@gmail.com>",
2522
"license": "MIT",
2623
"bugs": {
27-
"url": "https://github.com/estebanborai/bovsoft-api/issues"
24+
"url": "https://github.com/EstebanBorai/cars-parts-services-api/issues"
2825
},
29-
"homepage": "https://github.com/estebanborai/bovsoft-api#readme",
26+
"homepage": "https://github.com/EstebanBorai/cars-parts-services-api#readme",
3027
"dependencies": {
31-
"ky": "^0.23.0",
32-
"ky-universal": "^0.8.1"
28+
"ky": "^0.24.0",
29+
"ky-universal": "^0.8.2"
3330
},
3431
"devDependencies": {
3532
"@types/jest": "^25.2.3",

yarn.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ fb-watchman@^2.0.0:
16481648
dependencies:
16491649
bser "2.1.1"
16501650

1651-
fetch-blob@^2.0.0:
1651+
fetch-blob@^2.1.1:
16521652
version "2.1.1"
16531653
resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-2.1.1.tgz#a54ab0d5ed7ccdb0691db77b6674308b23fb2237"
16541654
integrity sha512-Uf+gxPCe1hTOFXwkxYyckn8iUSk6CFXGy5VENZKifovUTZC9eUODWSBhOBS7zICGrAetKzdwLMr85KhIcePMAQ==
@@ -2720,18 +2720,18 @@ kleur@^3.0.3:
27202720
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
27212721
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
27222722

2723-
ky-universal@^0.8.1:
2724-
version "0.8.1"
2725-
resolved "https://registry.yarnpkg.com/ky-universal/-/ky-universal-0.8.1.tgz#68d1bb0e914e3c41a83ed2eef5928fb04c7867d5"
2726-
integrity sha512-Rds/kzTaDKrvXYPG7xToOUOVJPVTV09VirJ7XDO7gKgy+NrYJjPaBjHI3IqtZL7R3t0DXEbdM5byT+HtNS49jw==
2723+
ky-universal@^0.8.2:
2724+
version "0.8.2"
2725+
resolved "https://registry.yarnpkg.com/ky-universal/-/ky-universal-0.8.2.tgz#edc398d54cf495d7d6830aa1ab69559a3cc7f824"
2726+
integrity sha512-xe0JaOH9QeYxdyGLnzUOVGK4Z6FGvDVzcXFTdrYA1f33MZdEa45sUDaMBy98xQMcsd2XIBrTXRrRYnegcSdgVQ==
27272727
dependencies:
27282728
abort-controller "^3.0.0"
2729-
node-fetch "3.0.0-beta.7"
2729+
node-fetch "3.0.0-beta.9"
27302730

2731-
ky@^0.23.0:
2732-
version "0.23.0"
2733-
resolved "https://registry.yarnpkg.com/ky/-/ky-0.23.0.tgz#54c2f3fa9003d591cb2f368384e6c84795a92e64"
2734-
integrity sha512-+t2CbQsLmpN3HeYPBxN+VbZqBOd86njF3cvnueC77pJKVHRjiMI0Ac+pfkB8e17Bw1dGHbMk9hrHst9Bw7ndgw==
2731+
ky@^0.24.0:
2732+
version "0.24.0"
2733+
resolved "https://registry.yarnpkg.com/ky/-/ky-0.24.0.tgz#337e534a7f47c12476988eef3cb968daef318349"
2734+
integrity sha512-/vpuQguwV30jErrqLpoaU/YJAFALrUkqqWLILnSoBOj5/O/LKzro/pPNtxbLgY6m4w5XNM6YZ3v7/or8qLlFuw==
27352735

27362736
leven@^3.1.0:
27372737
version "3.1.0"
@@ -2930,13 +2930,13 @@ nice-try@^1.0.4:
29302930
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
29312931
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
29322932

2933-
node-fetch@3.0.0-beta.7:
2934-
version "3.0.0-beta.7"
2935-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.0.0-beta.7.tgz#28e122943aa8a3e4e7447d525fc138c207faa834"
2936-
integrity sha512-UTmmxR2RCLiGL0q61p8DgMgw1UXd10+XVB77IHG55flJ/tHqQQXloNTm5dd/mB3RNXP3+CJPf++t0nb3whKNkw==
2933+
node-fetch@3.0.0-beta.9:
2934+
version "3.0.0-beta.9"
2935+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.0.0-beta.9.tgz#0a7554cfb824380dd6812864389923c783c80d9b"
2936+
integrity sha512-RdbZCEynH2tH46+tj0ua9caUHVWrd/RHnRfvly2EVdqGmI3ndS1Vn/xjm5KuGejDt2RNDQsVRLPNd2QPwcewVg==
29372937
dependencies:
29382938
data-uri-to-buffer "^3.0.1"
2939-
fetch-blob "^2.0.0"
2939+
fetch-blob "^2.1.1"
29402940

29412941
node-int64@^0.4.0:
29422942
version "0.4.0"

0 commit comments

Comments
 (0)