@everymundo/data-integration-framework
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -18,18 +18,5 @@ #!/usr/bin/env node | ||
if (validArgs.length === 1) return getRouteInfoFromPattern(validArgs[0]) | ||
return getRouteInfoFromMultipleArgs(...validArgs) | ||
return validArgs.join(',') | ||
} | ||
const getRouteInfoFromMultipleArgs = (officeId, commercialFamily, airId, curc) => `${airId}:${curc}:${officeId},${commercialFamily}` | ||
const getRouteInfoFromPattern = (input) => { | ||
const match = ('' + input).match(INPUT_REGEXP) | ||
if (match) { | ||
const [orig, dest] = match | ||
return `${orig},${dest}` | ||
} | ||
} | ||
const queryOne = () => { | ||
@@ -43,3 +30,3 @@ logr.raw('--------------------\n') | ||
assert(INPUT_REGEXP.test(routeInfo), `'${routeInfo}' does't match OFFICEID:commercialFamily:ORIG,DEST and the regexp '${INPUT_REGEXP}'`) | ||
assert(INPUT_REGEXP.test(routeInfo), `'${routeInfo}' does't match the regexp '${INPUT_REGEXP}' ${JSON.stringify({test:INPUT_REGEXP.test(routeInfo)})} \n${INPUT_REGEXP}.test('${routeInfo}')`) | ||
@@ -46,0 +33,0 @@ handler(routeInfo).then((...args) => { |
{ | ||
"name": "@everymundo/data-integration-framework", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Common logic shared across data integration applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
20079
538