Skip to content

Commit

Permalink
build: bump/remove dependencies (#270)
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Adams <[email protected]>
  • Loading branch information
padamstx authored Apr 10, 2024
1 parent 6b73ae1 commit 9398ce0
Show file tree
Hide file tree
Showing 7 changed files with 3,553 additions and 5,957 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ npm-debug.log.*
coverage
.DS_Store
.idea
.nvmrc
doc/
.vscode/
*.env
Expand All @@ -21,7 +22,6 @@ coverage.lcov
.swagger-codegen-ignore
/.settings/
/.project
.secrets.baseline
.pre-commit-config.yaml
dist/
temp/
Expand Down
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "package-lock.json|^.secrets.baseline$",
"lines": null
},
"generated_at": "2024-02-27T01:02:51Z",
"generated_at": "2024-04-10T16:52:29Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -96,7 +96,7 @@
"hashed_secret": "bc2f74c22f98f7b6ffbc2f67453dbfa99bce9a32",
"is_secret": false,
"is_verified": false,
"line_number": 132,
"line_number": 146,
"type": "Secret Keyword",
"verified_result": null
}
Expand Down
4 changes: 2 additions & 2 deletions auth/utils/file-reading-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2021, 2023 IBM Corp. All Rights Reserved.
* Copyright 2021, 2024 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -66,7 +66,7 @@ export function readCredentialsFile() {

const credsFile = readFileSync(filepathToUse);

return parse(credsFile);
return parse(credsFile) as any;
}

export function fileExistsAtPath(filepath: string): boolean {
Expand Down
8 changes: 4 additions & 4 deletions auth/utils/read-external-sources.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-restricted-syntax */

/**
* (C) Copyright IBM Corp. 2019, 2022.
* (C) Copyright IBM Corp. 2019, 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,8 +17,8 @@
*/

import camelcase from 'camelcase';
import isEmpty from 'lodash.isempty';
import logger from '../../lib/logger';
import { isEmptyObject } from '../../lib/helper';
import { readCredentialsFile } from './file-reading-helpers';

/**
Expand Down Expand Up @@ -50,11 +50,11 @@ function getProperties(serviceName: string): any {

properties = filterPropertiesByServiceName(readCredentialsFile(), serviceName);

if (isEmpty(properties)) {
if (isEmptyObject(properties)) {
properties = filterPropertiesByServiceName(process.env, serviceName);
}

if (isEmpty(properties)) {
if (isEmptyObject(properties)) {
properties = getPropertiesFromVCAP(serviceName);
}

Expand Down
Loading

0 comments on commit 9398ce0

Please sign in to comment.