update to include resources standard

This commit is contained in:
Ethan Arrowood 2018-09-13 17:30:34 -04:00
Родитель 528b698048
Коммит 32a951879c
3 изменённых файлов: 251 добавлений и 251 удалений

Просмотреть файл

@ -7,14 +7,14 @@ const auditSystem = `${os.hostname()}-${os.platform()}`
let auditQueue = [] let auditQueue = []
const audit = (extensionLogArgs, auditOptions) => { const audit = (extensionLogArgs, auditOptions) => {
const { eventName, resource } = auditOptions const { eventName, resources } = auditOptions
auditQueue.push({ auditQueue.push({
auditId: uuidv4(), auditId: uuidv4(),
eventName: eventName, eventName: eventName,
system: auditSystem, system: auditSystem,
date: new Date().toISOString(), date: new Date().toISOString(),
resource: resource, resources: resources,
extensionLog: typeof extensionLogArgs === 'string' ? [ extensionLogArgs ] : Array.from(extensionLogArgs) extensionLog: typeof extensionLogArgs === 'string' ? [ extensionLogArgs ] : Array.from(extensionLogArgs)
}) })
} }
@ -24,7 +24,7 @@ module.exports = {
initialize: (context, opts) => { initialize: (context, opts) => {
assert(opts, 'Options object must be defined') assert(opts, 'Options object must be defined')
assert(typeof opts.eventName === 'string', 'Event name must be a string') assert(typeof opts.eventName === 'string', 'Event name must be a string')
assert(typeof opts.resource === 'string', 'Resource must be a string') assert(typeof opts.resources === 'string', 'Resources must be a string')
const auditOptions = opts const auditOptions = opts
@ -41,19 +41,22 @@ module.exports = {
return function () { return function () {
const audits = auditQueue const audits = auditQueue
if (typeof context.res.body === 'string') { if (typeof context.res.body === 'undefined') {
context.rex.body = {
__audits: audits
}
} else if (typeof context.res.body === 'string') {
const body = JSON.parse(context.res.body) const body = JSON.parse(context.res.body)
body['__audits'] = audits body['__audits'] = audits
context.res.body = JSON.stringify(body) context.res.body = JSON.stringify(body)
} else if (typeof context.res.body === 'object') { } else if (typeof context.res.body === 'object') {
context.res.body['__audits'] = audits context.res.body['__audits'] = audits
} else {
/* Azure functions docs does not specify `res.body`
* can be anything besides a String or Object.
* If it can be another type it should be handeled here.
* */
throw new Error('Body is not string or object')
} }
/*
* If context.res.body is not of type string or object
* do not append the audits list to it and return it
* as usual.
* */
return original.apply(this, arguments) return original.apply(this, arguments)
} }

470
package-lock.json сгенерированный
Просмотреть файл

@ -40,7 +40,7 @@
"integrity": "sha512-JY+iV6r+cO21KtntVvFkD+iqjtdpRUpGqKWgfkCdZq1R+kbreEl8EcdcJR4SmiIgsIQT33s6QzheQ9a275Q8xw==", "integrity": "sha512-JY+iV6r+cO21KtntVvFkD+iqjtdpRUpGqKWgfkCdZq1R+kbreEl8EcdcJR4SmiIgsIQT33s6QzheQ9a275Q8xw==",
"dev": true, "dev": true,
"requires": { "requires": {
"acorn": "^5.0.3" "acorn": "5.7.2"
} }
}, },
"ajv": { "ajv": {
@ -49,10 +49,10 @@
"integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==", "integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==",
"dev": true, "dev": true,
"requires": { "requires": {
"fast-deep-equal": "^2.0.1", "fast-deep-equal": "2.0.1",
"fast-json-stable-stringify": "^2.0.0", "fast-json-stable-stringify": "2.0.0",
"json-schema-traverse": "^0.4.1", "json-schema-traverse": "0.4.1",
"uri-js": "^4.2.2" "uri-js": "4.2.2"
} }
}, },
"ajv-keywords": { "ajv-keywords": {
@ -85,7 +85,7 @@
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
"dev": true, "dev": true,
"requires": { "requires": {
"sprintf-js": "~1.0.2" "sprintf-js": "1.0.3"
} }
}, },
"array-union": { "array-union": {
@ -94,7 +94,7 @@
"integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=",
"dev": true, "dev": true,
"requires": { "requires": {
"array-uniq": "^1.0.1" "array-uniq": "1.0.3"
} }
}, },
"array-uniq": { "array-uniq": {
@ -115,9 +115,9 @@
"integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=",
"dev": true, "dev": true,
"requires": { "requires": {
"chalk": "^1.1.3", "chalk": "1.1.3",
"esutils": "^2.0.2", "esutils": "2.0.2",
"js-tokens": "^3.0.2" "js-tokens": "3.0.2"
}, },
"dependencies": { "dependencies": {
"chalk": { "chalk": {
@ -126,11 +126,11 @@
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-styles": "^2.2.1", "ansi-styles": "2.2.1",
"escape-string-regexp": "^1.0.2", "escape-string-regexp": "1.0.5",
"has-ansi": "^2.0.0", "has-ansi": "2.0.0",
"strip-ansi": "^3.0.0", "strip-ansi": "3.0.1",
"supports-color": "^2.0.0" "supports-color": "2.0.0"
} }
}, },
"strip-ansi": { "strip-ansi": {
@ -139,7 +139,7 @@
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "2.1.1"
} }
} }
} }
@ -156,7 +156,7 @@
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true, "dev": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
} }
}, },
@ -178,7 +178,7 @@
"integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=",
"dev": true, "dev": true,
"requires": { "requires": {
"callsites": "^0.2.0" "callsites": "0.2.0"
} }
}, },
"callsites": { "callsites": {
@ -193,9 +193,9 @@
"integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-styles": "^3.2.1", "ansi-styles": "3.2.1",
"escape-string-regexp": "^1.0.5", "escape-string-regexp": "1.0.5",
"supports-color": "^5.3.0" "supports-color": "5.5.0"
}, },
"dependencies": { "dependencies": {
"ansi-styles": { "ansi-styles": {
@ -204,7 +204,7 @@
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
"dev": true, "dev": true,
"requires": { "requires": {
"color-convert": "^1.9.0" "color-convert": "1.9.3"
} }
}, },
"supports-color": { "supports-color": {
@ -213,7 +213,7 @@
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true, "dev": true,
"requires": { "requires": {
"has-flag": "^3.0.0" "has-flag": "3.0.0"
} }
} }
} }
@ -236,7 +236,7 @@
"integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
"dev": true, "dev": true,
"requires": { "requires": {
"restore-cursor": "^2.0.0" "restore-cursor": "2.0.0"
} }
}, },
"cli-width": { "cli-width": {
@ -284,11 +284,11 @@
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"nice-try": "^1.0.4", "nice-try": "1.0.5",
"path-key": "^2.0.1", "path-key": "2.0.1",
"semver": "^5.5.0", "semver": "5.5.1",
"shebang-command": "^1.2.0", "shebang-command": "1.2.0",
"which": "^1.2.9" "which": "1.3.1"
} }
}, },
"debug": { "debug": {
@ -312,13 +312,13 @@
"integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=",
"dev": true, "dev": true,
"requires": { "requires": {
"globby": "^5.0.0", "globby": "5.0.0",
"is-path-cwd": "^1.0.0", "is-path-cwd": "1.0.0",
"is-path-in-cwd": "^1.0.0", "is-path-in-cwd": "1.0.1",
"object-assign": "^4.0.1", "object-assign": "4.1.1",
"pify": "^2.0.0", "pify": "2.3.0",
"pinkie-promise": "^2.0.0", "pinkie-promise": "2.0.1",
"rimraf": "^2.2.8" "rimraf": "2.6.2"
} }
}, },
"diff": { "diff": {
@ -333,7 +333,7 @@
"integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
"dev": true, "dev": true,
"requires": { "requires": {
"esutils": "^2.0.2" "esutils": "2.0.2"
} }
}, },
"error-ex": { "error-ex": {
@ -342,7 +342,7 @@
"integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-arrayish": "^0.2.1" "is-arrayish": "0.2.1"
} }
}, },
"escape-string-regexp": { "escape-string-regexp": {
@ -357,44 +357,44 @@
"integrity": "sha512-UIpL91XGex3qtL6qwyCQJar2j3osKxK9e3ano3OcGEIRM4oWIpCkDg9x95AXEC2wMs7PnxzOkPZ2gq+tsMS9yg==", "integrity": "sha512-UIpL91XGex3qtL6qwyCQJar2j3osKxK9e3ano3OcGEIRM4oWIpCkDg9x95AXEC2wMs7PnxzOkPZ2gq+tsMS9yg==",
"dev": true, "dev": true,
"requires": { "requires": {
"ajv": "^6.5.0", "ajv": "6.5.3",
"babel-code-frame": "^6.26.0", "babel-code-frame": "6.26.0",
"chalk": "^2.1.0", "chalk": "2.4.1",
"cross-spawn": "^6.0.5", "cross-spawn": "6.0.5",
"debug": "^3.1.0", "debug": "3.1.0",
"doctrine": "^2.1.0", "doctrine": "2.1.0",
"eslint-scope": "^4.0.0", "eslint-scope": "4.0.0",
"eslint-utils": "^1.3.1", "eslint-utils": "1.3.1",
"eslint-visitor-keys": "^1.0.0", "eslint-visitor-keys": "1.0.0",
"espree": "^4.0.0", "espree": "4.0.0",
"esquery": "^1.0.1", "esquery": "1.0.1",
"esutils": "^2.0.2", "esutils": "2.0.2",
"file-entry-cache": "^2.0.0", "file-entry-cache": "2.0.0",
"functional-red-black-tree": "^1.0.1", "functional-red-black-tree": "1.0.1",
"glob": "^7.1.2", "glob": "7.1.3",
"globals": "^11.7.0", "globals": "11.7.0",
"ignore": "^4.0.2", "ignore": "4.0.6",
"imurmurhash": "^0.1.4", "imurmurhash": "0.1.4",
"inquirer": "^5.2.0", "inquirer": "5.2.0",
"is-resolvable": "^1.1.0", "is-resolvable": "1.1.0",
"js-yaml": "^3.11.0", "js-yaml": "3.12.0",
"json-stable-stringify-without-jsonify": "^1.0.1", "json-stable-stringify-without-jsonify": "1.0.1",
"levn": "^0.3.0", "levn": "0.3.0",
"lodash": "^4.17.5", "lodash": "4.17.10",
"minimatch": "^3.0.4", "minimatch": "3.0.4",
"mkdirp": "^0.5.1", "mkdirp": "0.5.1",
"natural-compare": "^1.4.0", "natural-compare": "1.4.0",
"optionator": "^0.8.2", "optionator": "0.8.2",
"path-is-inside": "^1.0.2", "path-is-inside": "1.0.2",
"pluralize": "^7.0.0", "pluralize": "7.0.0",
"progress": "^2.0.0", "progress": "2.0.0",
"regexpp": "^2.0.0", "regexpp": "2.0.0",
"require-uncached": "^1.0.3", "require-uncached": "1.0.3",
"semver": "^5.5.0", "semver": "5.5.1",
"strip-ansi": "^4.0.0", "strip-ansi": "4.0.0",
"strip-json-comments": "^2.0.1", "strip-json-comments": "2.0.1",
"table": "^4.0.3", "table": "4.0.3",
"text-table": "^0.2.0" "text-table": "0.2.0"
} }
}, },
"eslint-config-standard": { "eslint-config-standard": {
@ -409,8 +409,8 @@
"integrity": "sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q==", "integrity": "sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"debug": "^2.6.9", "debug": "2.6.9",
"resolve": "^1.5.0" "resolve": "1.8.1"
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
@ -430,8 +430,8 @@
"integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=", "integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=",
"dev": true, "dev": true,
"requires": { "requires": {
"debug": "^2.6.8", "debug": "2.6.9",
"pkg-dir": "^1.0.0" "pkg-dir": "1.0.0"
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
@ -451,8 +451,8 @@
"integrity": "sha512-9XcVyZiQRVeFjqHw8qHNDAZcQLqaHlOGGpeYqzYh8S4JYCWTCO3yzyen8yVmA5PratfzTRWDwCOFphtDEG+w/w==", "integrity": "sha512-9XcVyZiQRVeFjqHw8qHNDAZcQLqaHlOGGpeYqzYh8S4JYCWTCO3yzyen8yVmA5PratfzTRWDwCOFphtDEG+w/w==",
"dev": true, "dev": true,
"requires": { "requires": {
"eslint-utils": "^1.3.0", "eslint-utils": "1.3.1",
"regexpp": "^2.0.0" "regexpp": "2.0.0"
} }
}, },
"eslint-plugin-import": { "eslint-plugin-import": {
@ -461,16 +461,16 @@
"integrity": "sha512-FpuRtniD/AY6sXByma2Wr0TXvXJ4nA/2/04VPlfpmUDPOpOY264x+ILiwnrk/k4RINgDAyFZByxqPUbSQ5YE7g==", "integrity": "sha512-FpuRtniD/AY6sXByma2Wr0TXvXJ4nA/2/04VPlfpmUDPOpOY264x+ILiwnrk/k4RINgDAyFZByxqPUbSQ5YE7g==",
"dev": true, "dev": true,
"requires": { "requires": {
"contains-path": "^0.1.0", "contains-path": "0.1.0",
"debug": "^2.6.8", "debug": "2.6.9",
"doctrine": "1.5.0", "doctrine": "1.5.0",
"eslint-import-resolver-node": "^0.3.1", "eslint-import-resolver-node": "0.3.2",
"eslint-module-utils": "^2.2.0", "eslint-module-utils": "2.2.0",
"has": "^1.0.1", "has": "1.0.3",
"lodash": "^4.17.4", "lodash": "4.17.10",
"minimatch": "^3.0.3", "minimatch": "3.0.4",
"read-pkg-up": "^2.0.0", "read-pkg-up": "2.0.0",
"resolve": "^1.6.0" "resolve": "1.8.1"
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
@ -488,8 +488,8 @@
"integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=",
"dev": true, "dev": true,
"requires": { "requires": {
"esutils": "^2.0.2", "esutils": "2.0.2",
"isarray": "^1.0.0" "isarray": "1.0.0"
} }
} }
} }
@ -500,12 +500,12 @@
"integrity": "sha512-lfVw3TEqThwq0j2Ba/Ckn2ABdwmL5dkOgAux1rvOk6CO7A6yGyPI2+zIxN6FyNkp1X1X/BSvKOceD6mBWSj4Yw==", "integrity": "sha512-lfVw3TEqThwq0j2Ba/Ckn2ABdwmL5dkOgAux1rvOk6CO7A6yGyPI2+zIxN6FyNkp1X1X/BSvKOceD6mBWSj4Yw==",
"dev": true, "dev": true,
"requires": { "requires": {
"eslint-plugin-es": "^1.3.1", "eslint-plugin-es": "1.3.1",
"eslint-utils": "^1.3.1", "eslint-utils": "1.3.1",
"ignore": "^4.0.2", "ignore": "4.0.6",
"minimatch": "^3.0.4", "minimatch": "3.0.4",
"resolve": "^1.8.1", "resolve": "1.8.1",
"semver": "^5.5.0" "semver": "5.5.1"
} }
}, },
"eslint-plugin-promise": { "eslint-plugin-promise": {
@ -526,8 +526,8 @@
"integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==", "integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==",
"dev": true, "dev": true,
"requires": { "requires": {
"esrecurse": "^4.1.0", "esrecurse": "4.2.1",
"estraverse": "^4.1.1" "estraverse": "4.2.0"
} }
}, },
"eslint-utils": { "eslint-utils": {
@ -548,8 +548,8 @@
"integrity": "sha512-kapdTCt1bjmspxStVKX6huolXVV5ZfyZguY1lcfhVVZstce3bqxH9mcLzNn3/mlgW6wQ732+0fuG9v7h0ZQoKg==", "integrity": "sha512-kapdTCt1bjmspxStVKX6huolXVV5ZfyZguY1lcfhVVZstce3bqxH9mcLzNn3/mlgW6wQ732+0fuG9v7h0ZQoKg==",
"dev": true, "dev": true,
"requires": { "requires": {
"acorn": "^5.6.0", "acorn": "5.7.2",
"acorn-jsx": "^4.1.1" "acorn-jsx": "4.1.1"
} }
}, },
"esprima": { "esprima": {
@ -564,7 +564,7 @@
"integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==",
"dev": true, "dev": true,
"requires": { "requires": {
"estraverse": "^4.0.0" "estraverse": "4.2.0"
} }
}, },
"esrecurse": { "esrecurse": {
@ -573,7 +573,7 @@
"integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"estraverse": "^4.1.0" "estraverse": "4.2.0"
} }
}, },
"estraverse": { "estraverse": {
@ -594,9 +594,9 @@
"integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==",
"dev": true, "dev": true,
"requires": { "requires": {
"chardet": "^0.4.0", "chardet": "0.4.2",
"iconv-lite": "^0.4.17", "iconv-lite": "0.4.24",
"tmp": "^0.0.33" "tmp": "0.0.33"
} }
}, },
"fast-deep-equal": { "fast-deep-equal": {
@ -623,7 +623,7 @@
"integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=",
"dev": true, "dev": true,
"requires": { "requires": {
"escape-string-regexp": "^1.0.5" "escape-string-regexp": "1.0.5"
} }
}, },
"file-entry-cache": { "file-entry-cache": {
@ -632,8 +632,8 @@
"integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=",
"dev": true, "dev": true,
"requires": { "requires": {
"flat-cache": "^1.2.1", "flat-cache": "1.3.0",
"object-assign": "^4.0.1" "object-assign": "4.1.1"
} }
}, },
"find-up": { "find-up": {
@ -642,8 +642,8 @@
"integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
"dev": true, "dev": true,
"requires": { "requires": {
"path-exists": "^2.0.0", "path-exists": "2.1.0",
"pinkie-promise": "^2.0.0" "pinkie-promise": "2.0.1"
} }
}, },
"flat-cache": { "flat-cache": {
@ -652,10 +652,10 @@
"integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=",
"dev": true, "dev": true,
"requires": { "requires": {
"circular-json": "^0.3.1", "circular-json": "0.3.3",
"del": "^2.0.2", "del": "2.2.2",
"graceful-fs": "^4.1.2", "graceful-fs": "4.1.11",
"write": "^0.2.1" "write": "0.2.1"
} }
}, },
"fs.realpath": { "fs.realpath": {
@ -682,12 +682,12 @@
"integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"fs.realpath": "^1.0.0", "fs.realpath": "1.0.0",
"inflight": "^1.0.4", "inflight": "1.0.6",
"inherits": "2", "inherits": "2.0.3",
"minimatch": "^3.0.4", "minimatch": "3.0.4",
"once": "^1.3.0", "once": "1.4.0",
"path-is-absolute": "^1.0.0" "path-is-absolute": "1.0.1"
} }
}, },
"globals": { "globals": {
@ -702,12 +702,12 @@
"integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=",
"dev": true, "dev": true,
"requires": { "requires": {
"array-union": "^1.0.1", "array-union": "1.0.2",
"arrify": "^1.0.0", "arrify": "1.0.1",
"glob": "^7.0.3", "glob": "7.1.3",
"object-assign": "^4.0.1", "object-assign": "4.1.1",
"pify": "^2.0.0", "pify": "2.3.0",
"pinkie-promise": "^2.0.0" "pinkie-promise": "2.0.1"
} }
}, },
"graceful-fs": { "graceful-fs": {
@ -728,7 +728,7 @@
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
"dev": true, "dev": true,
"requires": { "requires": {
"function-bind": "^1.1.1" "function-bind": "1.1.1"
} }
}, },
"has-ansi": { "has-ansi": {
@ -737,7 +737,7 @@
"integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "2.1.1"
} }
}, },
"has-flag": { "has-flag": {
@ -764,7 +764,7 @@
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"dev": true, "dev": true,
"requires": { "requires": {
"safer-buffer": ">= 2.1.2 < 3" "safer-buffer": "2.1.2"
} }
}, },
"ignore": { "ignore": {
@ -785,8 +785,8 @@
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"dev": true, "dev": true,
"requires": { "requires": {
"once": "^1.3.0", "once": "1.4.0",
"wrappy": "1" "wrappy": "1.0.2"
} }
}, },
"inherits": { "inherits": {
@ -801,19 +801,19 @@
"integrity": "sha512-E9BmnJbAKLPGonz0HeWHtbKf+EeSP93paWO3ZYoUpq/aowXvYGjjCSuashhXPpzbArIjBbji39THkxTz9ZeEUQ==", "integrity": "sha512-E9BmnJbAKLPGonz0HeWHtbKf+EeSP93paWO3ZYoUpq/aowXvYGjjCSuashhXPpzbArIjBbji39THkxTz9ZeEUQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-escapes": "^3.0.0", "ansi-escapes": "3.1.0",
"chalk": "^2.0.0", "chalk": "2.4.1",
"cli-cursor": "^2.1.0", "cli-cursor": "2.1.0",
"cli-width": "^2.0.0", "cli-width": "2.2.0",
"external-editor": "^2.1.0", "external-editor": "2.2.0",
"figures": "^2.0.0", "figures": "2.0.0",
"lodash": "^4.3.0", "lodash": "4.17.10",
"mute-stream": "0.0.7", "mute-stream": "0.0.7",
"run-async": "^2.2.0", "run-async": "2.3.0",
"rxjs": "^5.5.2", "rxjs": "5.5.11",
"string-width": "^2.1.0", "string-width": "2.1.1",
"strip-ansi": "^4.0.0", "strip-ansi": "4.0.0",
"through": "^2.3.6" "through": "2.3.8"
} }
}, },
"is-arrayish": { "is-arrayish": {
@ -828,7 +828,7 @@
"integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=",
"dev": true, "dev": true,
"requires": { "requires": {
"builtin-modules": "^1.0.0" "builtin-modules": "1.1.1"
} }
}, },
"is-fullwidth-code-point": { "is-fullwidth-code-point": {
@ -849,7 +849,7 @@
"integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-path-inside": "^1.0.0" "is-path-inside": "1.0.1"
} }
}, },
"is-path-inside": { "is-path-inside": {
@ -858,7 +858,7 @@
"integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=",
"dev": true, "dev": true,
"requires": { "requires": {
"path-is-inside": "^1.0.1" "path-is-inside": "1.0.2"
} }
}, },
"is-promise": { "is-promise": {
@ -897,8 +897,8 @@
"integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
"dev": true, "dev": true,
"requires": { "requires": {
"argparse": "^1.0.7", "argparse": "1.0.10",
"esprima": "^4.0.0" "esprima": "4.0.1"
} }
}, },
"json-schema-traverse": { "json-schema-traverse": {
@ -925,8 +925,8 @@
"integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
"dev": true, "dev": true,
"requires": { "requires": {
"prelude-ls": "~1.1.2", "prelude-ls": "1.1.2",
"type-check": "~0.3.2" "type-check": "0.3.2"
} }
}, },
"load-json-file": { "load-json-file": {
@ -935,10 +935,10 @@
"integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
"dev": true, "dev": true,
"requires": { "requires": {
"graceful-fs": "^4.1.2", "graceful-fs": "4.1.11",
"parse-json": "^2.2.0", "parse-json": "2.2.0",
"pify": "^2.0.0", "pify": "2.3.0",
"strip-bom": "^3.0.0" "strip-bom": "3.0.0"
} }
}, },
"locate-path": { "locate-path": {
@ -947,8 +947,8 @@
"integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
"dev": true, "dev": true,
"requires": { "requires": {
"p-locate": "^2.0.0", "p-locate": "2.0.0",
"path-exists": "^3.0.0" "path-exists": "3.0.0"
}, },
"dependencies": { "dependencies": {
"path-exists": { "path-exists": {
@ -995,7 +995,7 @@
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"dev": true, "dev": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "1.1.11"
} }
}, },
"minimist": { "minimist": {
@ -1038,12 +1038,12 @@
"integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"fs.realpath": "^1.0.0", "fs.realpath": "1.0.0",
"inflight": "^1.0.4", "inflight": "1.0.6",
"inherits": "2", "inherits": "2.0.3",
"minimatch": "^3.0.4", "minimatch": "3.0.4",
"once": "^1.3.0", "once": "1.4.0",
"path-is-absolute": "^1.0.0" "path-is-absolute": "1.0.1"
} }
}, },
"supports-color": { "supports-color": {
@ -1052,7 +1052,7 @@
"integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==",
"dev": true, "dev": true,
"requires": { "requires": {
"has-flag": "^3.0.0" "has-flag": "3.0.0"
} }
} }
} }
@ -1087,11 +1087,11 @@
"integrity": "sha512-pxE0c9PzgrUTyhfv5p+5eMIdfU2bLEsq8VQEuE0kxM4zP7SujSar7rk9wpI2F7RyyCEvLyj5O7Is3RER5F36Fg==", "integrity": "sha512-pxE0c9PzgrUTyhfv5p+5eMIdfU2bLEsq8VQEuE0kxM4zP7SujSar7rk9wpI2F7RyyCEvLyj5O7Is3RER5F36Fg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@sinonjs/formatio": "^2.0.0", "@sinonjs/formatio": "2.0.0",
"just-extend": "^3.0.0", "just-extend": "3.0.0",
"lolex": "^2.3.2", "lolex": "2.7.4",
"path-to-regexp": "^1.7.0", "path-to-regexp": "1.7.0",
"text-encoding": "^0.6.4" "text-encoding": "0.6.4"
} }
}, },
"normalize-package-data": { "normalize-package-data": {
@ -1100,10 +1100,10 @@
"integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==",
"dev": true, "dev": true,
"requires": { "requires": {
"hosted-git-info": "^2.1.4", "hosted-git-info": "2.7.1",
"is-builtin-module": "^1.0.0", "is-builtin-module": "1.0.0",
"semver": "2 || 3 || 4 || 5", "semver": "5.5.1",
"validate-npm-package-license": "^3.0.1" "validate-npm-package-license": "3.0.4"
} }
}, },
"object-assign": { "object-assign": {
@ -1118,7 +1118,7 @@
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"dev": true, "dev": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1.0.2"
} }
}, },
"onetime": { "onetime": {
@ -1127,7 +1127,7 @@
"integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
"dev": true, "dev": true,
"requires": { "requires": {
"mimic-fn": "^1.0.0" "mimic-fn": "1.2.0"
} }
}, },
"optionator": { "optionator": {
@ -1136,12 +1136,12 @@
"integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=",
"dev": true, "dev": true,
"requires": { "requires": {
"deep-is": "~0.1.3", "deep-is": "0.1.3",
"fast-levenshtein": "~2.0.4", "fast-levenshtein": "2.0.6",
"levn": "~0.3.0", "levn": "0.3.0",
"prelude-ls": "~1.1.2", "prelude-ls": "1.1.2",
"type-check": "~0.3.2", "type-check": "0.3.2",
"wordwrap": "~1.0.0" "wordwrap": "1.0.0"
} }
}, },
"os-tmpdir": { "os-tmpdir": {
@ -1156,7 +1156,7 @@
"integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"p-try": "^1.0.0" "p-try": "1.0.0"
} }
}, },
"p-locate": { "p-locate": {
@ -1165,7 +1165,7 @@
"integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
"dev": true, "dev": true,
"requires": { "requires": {
"p-limit": "^1.1.0" "p-limit": "1.3.0"
} }
}, },
"p-try": { "p-try": {
@ -1180,7 +1180,7 @@
"integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
"dev": true, "dev": true,
"requires": { "requires": {
"error-ex": "^1.2.0" "error-ex": "1.3.2"
} }
}, },
"path-exists": { "path-exists": {
@ -1189,7 +1189,7 @@
"integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
"dev": true, "dev": true,
"requires": { "requires": {
"pinkie-promise": "^2.0.0" "pinkie-promise": "2.0.1"
} }
}, },
"path-is-absolute": { "path-is-absolute": {
@ -1239,7 +1239,7 @@
"integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
"dev": true, "dev": true,
"requires": { "requires": {
"pify": "^2.0.0" "pify": "2.3.0"
} }
}, },
"pify": { "pify": {
@ -1260,7 +1260,7 @@
"integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
"dev": true, "dev": true,
"requires": { "requires": {
"pinkie": "^2.0.0" "pinkie": "2.0.4"
} }
}, },
"pkg-dir": { "pkg-dir": {
@ -1269,7 +1269,7 @@
"integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=",
"dev": true, "dev": true,
"requires": { "requires": {
"find-up": "^1.0.0" "find-up": "1.1.2"
} }
}, },
"pluralize": { "pluralize": {
@ -1302,9 +1302,9 @@
"integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
"dev": true, "dev": true,
"requires": { "requires": {
"load-json-file": "^2.0.0", "load-json-file": "2.0.0",
"normalize-package-data": "^2.3.2", "normalize-package-data": "2.4.0",
"path-type": "^2.0.0" "path-type": "2.0.0"
} }
}, },
"read-pkg-up": { "read-pkg-up": {
@ -1313,8 +1313,8 @@
"integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
"dev": true, "dev": true,
"requires": { "requires": {
"find-up": "^2.0.0", "find-up": "2.1.0",
"read-pkg": "^2.0.0" "read-pkg": "2.0.0"
}, },
"dependencies": { "dependencies": {
"find-up": { "find-up": {
@ -1323,7 +1323,7 @@
"integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
"dev": true, "dev": true,
"requires": { "requires": {
"locate-path": "^2.0.0" "locate-path": "2.0.0"
} }
} }
} }
@ -1340,8 +1340,8 @@
"integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=",
"dev": true, "dev": true,
"requires": { "requires": {
"caller-path": "^0.1.0", "caller-path": "0.1.0",
"resolve-from": "^1.0.0" "resolve-from": "1.0.1"
} }
}, },
"resolve": { "resolve": {
@ -1350,7 +1350,7 @@
"integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==",
"dev": true, "dev": true,
"requires": { "requires": {
"path-parse": "^1.0.5" "path-parse": "1.0.6"
} }
}, },
"resolve-from": { "resolve-from": {
@ -1365,8 +1365,8 @@
"integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
"dev": true, "dev": true,
"requires": { "requires": {
"onetime": "^2.0.0", "onetime": "2.0.1",
"signal-exit": "^3.0.2" "signal-exit": "3.0.2"
} }
}, },
"rimraf": { "rimraf": {
@ -1375,7 +1375,7 @@
"integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==",
"dev": true, "dev": true,
"requires": { "requires": {
"glob": "^7.0.5" "glob": "7.1.3"
} }
}, },
"run-async": { "run-async": {
@ -1384,7 +1384,7 @@
"integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=",
"dev": true, "dev": true,
"requires": { "requires": {
"is-promise": "^2.1.0" "is-promise": "2.1.0"
} }
}, },
"rxjs": { "rxjs": {
@ -1420,7 +1420,7 @@
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"dev": true, "dev": true,
"requires": { "requires": {
"shebang-regex": "^1.0.0" "shebang-regex": "1.0.0"
} }
}, },
"shebang-regex": { "shebang-regex": {
@ -1446,15 +1446,15 @@
"integrity": "sha512-gLFZz5UYvOhYzQ+DBzw/OCkmWaLAHlAyQiE2wxUOmAGVdasP9Yw93E+OwZ0UuhW3ReMu1FKniuNsL6VukvC77w==", "integrity": "sha512-gLFZz5UYvOhYzQ+DBzw/OCkmWaLAHlAyQiE2wxUOmAGVdasP9Yw93E+OwZ0UuhW3ReMu1FKniuNsL6VukvC77w==",
"dev": true, "dev": true,
"requires": { "requires": {
"@sinonjs/commons": "^1.0.2", "@sinonjs/commons": "1.0.2",
"@sinonjs/formatio": "^2.0.0", "@sinonjs/formatio": "2.0.0",
"@sinonjs/samsam": "^2.0.0", "@sinonjs/samsam": "2.0.0",
"diff": "^3.5.0", "diff": "3.5.0",
"lodash.get": "^4.4.2", "lodash.get": "4.4.2",
"lolex": "^2.7.2", "lolex": "2.7.4",
"nise": "^1.4.4", "nise": "1.4.4",
"supports-color": "^5.5.0", "supports-color": "5.5.0",
"type-detect": "^4.0.8" "type-detect": "4.0.8"
}, },
"dependencies": { "dependencies": {
"supports-color": { "supports-color": {
@ -1463,7 +1463,7 @@
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true, "dev": true,
"requires": { "requires": {
"has-flag": "^3.0.0" "has-flag": "3.0.0"
} }
} }
} }
@ -1474,7 +1474,7 @@
"integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-fullwidth-code-point": "^2.0.0" "is-fullwidth-code-point": "2.0.0"
} }
}, },
"spdx-correct": { "spdx-correct": {
@ -1483,8 +1483,8 @@
"integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==",
"dev": true, "dev": true,
"requires": { "requires": {
"spdx-expression-parse": "^3.0.0", "spdx-expression-parse": "3.0.0",
"spdx-license-ids": "^3.0.0" "spdx-license-ids": "3.0.0"
} }
}, },
"spdx-exceptions": { "spdx-exceptions": {
@ -1499,8 +1499,8 @@
"integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
"dev": true, "dev": true,
"requires": { "requires": {
"spdx-exceptions": "^2.1.0", "spdx-exceptions": "2.1.0",
"spdx-license-ids": "^3.0.0" "spdx-license-ids": "3.0.0"
} }
}, },
"spdx-license-ids": { "spdx-license-ids": {
@ -1521,8 +1521,8 @@
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-fullwidth-code-point": "^2.0.0", "is-fullwidth-code-point": "2.0.0",
"strip-ansi": "^4.0.0" "strip-ansi": "4.0.0"
} }
}, },
"strip-ansi": { "strip-ansi": {
@ -1531,7 +1531,7 @@
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-regex": "^3.0.0" "ansi-regex": "3.0.0"
}, },
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
@ -1572,12 +1572,12 @@
"integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==", "integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==",
"dev": true, "dev": true,
"requires": { "requires": {
"ajv": "^6.0.1", "ajv": "6.5.3",
"ajv-keywords": "^3.0.0", "ajv-keywords": "3.2.0",
"chalk": "^2.1.0", "chalk": "2.4.1",
"lodash": "^4.17.4", "lodash": "4.17.10",
"slice-ansi": "1.0.0", "slice-ansi": "1.0.0",
"string-width": "^2.1.1" "string-width": "2.1.1"
} }
}, },
"text-encoding": { "text-encoding": {
@ -1604,7 +1604,7 @@
"integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
"dev": true, "dev": true,
"requires": { "requires": {
"os-tmpdir": "~1.0.2" "os-tmpdir": "1.0.2"
} }
}, },
"type-check": { "type-check": {
@ -1613,7 +1613,7 @@
"integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
"dev": true, "dev": true,
"requires": { "requires": {
"prelude-ls": "~1.1.2" "prelude-ls": "1.1.2"
} }
}, },
"type-detect": { "type-detect": {
@ -1628,7 +1628,7 @@
"integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"punycode": "^2.1.0" "punycode": "2.1.1"
} }
}, },
"uuid": { "uuid": {
@ -1642,8 +1642,8 @@
"integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
"dev": true, "dev": true,
"requires": { "requires": {
"spdx-correct": "^3.0.0", "spdx-correct": "3.0.0",
"spdx-expression-parse": "^3.0.0" "spdx-expression-parse": "3.0.0"
} }
}, },
"which": { "which": {
@ -1652,7 +1652,7 @@
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"isexe": "^2.0.0" "isexe": "2.0.0"
} }
}, },
"wordwrap": { "wordwrap": {
@ -1673,7 +1673,7 @@
"integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=",
"dev": true, "dev": true,
"requires": { "requires": {
"mkdirp": "^0.5.1" "mkdirp": "0.5.1"
} }
} }
} }

Просмотреть файл

@ -121,7 +121,7 @@ describe('platform-chaos', () => {
index.auditer.initialize(context, { index.auditer.initialize(context, {
eventName: 'testEvent', eventName: 'testEvent',
resource: 'testResource' resources: 'testResource'
}) })
const logItem1 = { const logItem1 = {
@ -154,9 +154,6 @@ describe('platform-chaos', () => {
}) })
it('allows user to audit directly', () => { it('allows user to audit directly', () => {
before(() => {
index.auditer.auditQueue = []
})
function contextLog () { function contextLog () {
// in reality this would be `console.log(...arguments)` // in reality this would be `console.log(...arguments)`
// but in order to not cluter test we noop this // but in order to not cluter test we noop this
@ -177,12 +174,12 @@ describe('platform-chaos', () => {
const opts = { const opts = {
eventName: 'testEvent', eventName: 'testEvent',
resource: 'testResource' resources: 'testResource'
} }
index.auditer.initialize(context, opts) index.auditer.initialize(context, opts)
index.auditer.auditDirectly('Hello, World!', opts) index.auditer.audit('Hello, World!', opts)
context.done() context.done()