diff --git a/package-lock.json b/package-lock.json index 5680947..27f312a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fluxninja/aperture-js", - "version": "2.3.3", + "version": "2.3.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@fluxninja/aperture-js", - "version": "2.3.3", + "version": "2.3.4", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.9.5", diff --git a/package.json b/package.json index af19c9e..322a1a2 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/sdk/consts.ts b/sdk/consts.ts index 2a302cd..0af9a75 100644 --- a/sdk/consts.ts +++ b/sdk/consts.ts @@ -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"; diff --git a/updateVersion.mjs b/updateVersion.mjs index 3be05cf..21082e6 100644 --- a/updateVersion.mjs +++ b/updateVersion.mjs @@ -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");