Compare commits

..

4 Commits

Author SHA1 Message Date
d9112d3e04 1.0.111 2024-05-08 19:58:09 +02:00
455404c3c9 fix(core): update 2024-05-08 19:58:09 +02:00
90089625dc 1.0.110 2024-04-23 20:10:37 +02:00
86d5cc1d47 fix(core): update 2024-04-23 20:10:36 +02:00
5 changed files with 638 additions and 1425 deletions

View File

@ -15,7 +15,7 @@
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "mojoio", "gitscope": "mojoio",
"gitrepo": "docker", "gitrepo": "docker",
"description": "Provides easy communication with Docker's remote API from Node.js, with TypeScript support.", "description": "Provides easy communication with Docker remote API from Node.js, with TypeScript support.",
"npmPackagename": "@mojoio/docker", "npmPackagename": "@mojoio/docker",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [

View File

@ -1,7 +1,7 @@
{ {
"name": "@apiclient.xyz/docker", "name": "@apiclient.xyz/docker",
"version": "1.0.109", "version": "1.0.111",
"description": "Provides easy communication with Docker's remote API from Node.js, with TypeScript support.", "description": "Provides easy communication with Docker remote API from Node.js, with TypeScript support.",
"private": false, "private": false,
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",
@ -33,25 +33,25 @@
}, },
"homepage": "https://gitlab.com/mojoio/docker#readme", "homepage": "https://gitlab.com/mojoio/docker#readme",
"dependencies": { "dependencies": {
"@push.rocks/lik": "^6.0.0", "@push.rocks/lik": "^6.0.15",
"@push.rocks/smartfile": "^11.0.4", "@push.rocks/smartfile": "^11.0.14",
"@push.rocks/smartjson": "^5.0.2", "@push.rocks/smartjson": "^5.0.19",
"@push.rocks/smartlog": "^3.0.1", "@push.rocks/smartlog": "^3.0.1",
"@push.rocks/smartnetwork": "^3.0.0", "@push.rocks/smartnetwork": "^3.0.0",
"@push.rocks/smartpath": "^5.0.5", "@push.rocks/smartpath": "^5.0.18",
"@push.rocks/smartpromise": "^4.0.3", "@push.rocks/smartpromise": "^4.0.3",
"@push.rocks/smartrequest": "^2.0.11", "@push.rocks/smartrequest": "^2.0.22",
"@push.rocks/smartstring": "^4.0.5", "@push.rocks/smartstring": "^4.0.15",
"@push.rocks/smartversion": "^3.0.2", "@push.rocks/smartversion": "^3.0.5",
"@tsclass/tsclass": "^4.0.24", "@tsclass/tsclass": "^4.0.54",
"rxjs": "^7.5.7" "rxjs": "^7.5.7"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^2.1.25", "@git.zone/tsbuild": "^2.1.25",
"@git.zone/tsrun": "^1.2.12", "@git.zone/tsrun": "^1.2.12",
"@git.zone/tstest": "^1.0.52", "@git.zone/tstest": "^1.0.90",
"@push.rocks/tapbundle": "^5.0.4", "@push.rocks/tapbundle": "^5.0.23",
"@types/node": "^20.11.16" "@types/node": "^20.12.11"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

2027
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@apiclient.xyz/docker', name: '@apiclient.xyz/docker',
version: '1.0.109', version: '1.0.111',
description: 'Provides easy communication with Docker's remote API from Node.js, with TypeScript support.' description: 'Provides easy communication with Docker remote API from Node.js, with TypeScript support.'
} }

View File

@ -61,10 +61,10 @@ export class DockerHost {
/** /**
* gets the token from the .docker/config.json file for GitLab registry * gets the token from the .docker/config.json file for GitLab registry
*/ */
public async getGitlabComTokenFromDockerConfig() { public async getAuthTokenFromDockerConfig(registryUrlArg: string) {
const dockerConfigPath = plugins.smartpath.get.home('~/.docker/config.json'); const dockerConfigPath = plugins.smartpath.get.home('~/.docker/config.json');
const configObject = plugins.smartfile.fs.toObjectSync(dockerConfigPath); const configObject = plugins.smartfile.fs.toObjectSync(dockerConfigPath);
const gitlabAuthBase64 = configObject.auths['registry.gitlab.com'].auth; const gitlabAuthBase64 = configObject.auths[registryUrlArg].auth;
const gitlabAuth: string = plugins.smartstring.base64.decode(gitlabAuthBase64); const gitlabAuth: string = plugins.smartstring.base64.decode(gitlabAuthBase64);
const gitlabAuthArray = gitlabAuth.split(':'); const gitlabAuthArray = gitlabAuth.split(':');
await this.auth({ await this.auth({