Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.handler = async argv => {
if (argv.query) {
argv.query = querystring.parse(argv.query);
} else {
argv.query = {};
}
argv.query['_tag'] = `http://lifeomic.com/fhir/dataset|${argv.project}`;
const account = getAccount(argv);
const url = `${account}/dstu3/${argv.type}?${querystring.stringify(argv.query)}`;
await del(argv, url);
console.log(chalk.green(`Deleted resources`));
};
.action(async (type, query, options) => {
if (query) {
query = querystring.parse(query);
} else {
query = {};
}
if (options.dataset) {
query['_tag'] = `http://lifeomic.com/fhir/dataset|${options.dataset}`;
}
const result = await search(type, query, options);
print(result, options);
});
function checkCallbackResponse() {
var params;
if (window.location.hash) {
params = qs.parse(window.location.hash.substring(1));
if (params.access_token) {
return { success: true, body: params };
}
} else if (window.location.search) {
params = qs.parse(window.location.search.substring(1));
if (params.error) {
return { success: false, body: params };
}
}
}
mainQuery.join(function(nextFunc){
postQuery = querystring.parse(postData.toString());
util.eachObject(postQuery, function(v, k){
postQuery[k] = v.length > 5 ? v.substring(0, 5) : v;
});
nextFunc();
});
}
requestOrUrl.on('end', function() {
var params = querystring.parse(data);
return _verifyAssertionData(params, callback, stateless, extensions, strict);
});
}