Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Patch Flex Nodejs runtime to address critical CVE (#229)
Browse files Browse the repository at this point in the history
* Updating gts to 0.6.0 to address the critical CVEs

* fixing the incompatible signature errors after the upgrade
  • Loading branch information
pmaloogoogle authored Mar 10, 2022
1 parent c027066 commit 93ded4f
Show file tree
Hide file tree
Showing 10 changed files with 914 additions and 757 deletions.
555 changes: 305 additions & 250 deletions builder/steps/gen-dockerfile/contents/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builder/steps/gen-dockerfile/contents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/mocha": "^2.2.39",
"@types/node": "^7.0.5",
"@types/pify": "0.0.28",
"gts": "^0.5.4",
"gts": "^0.6.0",
"js-green-licenses": "^0.2.0",
"mocha": "^2.5.3",
"source-map-support": "^0.4.11",
Expand Down
2 changes: 1 addition & 1 deletion builder/steps/gen-dockerfile/contents/src/detect_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// since the `shell-escape` module does not have type definitions available.
const shellEscape: (args: string[]) => string = require('shell-escape');

import * as extend from 'extend';
import extend from 'extend';
import * as yaml from 'js-yaml';

import {Locator, Reader} from './fsview';
Expand Down
2 changes: 1 addition & 1 deletion builder/steps/gen-dockerfile/contents/src/fsview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import * as fs from 'fs';
import * as path from 'path';
import * as pify from 'pify';
import pify from 'pify';

/**
* Represents an entity that is capable of reading a filesystem or a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import * as assert from 'assert';

import assert from "assert";
import {detectSetup, Setup} from '../src/detect_setup';

import {Location, MockLogger, MockView} from './common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as assert from 'assert';
import assert from 'assert';

import {Setup} from '../src/detect_setup';
import {generateFiles} from '../src/generate_files';
Expand Down
Loading

0 comments on commit 93ded4f

Please sign in to comment.