Skip to content

Commit

Permalink
Update from fluxninja/aperture
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxninjaops committed Nov 21, 2023
1 parent 8ba902a commit 98c9c1c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluxninja/aperture-js",
"version": "2.3.3",
"version": "2.3.4",
"description": "Flow control SDK that interfaces with FluxNinja Aperture Agents",
"main": "./lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const PROTO_PATH = path.resolve(
);

export const LIBRARY_NAME = "@fluxninjutsu/aperture-js";
export const LIBRARY_VERSION = "2.3.3";
export const LIBRARY_VERSION = "2.3.4";

// Label to hold source of flow.
export const SOURCE_LABEL = "aperture.source";
Expand Down
7 changes: 5 additions & 2 deletions updateVersion.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ const constsPath = path.join(__dirname, "sdk", "consts.ts");
let constsFileContents = fs.readFileSync(constsPath, "utf8");

// Regular expression to match the version string in consts.ts
const versionRegEx = /export const LIBRARY_VERSION = '.*';/;
const versionRegEx = /export const LIBRARY_VERSION = ".*";/;

// Replace the version string with the current version
constsFileContents = constsFileContents.replace(
versionRegEx,
`export const LIBRARY_VERSION = '${currentVersion}';`,
`export const LIBRARY_VERSION = "${currentVersion}";`,
);

console.log(constsPath)
console.log(constsFileContents)

// Write the changes to consts.ts
fs.writeFileSync(constsPath, constsFileContents, "utf8");

Expand Down

0 comments on commit 98c9c1c

Please sign in to comment.