Skip to content

Commit

Permalink
quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patelchandni committed May 29, 2024
1 parent b696b80 commit 0e0d6db
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/appservice-rest/Kudu/azure-app-kudu-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class Kudu {

constructor(scmUri: string, username: string, password: string, accessToken?: string) {
if (accessToken === undefined) {
var base64EncodedCredential = (new Buffer(username + ':' + password).toString('base64'));
var base64EncodedCredential = (Buffer.from(username + ':' + password).toString('base64'));
this._client = new KuduServiceClient(scmUri, "Basic " + base64EncodedCredential);
} else {
this._client = new KuduServiceClient(scmUri, "Bearer " + accessToken);
Expand Down
2 changes: 1 addition & 1 deletion src/publishers/websiteRunFromPackageDeploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class WebsiteRunFromPackageDeploy {

private static createBlobName(): string {
const now: Date = new Date();
const time: string = `${now.getUTCFullYear()}${now.getUTCMonth() + 1}${now.getUTCDate()}${now.getUTCHours()}${now.getUTCMinutes()}${now.getUTCSeconds()}`;
const time: string = `${now.getUTCFullYear()}${now.getUTCMonth() + 1}${now.getUTCDate()}${now.getUTCHours()}${now.getUTCMinutes()}${now.getUTCSeconds()}${now.getUTCMilliseconds()}`;
return `${ConfigurationConstant.BlobNamePrefix}_${time}.zip`;
}

Expand Down
3 changes: 2 additions & 1 deletion src/utils/funcignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as glob from 'glob';
import * as rimraf from 'rimraf';
import * as ignore from 'ignore';
import { Logger } from './logger';
import path = require('path');

export class FuncIgnore {
public static doesFuncignoreExist(working_dir: string): boolean {
Expand Down Expand Up @@ -32,7 +33,7 @@ export class FuncIgnore {
const sanitizedWorkingDir: string = FuncIgnore.sanitizeWorkingDir(working_dir);
const allFiles: string[] = glob.sync(`${sanitizedWorkingDir}/**/*`, { dot: true });
allFiles.forEach(name => {
const filename = name.replace(`${working_dir}/`, '');
const filename = path.relative(working_dir, name);
if (ignoreParser.ignores(filename)) {
try {
rimraf.sync(name);
Expand Down
13 changes: 0 additions & 13 deletions tests/e2e/node20/package-lock.json

This file was deleted.

2 changes: 0 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"rootDir": "./src",
"outDir": "./lib",
"strict": false,
"strictNullChecks": false,
"strictPropertyInitialization": false,
"strictFunctionTypes": true,
"noImplicitAny" : true,
"noUnusedParameters": true,
Expand Down

0 comments on commit 0e0d6db

Please sign in to comment.