From 706834d4eabdff9b18bd3ddd9771a11b80800981 Mon Sep 17 00:00:00 2001 From: Jan Hecking Date: Wed, 20 Feb 2019 21:55:19 +0800 Subject: [PATCH 1/2] Update standard package to v12 Update from v11 to v12 and run standard --fix to correct some minor rule violations. Ref. standard changelog: https://github.com/standard/standard/blob/master/CHANGELOG.md#1200---2018-08-28 --- benchmarks/alerts.js | 2 +- benchmarks/main.js | 2 +- benchmarks/stats.js | 22 +- benchmarks/worker.js | 6 +- lib/error.js | 2 +- lib/geojson.js | 6 +- package-lock.json | 892 +++++++++++++++++---------------------- package.json | 2 +- test/apply.js | 4 +- test/batch_exists.js | 8 +- test/batch_get.js | 8 +- test/batch_read.js | 40 +- test/batch_select.js | 8 +- test/client.js | 2 +- test/command_queue.js | 4 +- test/config.js | 2 +- test/exists.js | 12 +- test/generators/value.js | 2 +- test/geojson.js | 24 +- test/get.js | 20 +- test/info.js | 4 +- test/key.js | 12 +- test/lists.js | 2 +- test/maps.js | 226 +++++----- test/operate.js | 28 +- test/predexp.js | 14 +- test/put.js | 64 +-- test/query.js | 36 +- test/remove.js | 18 +- test/scan.js | 4 +- test/select.js | 28 +- test/stress/perfdata.js | 6 +- test/stress/query.js | 2 +- test/stress/scan.js | 2 +- test/truncate.js | 6 +- test/util/options.js | 2 +- test/utils.js | 36 +- 37 files changed, 715 insertions(+), 843 deletions(-) diff --git a/benchmarks/alerts.js b/benchmarks/alerts.js index f48aac04..7c1b9865 100644 --- a/benchmarks/alerts.js +++ b/benchmarks/alerts.js @@ -51,7 +51,7 @@ function setupAlertSystem (alert) { } else { winston = require('winston') if (alert.mode === 'FILE') { - winston.add(winston.transports.file, {filename: alert.filename}) + winston.add(winston.transports.file, { filename: alert.filename }) winston.remove(winston.transports.Console) } alertMode = alert.mode diff --git a/benchmarks/main.js b/benchmarks/main.js index f0c9d39a..530b361d 100644 --- a/benchmarks/main.js +++ b/benchmarks/main.js @@ -77,7 +77,7 @@ if (argv.time !== undefined) { argv.iterations = undefined } -var alert = {mode: argv.alert, filename: argv.filename} +var alert = { mode: argv.alert, filename: argv.filename } alerts.setupAlertSystem(alert) // ***************************************************************************** diff --git a/benchmarks/stats.js b/benchmarks/stats.js index 746520bc..9964003c 100644 --- a/benchmarks/stats.js +++ b/benchmarks/stats.js @@ -167,8 +167,8 @@ function printEnvTable (print, prefix) { style: TABLE_STYLE }) - envTable.push({'Node.js Version': process.versions.node}) - envTable.push({'UV_THREADPOOL_SIZE': process.env.UV_THREADPOOL_SIZE || '-'}) + envTable.push({ 'Node.js Version': process.versions.node }) + envTable.push({ 'UV_THREADPOOL_SIZE': process.env.UV_THREADPOOL_SIZE || '-' }) printTable(envTable, print, prefix) } @@ -179,11 +179,11 @@ function printConfigTable (config, print, prefix) { style: TABLE_STYLE }) - configTable.push({'operations': config.operations}) - configTable.push({'iterations': config.iterations === undefined ? 'undefined' : config.iterations}) - configTable.push({'processes': config.processes}) - configTable.push({'promises': !!config.promises}) - configTable.push({'time': config.time === undefined ? 'undefined' : timeUnits(config.time)}) + configTable.push({ 'operations': config.operations }) + configTable.push({ 'iterations': config.iterations === undefined ? 'undefined' : config.iterations }) + configTable.push({ 'processes': config.processes }) + configTable.push({ 'promises': !!config.promises }) + configTable.push({ 'time': config.time === undefined ? 'undefined' : timeUnits(config.time) }) printTable(configTable, print, prefix) } @@ -205,22 +205,22 @@ function printTransactions (transactions, print, prefix) { var row = columns.map(function (col) { return numberFormat(transactions[col]['count'], 0) }) - table.push({'Total': row}) + table.push({ 'Total': row }) row = columns.map(function (col) { return numberFormat(transactions[col]['tps'], 0) }) - table.push({'TPS': row}) + table.push({ 'TPS': row }) row = columns.map(function (col) { return numberFormat(transactions[col]['min_tps'], 0) }) - table.push({'Min TPS': row}) + table.push({ 'Min TPS': row }) row = columns.map(function (col) { return numberFormat(transactions[col]['max_tps'], 0) }) - table.push({'Max TPS': row}) + table.push({ 'Max TPS': row }) printTable(table, print, prefix) } diff --git a/benchmarks/worker.js b/benchmarks/worker.js index 027989de..e4851ccf 100644 --- a/benchmarks/worker.js +++ b/benchmarks/worker.js @@ -88,7 +88,7 @@ let config = { } if (argv.host) { - config.hosts = [{addr: argv.host, port: argv.port || 3000}] + config.hosts = [{ addr: argv.host, port: argv.port || 3000 }] } if (argv.user !== null) { @@ -233,9 +233,9 @@ function run (options) { while (writeOps > 0 || readOps > 0) { var k = keygen(options.keyRange.min, options.keyRange.max) - var key = {ns: options.namespace, set: options.set, key: k} + var key = { ns: options.namespace, set: options.set, key: k } var record = recordgen(k, options.binSpec) - var ops = {key: key, record: record} + var ops = { key: key, record: record } if (writeOps > 0) { writeOps-- if (usePromises) { diff --git a/lib/error.js b/lib/error.js index 8fb50c88..25c87a72 100644 --- a/lib/error.js +++ b/lib/error.js @@ -137,7 +137,7 @@ class AerospikeError extends Error { setStackTrace (stack) { let firstLine = `${this.name}: ${this.message}` stack = stack.replace(/^.*$/m, firstLine) - Object.defineProperty(this, 'stack', {value: stack}) + Object.defineProperty(this, 'stack', { value: stack }) } /** diff --git a/lib/geojson.js b/lib/geojson.js index c5babdb9..fb24a542 100644 --- a/lib/geojson.js +++ b/lib/geojson.js @@ -84,7 +84,7 @@ function GeoJSON (json) { * let point = GeoJSON.Point(103.913, 1.308) */ GeoJSON.Point = function (lng, lat) { - return new GeoJSON({type: 'Point', coordinates: [lng, lat]}) + return new GeoJSON({ type: 'Point', coordinates: [lng, lat] }) } /** @@ -106,7 +106,7 @@ GeoJSON.Point = function (lng, lat) { */ GeoJSON.Polygon = function (coordinates) { coordinates = Array.prototype.slice.call(arguments) - return new GeoJSON({type: 'Polygon', coordinates: [coordinates]}) + return new GeoJSON({ type: 'Polygon', coordinates: [coordinates] }) } /** @@ -130,7 +130,7 @@ GeoJSON.Polygon = function (coordinates) { * let point = GeoJSON.Circle(103.913, 1.308, 5000) */ GeoJSON.Circle = function (lng, lat, radius) { - return new GeoJSON({type: 'AeroCircle', coordinates: [[lng, lat], radius]}) + return new GeoJSON({ type: 'AeroCircle', coordinates: [[lng, lat], radius] }) } /** diff --git a/package-lock.json b/package-lock.json index da1a19bb..c99b7aff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -145,27 +145,16 @@ } }, "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.0.tgz", + "integrity": "sha512-MW/FjM+IvU9CgBzjO3UIPCE2pyEwUsoFl+VGdczOPEdxfGFjuKny/gN54mOuX7Qxmb9Rg9MCn2oKiSUeW+pjrw==", "dev": true }, "acorn-jsx": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", - "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", - "dev": true, - "requires": { - "acorn": "^3.0.4" - }, - "dependencies": { - "acorn": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", - "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", - "dev": true - } - } + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.0.1.tgz", + "integrity": "sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg==", + "dev": true }, "ajv": { "version": "5.5.2", @@ -180,15 +169,15 @@ } }, "ajv-keywords": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz", - "integrity": "sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.0.tgz", + "integrity": "sha512-aUjdRFISbuFOl0EIZc+9e4FfZp0bDZgAdOOf30bJmw8VM9v84SHyVyxDfbWxpGYbdZD/9XoKxfHVNmxPkhwyGw==", "dev": true }, "ansi-escapes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", - "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", "dev": true }, "ansi-regex": { @@ -228,33 +217,12 @@ "es-abstract": "^1.7.0" } }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, "array-uniq": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", "dev": true }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", - "dev": true - }, "asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", @@ -376,18 +344,6 @@ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, - "buffer-from": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.0.0.tgz", - "integrity": "sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA==", - "dev": true - }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true - }, "caller-path": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", @@ -615,30 +571,12 @@ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, "contains-path": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=", "dev": true }, - "core-js": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", - "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=", - "dev": true - }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -646,12 +584,14 @@ "dev": true }, "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "dev": true, "requires": { - "lru-cache": "^4.0.1", + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", "shebang-command": "^1.2.0", "which": "^1.2.9" } @@ -696,19 +636,18 @@ "dev": true }, "define-properties": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", - "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", "dev": true, "requires": { - "foreach": "^2.0.5", - "object-keys": "^1.0.8" + "object-keys": "^1.0.12" } }, "deglob": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/deglob/-/deglob-2.1.0.tgz", - "integrity": "sha1-TUSr4W7zLHebSXK9FBqAMlApoUo=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/deglob/-/deglob-2.1.1.tgz", + "integrity": "sha512-2kjwuGGonL7gWE1XU4Fv79+vVzpoQCl0V+boMwWtOQJV2AGDabCwez++nB1Nli/8BabAfZQ/UuHPlp6AymKdWw==", "dev": true, "requires": { "find-root": "^1.0.0", @@ -717,21 +656,14 @@ "pkg-config": "^1.1.0", "run-parallel": "^1.1.2", "uniq": "^1.0.1" - } - }, - "del": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", - "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", - "dev": true, - "requires": { - "globby": "^5.0.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "rimraf": "^2.2.8" + }, + "dependencies": { + "ignore": { + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", + "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", + "dev": true + } } }, "delayed-stream": { @@ -815,15 +747,6 @@ "safer-buffer": "^2.1.0" } }, - "encoding": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", - "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", - "dev": true, - "requires": { - "iconv-lite": "~0.4.13" - } - }, "entities": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", @@ -831,36 +754,37 @@ "dev": true }, "error-ex": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", - "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "requires": { "is-arrayish": "^0.2.1" } }, "es-abstract": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.11.0.tgz", - "integrity": "sha512-ZnQrE/lXTTQ39ulXZ+J1DTFazV9qBy61x2bY071B+qGco8Z8q1QddsLdt/EF8Ai9hcWH72dWS0kFqXLxOxqslA==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", + "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", "dev": true, "requires": { - "es-to-primitive": "^1.1.1", + "es-to-primitive": "^1.2.0", "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" + "has": "^1.0.3", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-keys": "^1.0.12" } }, "es-to-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", - "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", + "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", "dev": true, "requires": { - "is-callable": "^1.1.1", + "is-callable": "^1.1.4", "is-date-object": "^1.0.1", - "is-symbol": "^1.0.1" + "is-symbol": "^1.0.2" } }, "escape-string-regexp": { @@ -870,60 +794,93 @@ "dev": true }, "eslint": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.18.2.tgz", - "integrity": "sha512-qy4i3wODqKMYfz9LUI8N2qYDkHkoieTbiHpMrYUI/WbjhXJQr7lI4VngixTgaG+yHX+NBCv7nW4hA0ShbvaNKw==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.4.0.tgz", + "integrity": "sha512-UIpL91XGex3qtL6qwyCQJar2j3osKxK9e3ano3OcGEIRM4oWIpCkDg9x95AXEC2wMs7PnxzOkPZ2gq+tsMS9yg==", "dev": true, "requires": { - "ajv": "^5.3.0", - "babel-code-frame": "^6.22.0", + "ajv": "^6.5.0", + "babel-code-frame": "^6.26.0", "chalk": "^2.1.0", - "concat-stream": "^1.6.0", - "cross-spawn": "^5.1.0", + "cross-spawn": "^6.0.5", "debug": "^3.1.0", "doctrine": "^2.1.0", - "eslint-scope": "^3.7.1", + "eslint-scope": "^4.0.0", + "eslint-utils": "^1.3.1", "eslint-visitor-keys": "^1.0.0", - "espree": "^3.5.2", - "esquery": "^1.0.0", + "espree": "^4.0.0", + "esquery": "^1.0.1", "esutils": "^2.0.2", "file-entry-cache": "^2.0.0", "functional-red-black-tree": "^1.0.1", "glob": "^7.1.2", - "globals": "^11.0.1", - "ignore": "^3.3.3", + "globals": "^11.7.0", + "ignore": "^4.0.2", "imurmurhash": "^0.1.4", - "inquirer": "^3.0.6", - "is-resolvable": "^1.0.0", - "js-yaml": "^3.9.1", + "inquirer": "^5.2.0", + "is-resolvable": "^1.1.0", + "js-yaml": "^3.11.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.3.0", - "lodash": "^4.17.4", - "minimatch": "^3.0.2", + "lodash": "^4.17.5", + "minimatch": "^3.0.4", "mkdirp": "^0.5.1", "natural-compare": "^1.4.0", "optionator": "^0.8.2", "path-is-inside": "^1.0.2", "pluralize": "^7.0.0", "progress": "^2.0.0", + "regexpp": "^2.0.0", "require-uncached": "^1.0.3", - "semver": "^5.3.0", + "semver": "^5.5.0", "strip-ansi": "^4.0.0", - "strip-json-comments": "~2.0.1", - "table": "4.0.2", - "text-table": "~0.2.0" + "strip-json-comments": "^2.0.1", + "table": "^4.0.3", + "text-table": "^0.2.0" + }, + "dependencies": { + "ajv": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.9.1.tgz", + "integrity": "sha512-XDN92U311aINL77ieWHmqCcNlwjoP5cHXDxIxbf2MaPYuCXOHS7gHH8jktxeK5omgd52XbSTX6a4Piwd1pQmzA==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "globals": { + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.11.0.tgz", + "integrity": "sha512-WHq43gS+6ufNOEqlrDBxVEbb8ntfXrfAUU2ZOpCxrBdGKW3gyv8mCxAfIBD0DroPKGrJ2eSsXsLtY9MPntsyTw==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } } }, "eslint-config-standard": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-11.0.0.tgz", - "integrity": "sha512-oDdENzpViEe5fwuRCWla7AXQd++/oyIp8zP+iP9jiUPG6NBj3SHgdgtl/kTn00AjeN+1HNvavTKmYbMo+xMOlw==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-12.0.0.tgz", + "integrity": "sha512-COUz8FnXhqFitYj4DTqHzidjIL/t4mumGZto5c7DrBpvWoie+Sn3P4sLEzUGeYhRElWuFEf8K1S1EfvD1vixCQ==", "dev": true }, "eslint-config-standard-jsx": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard-jsx/-/eslint-config-standard-jsx-5.0.0.tgz", - "integrity": "sha512-rLToPAEqLMPBfWnYTu6xRhm2OWziS2n40QFqJ8jAM8NSVzeVKTa3nclhsU4DpPJQRY60F34Oo1wi/71PN/eITg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/eslint-config-standard-jsx/-/eslint-config-standard-jsx-6.0.2.tgz", + "integrity": "sha512-D+YWAoXw+2GIdbMBRAzWwr1ZtvnSf4n4yL0gKGg7ShUOGXkSOLerI17K4F6LdQMJPNMoWYqepzQD/fKY+tXNSg==", "dev": true }, "eslint-import-resolver-node": { @@ -948,13 +905,13 @@ } }, "eslint-module-utils": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz", - "integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.3.0.tgz", + "integrity": "sha512-lmDJgeOOjk8hObTysjqH7wyMi+nsHwwvfBykwfhjR1LNdd7C2uFJBvx4OpWYpXOw4df1yE1cDEVd1yLHitk34w==", "dev": true, "requires": { "debug": "^2.6.8", - "pkg-dir": "^1.0.0" + "pkg-dir": "^2.0.0" }, "dependencies": { "debug": { @@ -968,22 +925,32 @@ } } }, + "eslint-plugin-es": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-1.4.0.tgz", + "integrity": "sha512-XfFmgFdIUDgvaRAlaXUkxrRg5JSADoRC8IkKLc/cISeR3yHVMefFHQZpcyXXEUUPHfy5DwviBcrfqlyqEwlQVw==", + "dev": true, + "requires": { + "eslint-utils": "^1.3.0", + "regexpp": "^2.0.1" + } + }, "eslint-plugin-import": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.9.0.tgz", - "integrity": "sha1-JgAu+/ylmJtyiKwEdQi9JPIXsWk=", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.14.0.tgz", + "integrity": "sha512-FpuRtniD/AY6sXByma2Wr0TXvXJ4nA/2/04VPlfpmUDPOpOY264x+ILiwnrk/k4RINgDAyFZByxqPUbSQ5YE7g==", "dev": true, "requires": { - "builtin-modules": "^1.1.1", "contains-path": "^0.1.0", "debug": "^2.6.8", "doctrine": "1.5.0", "eslint-import-resolver-node": "^0.3.1", - "eslint-module-utils": "^2.1.1", + "eslint-module-utils": "^2.2.0", "has": "^1.0.1", "lodash": "^4.17.4", "minimatch": "^3.0.3", - "read-pkg-up": "^2.0.0" + "read-pkg-up": "^2.0.0", + "resolve": "^1.6.0" }, "dependencies": { "debug": { @@ -1008,51 +975,60 @@ } }, "eslint-plugin-node": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-6.0.1.tgz", - "integrity": "sha512-Q/Cc2sW1OAISDS+Ji6lZS2KV4b7ueA/WydVWd1BECTQwVvfQy5JAi3glhINoKzoMnfnuRgNP+ZWKrGAbp3QDxw==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-7.0.1.tgz", + "integrity": "sha512-lfVw3TEqThwq0j2Ba/Ckn2ABdwmL5dkOgAux1rvOk6CO7A6yGyPI2+zIxN6FyNkp1X1X/BSvKOceD6mBWSj4Yw==", "dev": true, "requires": { - "ignore": "^3.3.6", + "eslint-plugin-es": "^1.3.1", + "eslint-utils": "^1.3.1", + "ignore": "^4.0.2", "minimatch": "^3.0.4", - "resolve": "^1.3.3", - "semver": "^5.4.1" + "resolve": "^1.8.1", + "semver": "^5.5.0" } }, "eslint-plugin-promise": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-3.7.0.tgz", - "integrity": "sha512-2WO+ZFh7vxUKRfR0cOIMrWgYKdR6S1AlOezw6pC52B6oYpd5WFghN+QHxvrRdZMtbo8h3dfUZ2o1rWb0UPbKtg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-4.0.1.tgz", + "integrity": "sha512-Si16O0+Hqz1gDHsys6RtFRrW7cCTB6P7p3OJmKp3Y3dxpQE2qwOA7d3xnV+0mBmrPoi0RBnxlCKvqu70te6wjg==", "dev": true }, "eslint-plugin-react": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.7.0.tgz", - "integrity": "sha512-KC7Snr4YsWZD5flu6A5c0AcIZidzW3Exbqp7OT67OaD2AppJtlBr/GuPrW/vaQM/yfZotEvKAdrxrO+v8vwYJA==", + "version": "7.11.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.11.1.tgz", + "integrity": "sha512-cVVyMadRyW7qsIUh3FHp3u6QHNhOgVrLQYdQEB1bPWBsgbNCHdFAeNMquBMCcZJu59eNthX053L70l7gRt4SCw==", "dev": true, "requires": { - "doctrine": "^2.0.2", - "has": "^1.0.1", + "array-includes": "^3.0.3", + "doctrine": "^2.1.0", + "has": "^1.0.3", "jsx-ast-utils": "^2.0.1", - "prop-types": "^15.6.0" + "prop-types": "^15.6.2" } }, "eslint-plugin-standard": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-3.0.1.tgz", - "integrity": "sha1-NNDJFbRe3G8BA5PH7vOCOwhWXPI=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.0.tgz", + "integrity": "sha512-OwxJkR6TQiYMmt1EsNRMe5qG3GsbjlcOhbGUBY4LtavF9DsLaTcoR+j2Tdjqi23oUwKNUqX7qcn5fPStafMdlA==", "dev": true }, "eslint-scope": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.1.tgz", - "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.0.tgz", + "integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==", "dev": true, "requires": { "esrecurse": "^4.1.0", "estraverse": "^4.1.1" } }, + "eslint-utils": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", + "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", + "dev": true + }, "eslint-visitor-keys": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", @@ -1060,13 +1036,14 @@ "dev": true }, "espree": { - "version": "3.5.4", - "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz", - "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-4.1.0.tgz", + "integrity": "sha512-I5BycZW6FCVIub93TeVY1s7vjhP9CY6cXCznIRfiig7nRviKZYdRnj/sHEWC6A7WE9RDWOFq9+7OsWSYz8qv2w==", "dev": true, "requires": { - "acorn": "^5.5.0", - "acorn-jsx": "^3.0.0" + "acorn": "^6.0.2", + "acorn-jsx": "^5.0.0", + "eslint-visitor-keys": "^1.0.0" } }, "esprima": { @@ -1146,21 +1123,6 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "fbjs": { - "version": "0.8.16", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz", - "integrity": "sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s=", - "dev": true, - "requires": { - "core-js": "^1.0.0", - "isomorphic-fetch": "^2.1.1", - "loose-envify": "^1.0.0", - "object-assign": "^4.1.0", - "promise": "^7.1.1", - "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.9" - } - }, "figures": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", @@ -1187,33 +1149,26 @@ "dev": true }, "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" + "locate-path": "^2.0.0" } }, "flat-cache": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz", - "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.4.tgz", + "integrity": "sha512-VwyB3Lkgacfik2vhqR4uv2rvebqmDvFu4jlN/C1RzWoJEo8I7z4Q404oiqYCkq41mni8EzQnm95emU9seckwtg==", "dev": true, "requires": { "circular-json": "^0.3.1", - "del": "^2.0.2", "graceful-fs": "^4.1.2", + "rimraf": "~2.6.2", "write": "^0.2.1" } }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", - "dev": true - }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -1301,20 +1256,6 @@ "integrity": "sha512-hYyf+kI8dm3nORsiiXUQigOU62hDLfJ9G01uyGMxhc6BKsircrUhC4uJPQPUSuq2GrTmiiEt7ewxlMdBewfmKQ==", "dev": true }, - "globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, "graceful-fs": { "version": "4.1.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", @@ -1344,12 +1285,12 @@ } }, "has": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", - "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, "requires": { - "function-bind": "^1.0.2" + "function-bind": "^1.1.1" } }, "has-ansi": { @@ -1367,6 +1308,12 @@ "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", "dev": true }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, "he": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", @@ -1374,9 +1321,9 @@ "dev": true }, "hosted-git-info": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.0.tgz", - "integrity": "sha512-lIbgIIQA3lz5XaB6vxakj6sDHADJiZadYEJB+FgA+C4nubM1NwcuvUr9EJPmnH1skZqpqUzWborWo8EIUi0Sdw==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", "dev": true }, "htmlparser2": { @@ -1405,18 +1352,18 @@ } }, "iconv-lite": { - "version": "0.4.21", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", - "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { - "safer-buffer": "^2.1.0" + "safer-buffer": ">= 2.1.2 < 3" } }, "ignore": { - "version": "3.3.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.8.tgz", - "integrity": "sha512-pUh+xUQQhQzevjRHHFqqcTy0/dP/kS9I8HSrUydhihjuD09W6ldVWFtIrwhXdUJHis3i2rZNqEHpZH/cbinFbg==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true }, "ignore-walk": { @@ -1461,22 +1408,21 @@ } }, "inquirer": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", - "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-5.2.0.tgz", + "integrity": "sha512-E9BmnJbAKLPGonz0HeWHtbKf+EeSP93paWO3ZYoUpq/aowXvYGjjCSuashhXPpzbArIjBbji39THkxTz9ZeEUQ==", "dev": true, "requires": { "ansi-escapes": "^3.0.0", "chalk": "^2.0.0", "cli-cursor": "^2.1.0", "cli-width": "^2.0.0", - "external-editor": "^2.0.4", + "external-editor": "^2.1.0", "figures": "^2.0.0", "lodash": "^4.3.0", "mute-stream": "0.0.7", "run-async": "^2.2.0", - "rx-lite": "^4.0.8", - "rx-lite-aggregates": "^4.0.8", + "rxjs": "^5.5.2", "string-width": "^2.1.0", "strip-ansi": "^4.0.0", "through": "^2.3.6" @@ -1488,19 +1434,10 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, - "is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", - "dev": true, - "requires": { - "builtin-modules": "^1.0.0" - } - }, "is-callable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz", - "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI=", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", "dev": true }, "is-date-object": { @@ -1515,30 +1452,6 @@ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, - "is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true - }, - "is-path-in-cwd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", - "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", - "dev": true, - "requires": { - "is-path-inside": "^1.0.0" - } - }, - "is-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", - "dev": true, - "requires": { - "path-is-inside": "^1.0.1" - } - }, "is-promise": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", @@ -1560,17 +1473,14 @@ "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", "dev": true }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, "is-symbol": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", - "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=", - "dev": true + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", + "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.0" + } }, "is-typedarray": { "version": "1.0.0", @@ -1590,16 +1500,6 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, - "isomorphic-fetch": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", - "dev": true, - "requires": { - "node-fetch": "^1.0.1", - "whatwg-fetch": ">=0.10.0" - } - }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", @@ -1634,9 +1534,9 @@ "dev": true }, "js-yaml": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", - "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", + "version": "3.12.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.1.tgz", + "integrity": "sha512-um46hB9wNOKlwkHgiuyEVAybXBjwFUV0Z/RaHJblRd9DXltue9FTYvzCr9ErQrK9Adz5MU4gHWVaNUfdmrC8qA==", "dev": true, "requires": { "argparse": "^1.0.7", @@ -1775,14 +1675,6 @@ "requires": { "p-locate": "^2.0.0", "path-exists": "^3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } } }, "lodash": { @@ -1810,22 +1702,12 @@ "dev": true }, "loose-envify": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", - "dev": true, - "requires": { - "js-tokens": "^3.0.0" - } - }, - "lru-cache": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", - "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" + "js-tokens": "^3.0.0 || ^4.0.0" } }, "marked": { @@ -1949,24 +1831,20 @@ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, - "node-fetch": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", - "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", - "dev": true, - "requires": { - "encoding": "^0.1.11", - "is-stream": "^1.0.1" - } + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true }, "normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dev": true, "requires": { "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", + "resolve": "^1.10.0", "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" } @@ -3024,9 +2902,9 @@ "dev": true }, "object-keys": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz", - "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.0.tgz", + "integrity": "sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==", "dev": true }, "once": { @@ -3068,9 +2946,9 @@ "dev": true }, "p-limit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", - "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, "requires": { "p-try": "^1.0.0" @@ -3101,13 +2979,10 @@ } }, "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true }, "path-is-absolute": { "version": "1.0.1", @@ -3121,10 +2996,16 @@ "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", "dev": true }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, "path-type": { @@ -3154,21 +3035,6 @@ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, "pkg-conf": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", @@ -3179,15 +3045,6 @@ "load-json-file": "^4.0.0" }, "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, "load-json-file": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", @@ -3230,12 +3087,12 @@ } }, "pkg-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz", - "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", "dev": true, "requires": { - "find-up": "^1.0.0" + "find-up": "^2.1.0" } }, "pluralize": { @@ -3310,37 +3167,22 @@ "dev": true }, "progress": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz", - "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "dev": true, - "requires": { - "asap": "~2.0.3" - } - }, "prop-types": { - "version": "15.6.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", - "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", + "version": "15.7.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", + "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", "dev": true, "requires": { - "fbjs": "^0.8.16", - "loose-envify": "^1.3.1", - "object-assign": "^4.1.1" + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.8.1" } }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, "psl": { "version": "1.1.29", "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", @@ -3359,6 +3201,12 @@ "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", "dev": true }, + "react-is": { + "version": "16.8.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.8.2.tgz", + "integrity": "sha512-D+NxhSR2HUCjYky1q1DwpNUD44cDpUXzSmmFyC3ug1bClcU/iDNy0YNn1iwme28fn+NFhpA13IndOd42CrFb+Q==", + "dev": true + }, "read-pkg": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", @@ -3378,17 +3226,6 @@ "requires": { "find-up": "^2.0.0", "read-pkg": "^2.0.0" - }, - "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - } } }, "readable-stream": { @@ -3406,6 +3243,12 @@ "util-deprecate": "~1.0.1" } }, + "regexpp": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", + "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "dev": true + }, "request": { "version": "2.88.0", "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", @@ -3470,12 +3313,12 @@ } }, "resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", + "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", "dev": true, "requires": { - "path-parse": "^1.0.5" + "path-parse": "^1.0.6" } }, "resolve-from": { @@ -3495,12 +3338,28 @@ } }, "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "requires": { - "glob": "^7.0.5" + "glob": "^7.1.3" + }, + "dependencies": { + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } } }, "run-async": { @@ -3518,19 +3377,13 @@ "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==", "dev": true }, - "rx-lite": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", - "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=", - "dev": true - }, - "rx-lite-aggregates": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", - "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", + "rxjs": { + "version": "5.5.12", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.12.tgz", + "integrity": "sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw==", "dev": true, "requires": { - "rx-lite": "*" + "symbol-observable": "1.0.1" } }, "safe-buffer": { @@ -3572,12 +3425,6 @@ "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", @@ -3615,9 +3462,9 @@ "dev": true }, "spdx-correct": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", - "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -3625,9 +3472,9 @@ } }, "spdx-exceptions": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", - "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", "dev": true }, "spdx-expression-parse": { @@ -3641,9 +3488,9 @@ } }, "spdx-license-ids": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", - "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz", + "integrity": "sha512-uBIcIl3Ih6Phe3XHK1NqboJLdGfwr1UN3k6wSD1dZpmPsIkb8AGNbZYJ1fOBk834+Gxy8rpfDxrS6XLEMZMY2g==", "dev": true }, "sprintf-js": { @@ -3680,26 +3527,26 @@ } }, "standard": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/standard/-/standard-11.0.1.tgz", - "integrity": "sha512-nu0jAcHiSc8H+gJCXeiziMVZNDYi8MuqrYJKxTgjP4xKXZMKm311boqQIzDrYI/ktosltxt2CbDjYQs9ANC8IA==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/standard/-/standard-12.0.1.tgz", + "integrity": "sha512-UqdHjh87OG2gUrNCSM4QRLF5n9h3TFPwrCNyVlkqu31Hej0L/rc8hzKqVvkb2W3x0WMq7PzZdkLfEcBhVOR6lg==", "dev": true, "requires": { - "eslint": "~4.18.0", - "eslint-config-standard": "11.0.0", - "eslint-config-standard-jsx": "5.0.0", - "eslint-plugin-import": "~2.9.0", - "eslint-plugin-node": "~6.0.0", - "eslint-plugin-promise": "~3.7.0", - "eslint-plugin-react": "~7.7.0", - "eslint-plugin-standard": "~3.0.1", - "standard-engine": "~8.0.0" + "eslint": "~5.4.0", + "eslint-config-standard": "12.0.0", + "eslint-config-standard-jsx": "6.0.2", + "eslint-plugin-import": "~2.14.0", + "eslint-plugin-node": "~7.0.1", + "eslint-plugin-promise": "~4.0.0", + "eslint-plugin-react": "~7.11.1", + "eslint-plugin-standard": "~4.0.0", + "standard-engine": "~9.0.0" } }, "standard-engine": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/standard-engine/-/standard-engine-8.0.1.tgz", - "integrity": "sha512-LA531C3+nljom/XRvdW/hGPXwmilRkaRkENhO3FAGF1Vtq/WtCXzgmnc5S6vUHHsgv534MRy02C1ikMwZXC+tw==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/standard-engine/-/standard-engine-9.0.0.tgz", + "integrity": "sha512-ZfNfCWZ2Xq67VNvKMPiVMKHnMdvxYzvZkf1AH8/cw2NLDBm5LRsxMqvEJpsjLI/dUosZ3Z1d6JlHDp5rAvvk2w==", "dev": true, "requires": { "deglob": "^2.1.0", @@ -3770,18 +3617,50 @@ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true }, + "symbol-observable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", + "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", + "dev": true + }, "table": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/table/-/table-4.0.2.tgz", - "integrity": "sha512-UUkEAPdSGxtRpiV9ozJ5cMTtYiqz7Ni1OGqLXRCynrvzdtR1p+cfOWe2RJLwvUG8hNanaSRjecIqwOjqeatDsA==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/table/-/table-4.0.3.tgz", + "integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==", "dev": true, "requires": { - "ajv": "^5.2.3", - "ajv-keywords": "^2.1.0", + "ajv": "^6.0.1", + "ajv-keywords": "^3.0.0", "chalk": "^2.1.0", "lodash": "^4.17.4", "slice-ansi": "1.0.0", "string-width": "^2.1.1" + }, + "dependencies": { + "ajv": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.9.1.tgz", + "integrity": "sha512-XDN92U311aINL77ieWHmqCcNlwjoP5cHXDxIxbf2MaPYuCXOHS7gHH8jktxeK5omgd52XbSTX6a4Piwd1pQmzA==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } } }, "taffydb": { @@ -3864,18 +3743,6 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "ua-parser-js": { - "version": "0.7.17", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.17.tgz", - "integrity": "sha512-uRdSdu1oA1rncCQL7sCj8vSyZkgtL7faaw9Tc9rZ3mGgraQ7+Pdx7w5mnOSF3gw9ZNG6oc+KXfkon3bKuROm0g==", - "dev": true - }, "underscore": { "version": "1.8.3", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", @@ -3905,6 +3772,23 @@ "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", "dev": true }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + } + } + }, "urlgrey": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/urlgrey/-/urlgrey-0.4.4.tgz", @@ -3924,9 +3808,9 @@ "dev": true }, "validate-npm-package-license": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", - "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, "requires": { "spdx-correct": "^3.0.0", @@ -3944,16 +3828,10 @@ "extsprintf": "^1.2.0" } }, - "whatwg-fetch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", - "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==", - "dev": true - }, "which": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", - "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -3992,12 +3870,6 @@ "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", "dev": true }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true - }, "yargs": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/yargs/-/yargs-1.3.3.tgz", diff --git a/package.json b/package.json index ddc022e1..595ed788 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "mocha-clean": "^1.0.0", "nyc": "^13.3.0", "semver": "^5.0.0", - "standard": "^11.0", + "standard": "^12.0", "tmp": "^0.0.33", "yargs": "^1.3.3" }, diff --git a/test/apply.js b/test/apply.js index 5480619b..c4cc0bd3 100644 --- a/test/apply.js +++ b/test/apply.js @@ -27,10 +27,10 @@ const keygen = helper.keygen describe('client.apply()', function () { let client = helper.client - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/apply/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/apply/' })() before(() => helper.udf.register('udf.lua') - .then(() => client.put(key, {'foo': 'bar'}, {ttl: 1000}))) + .then(() => client.put(key, { 'foo': 'bar' }, { ttl: 1000 }))) after(() => helper.udf.remove('udf.lua') .then(() => client.remove(key))) diff --git a/test/batch_exists.js b/test/batch_exists.js index e41f47eb..d1d18790 100644 --- a/test/batch_exists.js +++ b/test/batch_exists.js @@ -32,9 +32,9 @@ describe('client.batchExists()', function () { it('should successfully find 10 records', function () { var numberOfRecords = 10 - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/batch_exists/10/', random: false}) - var mgen = metagen.constant({ttl: 1000}) - var rgen = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/batch_exists/10/', random: false }) + var mgen = metagen.constant({ ttl: 1000 }) + var rgen = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() }) return putgen.put(numberOfRecords, kgen, rgen, mgen) .then(records => { @@ -52,7 +52,7 @@ describe('client.batchExists()', function () { it('should fail finding 10 records', function (done) { var numberOfRecords = 10 - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/batch_exists/fail/', random: false}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/batch_exists/fail/', random: false }) var keys = keygen.range(kgen, numberOfRecords) client.batchExists(keys, function (err, results) { diff --git a/test/batch_get.js b/test/batch_get.js index 6201ab81..d87ea097 100644 --- a/test/batch_get.js +++ b/test/batch_get.js @@ -32,9 +32,9 @@ describe('client.batchGet()', function () { it('should successfully read 10 records', function () { var numberOfRecords = 10 - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/batch_get/success', random: false}) - var mgen = metagen.constant({ttl: 1000}) - var rgen = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/batch_get/success', random: false }) + var mgen = metagen.constant({ ttl: 1000 }) + var rgen = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() }) return putgen.put(numberOfRecords, kgen, rgen, mgen) .then(records => { @@ -53,7 +53,7 @@ describe('client.batchGet()', function () { it('should fail reading 10 records', function (done) { var numberOfRecords = 10 - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/batch_get/fail/', random: false}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/batch_get/fail/', random: false }) var keys = keygen.range(kgen, numberOfRecords) client.batchGet(keys, function (err, results) { expect(err).not.to.be.ok() diff --git a/test/batch_read.js b/test/batch_read.js index 1ed5440e..aec49184 100644 --- a/test/batch_read.js +++ b/test/batch_read.js @@ -35,8 +35,8 @@ describe('client.batchRead()', function () { before(function () { const nrecords = 10 - const kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/batch_read/', random: false}) - const mgen = metagen.constant({ttl: 1000}) + const kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/batch_read/', random: false }) + const mgen = metagen.constant({ ttl: 1000 }) const rgen = recgen.record({ i: valgen.integer(), s: valgen.string(), @@ -48,11 +48,11 @@ describe('client.batchRead()', function () { it('returns the status whether each key was found or not', function (done) { let batchRecords = [ - {key: new Key(helper.namespace, helper.set, 'test/batch_read/1')}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/3')}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/5')}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/no_such_key')}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/not_either')} + { key: new Key(helper.namespace, helper.set, 'test/batch_read/1') }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/3') }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/5') }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/no_such_key') }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/not_either') } ] client.batchRead(batchRecords, function (err, results) { @@ -70,9 +70,9 @@ describe('client.batchRead()', function () { it('returns only meta data if no bins are selected', function (done) { var batchRecords = [ - {key: new Key(helper.namespace, helper.set, 'test/batch_read/1')}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/3')}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/5')} + { key: new Key(helper.namespace, helper.set, 'test/batch_read/1') }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/3') }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/5') } ] client.batchRead(batchRecords, function (err, results) { @@ -88,9 +88,9 @@ describe('client.batchRead()', function () { it('returns just the selected bins', function (done) { var batchRecords = [ - {key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), bins: ['i']}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/3'), bins: ['i']}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/5'), bins: ['i']} + { key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), bins: ['i'] }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/3'), bins: ['i'] }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/5'), bins: ['i'] } ] client.batchRead(batchRecords, function (err, results) { @@ -108,9 +108,9 @@ describe('client.batchRead()', function () { it('returns the entire record', function (done) { var batchRecords = [ - {key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), read_all_bins: true}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/3'), read_all_bins: true}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/5'), read_all_bins: true} + { key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), read_all_bins: true }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/3'), read_all_bins: true }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/5'), read_all_bins: true } ] client.batchRead(batchRecords, function (err, results) { @@ -128,9 +128,9 @@ describe('client.batchRead()', function () { it('returns selected bins for each key', function (done) { var batchRecords = [ - {key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), read_all_bins: true}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/3'), read_all_bins: false, bins: ['i']}, - {key: new Key(helper.namespace, helper.set, 'test/batch_read/5'), read_all_bins: false} + { key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), read_all_bins: true }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/3'), read_all_bins: false, bins: ['i'] }, + { key: new Key(helper.namespace, helper.set, 'test/batch_read/5'), read_all_bins: false } ] client.batchRead(batchRecords, function (err, results) { @@ -182,7 +182,7 @@ describe('client.batchRead()', function () { it('returns a Promise that resolves to the batch results', function () { var batchRecords = [ - {key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), read_all_bins: true} + { key: new Key(helper.namespace, helper.set, 'test/batch_read/1'), read_all_bins: true } ] return client.batchRead(batchRecords) diff --git a/test/batch_select.js b/test/batch_select.js index fd656e80..2e60e013 100644 --- a/test/batch_select.js +++ b/test/batch_select.js @@ -32,9 +32,9 @@ describe('client.batchSelect()', function () { it('should successfully read bins from 10 records', function () { var numberOfRecords = 10 - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/batch_get/success', random: false}) - var mgen = metagen.constant({ttl: 1000}) - var rgen = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/batch_get/success', random: false }) + var mgen = metagen.constant({ ttl: 1000 }) + var rgen = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() }) return putgen.put(numberOfRecords, kgen, rgen, mgen) .then(records => { @@ -52,7 +52,7 @@ describe('client.batchSelect()', function () { it('should fail reading bins from non-existent records', function (done) { var numberOfRecords = 10 - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/batch_get/fail', random: false}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/batch_get/fail', random: false }) var keys = keygen.range(kgen, numberOfRecords) var bins = ['i', 's'] client.batchSelect(keys, bins, function (err, results) { diff --git a/test/client.js b/test/client.js index f79d6eb9..1e961aa2 100644 --- a/test/client.js +++ b/test/client.js @@ -56,7 +56,7 @@ describe('Client', function () { describe('#close', function () { it('should be a no-op if close is called after connection error #noserver', function (done) { - const client = new Client({hosts: '127.0.0.1:0'}) + const client = new Client({ hosts: '127.0.0.1:0' }) client.connect(error => { expect(error.message).to.match(/Failed to connect/) client.close(false) diff --git a/test/command_queue.js b/test/command_queue.js index 83de5a71..7a20e106 100644 --- a/test/command_queue.js +++ b/test/command_queue.js @@ -28,7 +28,7 @@ describe('Command Queue #slow', function () { Aerospike.connect(config) .then(client => { let cmds = Array.from({ length: 10 }, (_, i) => - client.put(new Aerospike.Key('test', 'test', i), {i: i})) + client.put(new Aerospike.Key('test', 'test', i), { i: i })) Promise.all(cmds) .then(results => done(results.length)) .then(() => client.close()) @@ -45,7 +45,7 @@ describe('Command Queue #slow', function () { Aerospike.connect(config) .then(client => { let cmds = Array.from({ length: 10 }, (_, i) => - client.put(new Aerospike.Key('test', 'test', i), {i: i})) + client.put(new Aerospike.Key('test', 'test', i), { i: i })) Promise.all(cmds) .then(() => done('All commands processed successfully')) .catch(error => done(error.message)) diff --git a/test/config.js b/test/config.js index de35297d..24907d42 100644 --- a/test/config.js +++ b/test/config.js @@ -128,7 +128,7 @@ describe('Config #noserver', function () { policies: 1000, connTimeoutMs: 1.5, tenderInterval: '1000', - user: {name: 'admin'}, + user: { name: 'admin' }, password: 12345, sharedMemory: true, rackId: 'myRack' diff --git a/test/exists.js b/test/exists.js index ff76dd22..b16ac9a1 100644 --- a/test/exists.js +++ b/test/exists.js @@ -26,16 +26,16 @@ describe('client.exists()', function () { context('Promises', function () { it('returns true if the record exists', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/exists/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/exists/' })() - return client.put(key, {str: 'abcde'}) + return client.put(key, { str: 'abcde' }) .then(() => client.exists(key)) .then(result => expect(result).to.be.true()) .then(() => client.remove(key)) }) it('returns false if the record does not exist', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/exists/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/exists/' })() return client.exists(key) .then(result => expect(result).to.be.false()) @@ -44,9 +44,9 @@ describe('client.exists()', function () { context('Callbacks', function () { it('returns true if the record exists', function (done) { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/exists/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/exists/' })() - client.put(key, {str: 'abcde'}, error => { + client.put(key, { str: 'abcde' }, error => { if (error) throw error client.exists(key, (error, result) => { if (error) throw error @@ -60,7 +60,7 @@ describe('client.exists()', function () { }) it('returns false if the record does not exist', function (done) { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/exists/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/exists/' })() client.exists(key, (error, result) => { if (error) throw error diff --git a/test/generators/value.js b/test/generators/value.js index 4ed4d29f..51034291 100644 --- a/test/generators/value.js +++ b/test/generators/value.js @@ -160,7 +160,7 @@ function map () { var num = integer() var str = string() var uint = bytes() - var map = {itype: num(), stype: str(), btyte: uint()} + var map = { itype: num(), stype: str(), btyte: uint() } return map } } diff --git a/test/geojson.js b/test/geojson.js index 858079b5..315b19b0 100644 --- a/test/geojson.js +++ b/test/geojson.js @@ -26,15 +26,15 @@ const helper = require('./test_helper') describe('Aerospike.GeoJSON', function () { context('GeoJSON class #noserver', function () { - let subject = new GeoJSON({type: 'Point', coordinates: [103.913, 1.308]}) + let subject = new GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] }) describe('constructor', function () { it('returns a new GeoJSON value when called as an Object constructor', function () { - expect(new GeoJSON({type: 'Point', coordinates: [103.913, 1.308]})).to.be.instanceof(GeoJSON) + expect(new GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] })).to.be.instanceof(GeoJSON) }) it('returns a new GeoJSON value when called as function', function () { - expect(GeoJSON({type: 'Point', coordinates: [103.913, 1.308]})).to.be.instanceof(GeoJSON) + expect(GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] })).to.be.instanceof(GeoJSON) }) it('parses a GeoJSON string', function () { @@ -49,13 +49,13 @@ describe('Aerospike.GeoJSON', function () { describe('#value()', function () { it('returns the value as a JSON object', function () { - expect(subject.value()).to.eql({type: 'Point', coordinates: [103.913, 1.308]}) + expect(subject.value()).to.eql({ type: 'Point', coordinates: [103.913, 1.308] }) }) }) describe('#toJSON()', function () { it('returns the GeoJSON value as a JSON object', function () { - expect(subject.toJSON()).to.eql({type: 'Point', coordinates: [103.913, 1.308]}) + expect(subject.toJSON()).to.eql({ type: 'Point', coordinates: [103.913, 1.308] }) }) }) @@ -67,21 +67,21 @@ describe('Aerospike.GeoJSON', function () { describe('GeoJSON.Point()', function () { it('returns the lat, lng as a GeoJSON point value', function () { - var point = new GeoJSON({type: 'Point', coordinates: [103.913, 1.308]}) + var point = new GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] }) expect(GeoJSON.Point(103.913, 1.308)).to.eql(point) }) }) describe('GeoJSON.Polygon()', function () { it('returns the coordinates as a GeoJSON polygon value', function () { - var polygon = new GeoJSON({type: 'Polygon', coordinates: [[[103.913, 1.308], [104.913, 1.308], [104.913, 1.408], [103.913, 1.408], [103.913, 1.408]]]}) + var polygon = new GeoJSON({ type: 'Polygon', coordinates: [[[103.913, 1.308], [104.913, 1.308], [104.913, 1.408], [103.913, 1.408], [103.913, 1.408]]] }) expect(GeoJSON.Polygon([103.913, 1.308], [104.913, 1.308], [104.913, 1.408], [103.913, 1.408], [103.913, 1.408])).to.eql(polygon) }) }) describe('GeoJSON.Circle()', function () { it('creates a GeoJSON circle representation', function () { - let circle = new GeoJSON({type: 'AeroCircle', coordinates: [[-122.250629, 37.871022], 300]}) + let circle = new GeoJSON({ type: 'AeroCircle', coordinates: [[-122.250629, 37.871022], 300] }) expect(GeoJSON.Circle(-122.250629, 37.871022, 300)).to.eql(circle) }) }) @@ -92,13 +92,13 @@ describe('Aerospike.GeoJSON', function () { const point = JSON.stringify({ type: 'Point', coordinates: [103.9139, 1.3030] }) const geojson = GeoJSON(point) const key = new Key(helper.namespace, helper.set, 'test/geojson') - const meta = {ttl: 1000} + const meta = { ttl: 1000 } const policy = new Aerospike.WritePolicy({ exists: Aerospike.policy.exists.CREATE_OR_REPLACE }) it('can put/get a GeoJSON bin value', function (done) { - const record = {location: geojson} + const record = { location: geojson } client.put(key, record, meta, policy, function (err) { if (err) throw err @@ -111,7 +111,7 @@ describe('Aerospike.GeoJSON', function () { }) it('can put/get a GeoJSON value in a list bin', function (done) { - const record = {locations: [geojson, geojson]} + const record = { locations: [geojson, geojson] } client.put(key, record, meta, policy, function (err) { if (err) throw err @@ -124,7 +124,7 @@ describe('Aerospike.GeoJSON', function () { }) it('can put/get a GeoJSON value in a map bin', function (done) { - const record = {map: {location: geojson}} + const record = { map: { location: geojson } } client.put(key, record, meta, policy, function (err) { if (err) throw err diff --git a/test/get.js b/test/get.js index fe7969d7..82781576 100644 --- a/test/get.js +++ b/test/get.js @@ -32,9 +32,9 @@ describe('client.get()', function () { var client = helper.client it('should read the record', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/get/'})() - var meta = metagen.constant({ttl: 1000})() - var record = recgen.constant({i: 123, s: 'abc'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/get/' })() + var meta = metagen.constant({ ttl: 1000 })() + var record = recgen.constant({ i: 123, s: 'abc' })() client.put(key, record, meta, function (err) { if (err) throw err @@ -49,7 +49,7 @@ describe('client.get()', function () { }) it('should not find the record', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/not_found/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/not_found/' })() client.get(key, function (err, record) { expect(err.code).to.equal(status.ERR_RECORD_NOT_FOUND) @@ -60,7 +60,7 @@ describe('client.get()', function () { context('with ReadPolicy', function () { context('with deserialize: false', function () { it('should return lists and maps as raw bytes', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/get/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/get/' })() let bins = { i: 123, s: 'abc', @@ -85,9 +85,9 @@ describe('client.get()', function () { }) it('should return the TTL for a never expiring record as Aerospike.ttl.NEVER_EXPIRE', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/get/'})() - var meta = metagen.constant({ttl: Aerospike.ttl.NEVER_EXPIRE})() - var record = recgen.constant({i: 123, s: 'abc'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/get/' })() + var meta = metagen.constant({ ttl: Aerospike.ttl.NEVER_EXPIRE })() + var record = recgen.constant({ i: 123, s: 'abc' })() client.put(key, record, meta, function (err) { if (err) throw err @@ -103,7 +103,7 @@ describe('client.get()', function () { }) it('should return a Promise that resolves to a Record', function () { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/get/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/get/' })() return client.put(key, { i: 42 }) .then(() => client.get(key)) @@ -113,7 +113,7 @@ describe('client.get()', function () { it('fetches a record given the digest', function () { let key = new Aerospike.Key('test', 'test', 'digestOnly') - client.put(key, {foo: 'bar'}) + client.put(key, { foo: 'bar' }) .then(() => { let digest = key.digest let key2 = new Aerospike.Key('test', null, null, digest) diff --git a/test/info.js b/test/info.js index 02ce02ee..ca3fb331 100644 --- a/test/info.js +++ b/test/info.js @@ -119,13 +119,13 @@ context('Info commands', function () { it('should parse key-value pairs from an info string', function () { var infoStr = 'version\t1\nedition\tCommunity Edition\n' var infoHash = info.parse(infoStr) - expect(infoHash).to.eql({version: 1, edition: 'Community Edition'}) + expect(infoHash).to.eql({ version: 1, edition: 'Community Edition' }) }) it('should parse nested key-value pairs', function () { var infoStr = 'statistics\tmem=10;req=20\n' var infoHash = info.parse(infoStr) - expect(infoHash['statistics']).to.eql({mem: 10, req: 20}) + expect(infoHash['statistics']).to.eql({ mem: 10, req: 20 }) }) it('should parse list values', function () { diff --git a/test/key.js b/test/key.js index 6967464e..c4c1d795 100644 --- a/test/key.js +++ b/test/key.js @@ -215,24 +215,24 @@ context('Plain Object Keys (for backward compatibility)', function () { var client = helper.client it('accepts plain objects as user keys', function (done) { - var key = {ns: helper.namespace, set: helper.set, key: 1234} - client.put(key, {foo: 'bar'}, function (err) { + var key = { ns: helper.namespace, set: helper.set, key: 1234 } + client.put(key, { foo: 'bar' }, function (err) { expect(err).to.not.be.ok() done() }) }) it('returns an error for an unsupported float user key', function (done) { - var key = {ns: helper.namespace, set: helper.set, key: 3.1415} - client.put(key, {foo: 'bar'}, function (err) { + var key = { ns: helper.namespace, set: helper.set, key: 3.1415 } + client.put(key, { foo: 'bar' }, function (err) { expect(err.code).to.equal(status.ERR_PARAM) done() }) }) it('returns an error for an invalid user key', function (done) { - var key = {ns: helper.namespace, set: helper.set, key: {a: 1, b: 2, c: 3}} - client.put(key, {foo: 'bar'}, function (err) { + var key = { ns: helper.namespace, set: helper.set, key: { a: 1, b: 2, c: 3 } } + client.put(key, { foo: 'bar' }, function (err) { expect(err.code).to.equal(status.ERR_PARAM) done() }) diff --git a/test/lists.js b/test/lists.js index 69eaaaa7..0ddeb362 100644 --- a/test/lists.js +++ b/test/lists.js @@ -75,7 +75,7 @@ describe('client.operate() - CDT List operations', function () { function createRecord (bins) { return function (state) { - let key = helper.keygen.string(helper.namespace, helper.set, {prefix: 'cdt_list/'})() + let key = helper.keygen.string(helper.namespace, helper.set, { prefix: 'cdt_list/' })() let meta = { ttl: 600 } let policy = new Aerospike.WritePolicy({ exists: Aerospike.policy.exists.CREATE_OR_REPLACE diff --git a/test/maps.js b/test/maps.js index 4f1301d0..48b0e3b2 100644 --- a/test/maps.js +++ b/test/maps.js @@ -74,7 +74,7 @@ describe('client.operate() - CDT Map operations', function () { function createRecord (bins) { return function (state) { - let key = helper.keygen.string(helper.namespace, helper.set, {prefix: 'cdt_map/'})() + let key = helper.keygen.string(helper.namespace, helper.set, { prefix: 'cdt_map/' })() let meta = { ttl: 600 } let policy = new Aerospike.WritePolicy({ exists: Aerospike.policy.exists.CREATE_OR_REPLACE @@ -163,10 +163,10 @@ describe('client.operate() - CDT Map operations', function () { it('replaces the item and returns the size of the map', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.put('map', 'b', 99))) .then(assertResultEql({ map: 3 })) - .then(assertRecordEql({ map: {a: 1, b: 99, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 99, c: 3 } })) .then(cleanup()) }) @@ -175,7 +175,7 @@ describe('client.operate() - CDT Map operations', function () { .then(createRecord({ i: 1 })) .then(operate(maps.put('map', 'a', 1))) .then(assertResultEql({ map: 1 })) - .then(assertRecordEql({ i: 1, map: {a: 1} })) + .then(assertRecordEql({ i: 1, map: { a: 1 } })) .then(cleanup()) }) @@ -195,16 +195,16 @@ describe('client.operate() - CDT Map operations', function () { it('overwrites an existing key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.put('map', 'b', 99, updateOnlyPolicy))) .then(assertResultEql({ map: 3 })) - .then(assertRecordEql({ map: {a: 1, b: 99, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 99, c: 3 } })) .then(cleanup()) }) it('fails to write a non-existing key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(expectError()) .then(operate(maps.put('map', 'd', 99, updateOnlyPolicy))) .then(assertError(status.ERR_FAIL_ELEMENT_NOT_FOUND)) @@ -221,16 +221,16 @@ describe('client.operate() - CDT Map operations', function () { it('overwrites an existing key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.put('map', 'b', 99, policy))) .then(assertResultEql({ map: 3 })) - .then(assertRecordEql({ map: {a: 1, b: 99, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 99, c: 3 } })) .then(cleanup()) }) it('fails to write a non-existing key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(expectError()) .then(operate(maps.put('map', 'd', 99, policy))) .then(assertError(status.ERR_FAIL_ELEMENT_NOT_FOUND)) @@ -244,10 +244,10 @@ describe('client.operate() - CDT Map operations', function () { it('does not add the item but returns ok', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.put('map', 'd', 99, policy))) .then(assertResultEql({ map: 3 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3 } })) .then(cleanup()) }) }) @@ -260,7 +260,7 @@ describe('client.operate() - CDT Map operations', function () { it('fails to overwrite an existing key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(expectError()) .then(operate(maps.put('map', 'b', 99, createOnlyPolicy))) .then(assertError(status.ERR_FAIL_ELEMENT_EXISTS)) @@ -269,10 +269,10 @@ describe('client.operate() - CDT Map operations', function () { it('creates a new key if it does not exist', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.put('map', 'd', 99, createOnlyPolicy))) .then(assertResultEql({ map: 4 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3, d: 99} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3, d: 99 } })) .then(cleanup()) }) }) @@ -286,7 +286,7 @@ describe('client.operate() - CDT Map operations', function () { it('fails to overwrite an existing key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(expectError()) .then(operate(maps.put('map', 'b', 99, policy))) .then(assertError(status.ERR_FAIL_ELEMENT_EXISTS)) @@ -295,10 +295,10 @@ describe('client.operate() - CDT Map operations', function () { it('creates a new key if it does not exist', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.put('map', 'd', 99, policy))) .then(assertResultEql({ map: 4 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3, d: 99} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3, d: 99 } })) .then(cleanup()) }) @@ -309,10 +309,10 @@ describe('client.operate() - CDT Map operations', function () { it('does not update the item but returns ok', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.put('map', 'b', 99, policy))) .then(assertResultEql({ map: 3 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3 } })) .then(cleanup()) }) }) @@ -322,10 +322,10 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.putItems', function () { it('adds each item to the map and returns the size of the map', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.putItems('map', { c: 99, d: 100 }))) .then(assertResultEql({ map: 4 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 99, d: 100} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 99, d: 100 } })) .then(cleanup()) }) @@ -338,7 +338,7 @@ describe('client.operate() - CDT Map operations', function () { it('fails if any of the items do not yet exist in the map', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(expectError()) .then(operate(maps.putItems('map', { c: 10, x: 100 }, policy))) .then(assertError(status.ERR_FAIL_ELEMENT_NOT_FOUND)) @@ -352,10 +352,10 @@ describe('client.operate() - CDT Map operations', function () { it('does not update the map but returns ok', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(operate(maps.putItems('map', { c: 10, x: 100 }, policy))) .then(assertResultEql({ map: 5 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(cleanup()) }) @@ -366,10 +366,10 @@ describe('client.operate() - CDT Map operations', function () { it('updates only the existing items', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(operate(maps.putItems('map', { c: 10, x: 100 }, policy))) .then(assertResultEql({ map: 5 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 10, d: 4, e: 5} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 10, d: 4, e: 5 } })) .then(cleanup()) }) }) @@ -385,7 +385,7 @@ describe('client.operate() - CDT Map operations', function () { it('fails if any of the items already exist in the map', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(expectError()) .then(operate(maps.putItems('map', { c: 10, x: 100 }, policy))) .then(assertError(status.ERR_FAIL_ELEMENT_EXISTS)) @@ -399,10 +399,10 @@ describe('client.operate() - CDT Map operations', function () { it('does not update the map but returns ok', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(operate(maps.putItems('map', { c: 10, x: 100 }, policy))) .then(assertResultEql({ map: 5 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(cleanup()) }) @@ -413,10 +413,10 @@ describe('client.operate() - CDT Map operations', function () { it('adds only the keys that do not exist yet', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4, e: 5} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4, e: 5 } })) .then(operate(maps.putItems('map', { c: 10, x: 100 }, policy))) .then(assertResultEql({ map: 6 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3, d: 4, e: 5, x: 100} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3, d: 4, e: 5, x: 100 } })) .then(cleanup()) }) }) @@ -427,19 +427,19 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.increment', function () { it('increments the value of the entry and returns the final value', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.increment('map', 'b', 10))) .then(assertResultEql({ map: 12 })) - .then(assertRecordEql({ map: {a: 1, b: 12, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 12, c: 3 } })) .then(cleanup()) }) it('creates a new entry if the key does not exist yet', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.increment('map', 'd', 10))) .then(assertResultEql({ map: 10 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3, d: 10} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3, d: 10 } })) .then(cleanup()) }) }) @@ -447,19 +447,19 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.decrement', function () { it('decrements the value of the entry and returns the final value', function () { return initState() - .then(createRecord({ map: {a: 1, b: 12, c: 3} })) + .then(createRecord({ map: { a: 1, b: 12, c: 3 } })) .then(operate(maps.decrement('map', 'b', 10))) .then(assertResultEql({ map: 2 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3 } })) .then(cleanup()) }) it('creates a new entry if the key does not exist yet', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.decrement('map', 'd', 1))) .then(assertResultEql({ map: -1 })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3, d: -1} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3, d: -1 } })) .then(cleanup()) }) }) @@ -467,7 +467,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.clear', function () { it('removes all entries from the map', function () { return initState() - .then(createRecord({ map: {a: 1, b: 12, c: 3} })) + .then(createRecord({ map: { a: 1, b: 12, c: 3 } })) .then(operate(maps.clear('map'))) .then(assertResultEql({ map: null })) .then(assertRecordEql({ map: { } })) @@ -478,19 +478,19 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByKey', function () { it('removes a map entry identified by key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByKey('map', 'b', maps.returnType.VALUE))) .then(assertResultEql({ map: 2 })) - .then(assertRecordEql({ map: {a: 1, c: 3} })) + .then(assertRecordEql({ map: { a: 1, c: 3 } })) .then(cleanup()) }) it('does not fail when removing a non-existing key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByKey('map', 'd', maps.returnType.VALUE))) .then(assertResultEql({ map: null })) - .then(assertRecordEql({ map: {a: 1, b: 2, c: 3} })) + .then(assertRecordEql({ map: { a: 1, b: 2, c: 3 } })) .then(cleanup()) }) }) @@ -498,19 +498,19 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByKeyList', function () { it('removes map entries identified by one or more keys', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByKeyList('map', ['a', 'c'], maps.returnType.VALUE))) .then(assertResultSatisfy(result => eql(result.map.sort(), [1, 3]))) - .then(assertRecordEql({ map: {b: 2} })) + .then(assertRecordEql({ map: { b: 2 } })) .then(cleanup()) }) it('skips non-existent keys', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByKeyList('map', ['a', 'x', 'y', 'z', 'c'], maps.returnType.VALUE))) .then(assertResultSatisfy(result => eql(result.map.sort(), [1, 3]))) - .then(assertRecordEql({ map: {b: 2} })) + .then(assertRecordEql({ map: { b: 2 } })) .then(cleanup()) }) }) @@ -518,31 +518,31 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByKeyRange', function () { it('removes map entries identified by key range', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4 } })) .then(orderByKey('map')) .then(operate(maps.removeByKeyRange('map', 'b', 'd', maps.returnType.VALUE))) .then(assertResultEql({ map: [2, 3] })) - .then(assertRecordEql({ map: {a: 1, d: 4} })) + .then(assertRecordEql({ map: { a: 1, d: 4 } })) .then(cleanup()) }) it('removes all keys from the specified start key until the end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4 } })) .then(orderByKey('map')) .then(operate(maps.removeByKeyRange('map', 'b', null, maps.returnType.VALUE))) .then(assertResultEql({ map: [2, 3, 4] })) - .then(assertRecordEql({ map: {a: 1} })) + .then(assertRecordEql({ map: { a: 1 } })) .then(cleanup()) }) it('removes all keys from the start to the specified end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4 } })) .then(orderByKey('map')) .then(operate(maps.removeByKeyRange('map', null, 'b', maps.returnType.VALUE))) .then(assertResultEql({ map: [1] })) - .then(assertRecordEql({ map: {b: 2, c: 3, d: 4} })) + .then(assertRecordEql({ map: { b: 2, c: 3, d: 4 } })) .then(cleanup()) }) }) @@ -553,11 +553,11 @@ describe('client.operate() - CDT Map operations', function () { context('with count', function () { it('removes map entries nearest to key and greater, by index', function () { return initState() - .then(createRecord({ map: {a: 17, e: 2, f: 15, j: 10} })) + .then(createRecord({ map: { a: 17, e: 2, f: 15, j: 10 } })) .then(orderByKey('map')) .then(operate(maps.removeByKeyRelIndexRange('map', 'f', 0, 1).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['f'] })) - .then(assertRecordEql({ map: {a: 17, e: 2, j: 10} })) + .then(assertRecordEql({ map: { a: 17, e: 2, j: 10 } })) .then(cleanup()) }) }) @@ -565,11 +565,11 @@ describe('client.operate() - CDT Map operations', function () { context('without count', function () { it('removes map entries nearest to key and greater, by index', function () { return initState() - .then(createRecord({ map: {a: 17, e: 2, f: 15, j: 10} })) + .then(createRecord({ map: { a: 17, e: 2, f: 15, j: 10 } })) .then(orderByKey('map')) .then(operate(maps.removeByKeyRelIndexRange('map', 'f', 0).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['f', 'j'] })) - .then(assertRecordEql({ map: {a: 17, e: 2} })) + .then(assertRecordEql({ map: { a: 17, e: 2 } })) .then(cleanup()) }) }) @@ -578,10 +578,10 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByValue', function () { it('removes a map entry identified by value', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByValue('map', 2, maps.returnType.RANK))) .then(assertResultEql({ map: [1] })) - .then(assertRecordEql({ map: {a: 1, c: 3} })) + .then(assertRecordEql({ map: { a: 1, c: 3 } })) .then(cleanup()) }) }) @@ -589,19 +589,19 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByValueList', function () { it('removes map entries identified by one or more values', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByValueList('map', [1, 3], maps.returnType.RANK))) .then(assertResultEql({ map: [0, 2] })) - .then(assertRecordEql({ map: {b: 2} })) + .then(assertRecordEql({ map: { b: 2 } })) .then(cleanup()) }) it('skips non-existent values', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByValueList('map', [1, 99, 3], maps.returnType.RANK))) .then(assertResultEql({ map: [0, 2] })) - .then(assertRecordEql({ map: {b: 2} })) + .then(assertRecordEql({ map: { b: 2 } })) .then(cleanup()) }) }) @@ -609,28 +609,28 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByValueRange', function () { it('removes map entries identified by value range', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 2, d: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 2, d: 3 } })) .then(operate(maps.removeByValueRange('map', 2, 3, maps.returnType.RANK))) .then(assertResultEql({ map: [1, 2] })) - .then(assertRecordEql({ map: {a: 1, d: 3} })) + .then(assertRecordEql({ map: { a: 1, d: 3 } })) .then(cleanup()) }) it('removes all keys from the specified start value until the end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByValueRange('map', 2, null, maps.returnType.RANK))) .then(assertResultEql({ map: [1, 2] })) - .then(assertRecordEql({ map: {a: 1} })) + .then(assertRecordEql({ map: { a: 1 } })) .then(cleanup()) }) it('removes all keys from the start to the specified end value', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByValueRange('map', null, 2, maps.returnType.RANK))) .then(assertResultEql({ map: [0] })) - .then(assertRecordEql({ map: {b: 2, c: 3} })) + .then(assertRecordEql({ map: { b: 2, c: 3 } })) .then(cleanup()) }) }) @@ -641,11 +641,11 @@ describe('client.operate() - CDT Map operations', function () { context('with count', function () { it('removes map entries nearest to value and greater by relative rank', function () { return initState() - .then(createRecord({ map: {e: 2, j: 10, f: 15, a: 17} })) + .then(createRecord({ map: { e: 2, j: 10, f: 15, a: 17 } })) .then(orderByKeyValue('map')) .then(operate(maps.removeByValueRelRankRange('map', 11, 1, 1).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['a'] })) - .then(assertRecordEql({ map: {e: 2, j: 10, f: 15} })) + .then(assertRecordEql({ map: { e: 2, j: 10, f: 15 } })) .then(cleanup()) }) }) @@ -653,11 +653,11 @@ describe('client.operate() - CDT Map operations', function () { context('without count', function () { it('removes map entries nearest to value and greater by relative rank', function () { return initState() - .then(createRecord({ map: {e: 2, j: 10, f: 15, a: 17} })) + .then(createRecord({ map: { e: 2, j: 10, f: 15, a: 17 } })) .then(orderByKeyValue('map')) .then(operate(maps.removeByValueRelRankRange('map', 11, -1).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['j', 'f', 'a'] })) - .then(assertRecordEql({ map: {e: 2} })) + .then(assertRecordEql({ map: { e: 2 } })) .then(cleanup()) }) }) @@ -666,10 +666,10 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByIndex', function () { it('removes a map entry identified by index', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByIndex('map', 1, maps.returnType.KEY))) .then(assertResultEql({ map: 'b' })) - .then(assertRecordEql({ map: {a: 1, c: 3} })) + .then(assertRecordEql({ map: { a: 1, c: 3 } })) .then(cleanup()) }) }) @@ -677,28 +677,28 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByIndexRange', function () { it('removes map entries identified by index range', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 2, d: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 2, d: 3 } })) .then(operate(maps.removeByIndexRange('map', 1, 2, maps.returnType.KEY))) .then(assertResultEql({ map: ['b', 'c'] })) - .then(assertRecordEql({ map: {a: 1, d: 3} })) + .then(assertRecordEql({ map: { a: 1, d: 3 } })) .then(cleanup()) }) it('removes all map entries starting at the specified index if count is null', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByIndexRange('map', 1, null, maps.returnType.KEY))) .then(assertResultEql({ map: ['b', 'c'] })) - .then(assertRecordEql({ map: {a: 1} })) + .then(assertRecordEql({ map: { a: 1 } })) .then(cleanup()) }) it('removes all map entries starting at the specified index if count is undefined', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.removeByIndexRange('map', 1))) .then(assertResultEql({ map: null })) - .then(assertRecordEql({ map: {a: 1} })) + .then(assertRecordEql({ map: { a: 1 } })) .then(cleanup()) }) }) @@ -706,10 +706,10 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByRank', function () { it('removes a map entry identified by rank', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.removeByRank('map', 0, maps.returnType.VALUE))) .then(assertResultEql({ map: 1 })) - .then(assertRecordEql({ map: {a: 3, b: 2} })) + .then(assertRecordEql({ map: { a: 3, b: 2 } })) .then(cleanup()) }) }) @@ -717,19 +717,19 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.removeByRankRange', function () { it('removes map entries identified by rank range', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.removeByRankRange('map', 0, 2, maps.returnType.VALUE))) .then(assertResultEql({ map: [1, 2] })) - .then(assertRecordEql({ map: {a: 3} })) + .then(assertRecordEql({ map: { a: 3 } })) .then(cleanup()) }) it('removes all map entries starting at the specified rank until the end', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.removeByRankRange('map', 1, null, maps.returnType.VALUE))) .then(assertResultEql({ map: [2, 3] })) - .then(assertRecordEql({ map: {c: 1} })) + .then(assertRecordEql({ map: { c: 1 } })) .then(cleanup()) }) }) @@ -737,7 +737,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.size', function () { it('returns the size of the map', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.size('map'))) .then(assertResultEql({ map: 3 })) .then(cleanup()) @@ -763,7 +763,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByKey', function () { it('fetches a map entry identified by key', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByKey('map', 'b', maps.returnType.KEY_VALUE))) .then(assertResultEql({ map: ['b', 2] })) .then(cleanup()) @@ -771,7 +771,7 @@ describe('client.operate() - CDT Map operations', function () { it('does not fail if the key does not exist', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByKey('map', 'z', maps.returnType.KEY_VALUE))) .then(assertResultEql({ map: [] })) .then(cleanup()) @@ -781,7 +781,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByKeyRange', function () { it('fetches map entries identified by key range', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4 } })) .then(orderByKey('map')) .then(operate(maps.getByKeyRange('map', 'b', 'd', maps.returnType.KEY))) .then(assertResultEql({ map: ['b', 'c'] })) @@ -790,7 +790,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches all keys from the specified start key until the end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3, d: 4} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3, d: 4 } })) .then(orderByKey('map')) .then(operate(maps.getByKeyRange('map', 'b', null, maps.returnType.KEY))) .then(assertResultEql({ map: ['b', 'c', 'd'] })) @@ -799,7 +799,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches all keys from the start to the specified end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByKeyRange('map', null, 'b', maps.returnType.KEY))) .then(assertResultEql({ map: ['a'] })) .then(cleanup()) @@ -812,7 +812,7 @@ describe('client.operate() - CDT Map operations', function () { context('with count', function () { it('retrieves map entries nearest to key and greater, by index', function () { return initState() - .then(createRecord({ map: {a: 17, e: 2, f: 15, j: 10} })) + .then(createRecord({ map: { a: 17, e: 2, f: 15, j: 10 } })) .then(orderByKey('map')) .then(operate(maps.getByKeyRelIndexRange('map', 'f', 0, 1).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['f'] })) @@ -823,7 +823,7 @@ describe('client.operate() - CDT Map operations', function () { context('without count', function () { it('retrieves map entries nearest to key and greater, by index', function () { return initState() - .then(createRecord({ map: {a: 17, e: 2, f: 15, j: 10} })) + .then(createRecord({ map: { a: 17, e: 2, f: 15, j: 10 } })) .then(orderByKey('map')) .then(operate(maps.getByKeyRelIndexRange('map', 'f', 0).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['f', 'j'] })) @@ -835,7 +835,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByValue', function () { it('fetches a map entry identified by value', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByValue('map', 2, maps.returnType.VALUE))) .then(assertResultEql({ map: [2] })) .then(cleanup()) @@ -845,7 +845,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByValueRange', function () { it('fetches map entries identified by value range', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 2, d: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 2, d: 3 } })) .then(operate(maps.getByValueRange('map', 2, 3, maps.returnType.VALUE))) .then(assertResultEql({ map: [2, 2] })) .then(cleanup()) @@ -853,7 +853,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches all values from the specified start value until the end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByValueRange('map', 2, null, maps.returnType.VALUE))) .then(assertResultSatisfy(result => eql(result.map.sort(), [2, 3]))) .then(cleanup()) @@ -861,7 +861,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches all values from the start to the specified end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByValueRange('map', null, 2, maps.returnType.VALUE))) .then(assertResultEql({ map: [1] })) .then(cleanup()) @@ -874,7 +874,7 @@ describe('client.operate() - CDT Map operations', function () { context('with count', function () { it('retrieves map entries nearest to value and greater by relative rank', function () { return initState() - .then(createRecord({ map: {e: 2, j: 10, f: 15, a: 17} })) + .then(createRecord({ map: { e: 2, j: 10, f: 15, a: 17 } })) .then(orderByKeyValue('map')) .then(operate(maps.getByValueRelRankRange('map', 11, 1, 1).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['a'] })) @@ -885,7 +885,7 @@ describe('client.operate() - CDT Map operations', function () { context('without count', function () { it('retrieves map entries nearest to value and greater by relative rank', function () { return initState() - .then(createRecord({ map: {e: 2, j: 10, f: 15, a: 17} })) + .then(createRecord({ map: { e: 2, j: 10, f: 15, a: 17 } })) .then(orderByKeyValue('map')) .then(operate(maps.getByValueRelRankRange('map', 11, -1).andReturn(maps.returnType.KEY))) .then(assertResultEql({ map: ['j', 'f', 'a'] })) @@ -897,7 +897,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByIndex', function () { it('fetches a map entry identified by index', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByIndex('map', 1, maps.returnType.KEY_VALUE))) .then(assertResultEql({ map: ['b', 2] })) .then(cleanup()) @@ -905,7 +905,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches a map entry identified by negative index', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByIndex('map', -1, maps.returnType.KEY_VALUE))) .then(assertResultEql({ map: ['c', 3] })) .then(cleanup()) @@ -915,7 +915,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByIndexRange', function () { it('fetches map entries identified by index range', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 2, d: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 2, d: 3 } })) .then(operate(maps.getByIndexRange('map', 1, 2, maps.returnType.KEY_VALUE))) .then(assertResultEql({ map: ['b', 2, 'c', 2] })) .then(cleanup()) @@ -923,7 +923,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches map entries identified by negative index range', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 2, d: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 2, d: 3 } })) .then(operate(maps.getByIndexRange('map', -2, 2, maps.returnType.KEY_VALUE))) .then(assertResultEql({ map: ['c', 2, 'd', 3] })) .then(cleanup()) @@ -931,7 +931,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches all map entries starting from the specified index until the end', function () { return initState() - .then(createRecord({ map: {a: 1, b: 2, c: 3} })) + .then(createRecord({ map: { a: 1, b: 2, c: 3 } })) .then(operate(maps.getByIndexRange('map', 1, null, maps.returnType.KEY_VALUE))) .then(assertResultEql({ map: ['b', 2, 'c', 3] })) .then(cleanup()) @@ -941,7 +941,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByRank', function () { it('fetches a map entry identified by rank', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.getByRank('map', 0, maps.returnType.VALUE))) .then(assertResultEql({ map: 1 })) .then(cleanup()) @@ -949,7 +949,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches a map entry identified by negative rank', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.getByRank('map', -1, maps.returnType.VALUE))) .then(assertResultEql({ map: 3 })) .then(cleanup()) @@ -959,7 +959,7 @@ describe('client.operate() - CDT Map operations', function () { describe('maps.getByRankRange', function () { it('fetches map entries identified by rank range', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.getByRankRange('map', 0, 2, maps.returnType.VALUE))) .then(assertResultEql({ map: [1, 2] })) .then(cleanup()) @@ -967,7 +967,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches map entries identified by negative rank range', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.getByRankRange('map', -2, 2, maps.returnType.VALUE))) .then(assertResultEql({ map: [2, 3] })) .then(cleanup()) @@ -975,7 +975,7 @@ describe('client.operate() - CDT Map operations', function () { it('fetches all map entries starting at the specified rank until the end', function () { return initState() - .then(createRecord({ map: {a: 3, b: 2, c: 1} })) + .then(createRecord({ map: { a: 3, b: 2, c: 1 } })) .then(operate(maps.getByRankRange('map', 1, null, maps.returnType.VALUE))) .then(assertResultEql({ map: [2, 3] })) .then(cleanup()) diff --git a/test/operate.js b/test/operate.js index eb31d9fe..c68146ca 100644 --- a/test/operate.js +++ b/test/operate.js @@ -35,16 +35,16 @@ context('Operations', function () { let key = null beforeEach(() => { - key = keygen.string(helper.namespace, helper.set, {prefix: 'test/operate'})() + key = keygen.string(helper.namespace, helper.set, { prefix: 'test/operate' })() let bins = { string: 'abc', int: 123, double1: 1.23, double2: new Double(1.0), - geo: new GeoJSON({type: 'Point', coordinates: [103.913, 1.308]}), + geo: new GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] }), blob: Buffer.from('foo'), list: [1, 2, 3], - map: {a: 1, b: 2, c: 3} + map: { a: 1, b: 2, c: 3 } } let policy = new Aerospike.WritePolicy({ exists: Aerospike.policy.exists.CREATE_OR_REPLACE @@ -63,10 +63,10 @@ context('Operations', function () { op.write('int', 432), op.write('double1', 2.34), op.write('double2', new Double(2.0)), - op.write('geo', new GeoJSON({type: 'Point', coordinates: [123.456, 1.308]})), + op.write('geo', new GeoJSON({ type: 'Point', coordinates: [123.456, 1.308] })), op.write('blob', Buffer.from('bar')), op.write('list', [2, 3, 4]), - op.write('map', {d: 4, e: 5, f: 6}) + op.write('map', { d: 4, e: 5, f: 6 }) ] return client.operate(key, ops) @@ -81,7 +81,7 @@ context('Operations', function () { ) expect(record.bins['blob'].equals(Buffer.from('bar'))).to.be.ok() expect(record.bins['list']).to.eql([2, 3, 4]) - expect(record.bins['map']).to.eql({d: 4, e: 5, f: 6}) + expect(record.bins['map']).to.eql({ d: 4, e: 5, f: 6 }) }) }) @@ -210,9 +210,9 @@ context('Operations', function () { // clocks are not synchronous between server and client, the ttl client calculates may not // be accurate to the user. Nevertheless server expires the record in the correct time. - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/operate/ttl'})() - let bins = {i: 123, s: 'abc'} - let meta = {ttl: 1000} + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/operate/ttl' })() + let bins = { i: 123, s: 'abc' } + let meta = { ttl: 1000 } client.put(key, bins, meta, function (err) { if (err) throw err @@ -253,7 +253,7 @@ context('Operations', function () { }) it('does not create a key that does not exist yet', function () { - const notExistentKey = keygen.string(helper.namespace, helper.set, {prefix: 'test/operate/doesNotExist'})() + const notExistentKey = keygen.string(helper.namespace, helper.set, { prefix: 'test/operate/doesNotExist' })() const ops = [ op.write('i', 49) ] return client.operate(notExistentKey, ops, {}, policy) @@ -330,7 +330,7 @@ context('Operations', function () { describe('Client#add', function () { it('acts as a shortcut for the add operation', function () { - return client.add(key, {int: 234}) + return client.add(key, { int: 234 }) .then(() => client.get(key)) .then(record => { expect(record.bins['int']).to.equal(357) @@ -340,7 +340,7 @@ context('Operations', function () { describe('Client#incr', function () { it('acts as a shortcut for the add operation', function () { - return client.incr(key, {int: 234}) + return client.incr(key, { int: 234 }) .then(() => client.get(key)) .then(record => { expect(record.bins['int']).to.equal(357) @@ -350,7 +350,7 @@ context('Operations', function () { describe('Client#append', function () { it('acts as a shortcut for the append operation', function () { - return client.append(key, {string: 'def'}) + return client.append(key, { string: 'def' }) .then(() => client.get(key)) .then(record => { expect(record.bins['string']).to.equal('abcdef') @@ -360,7 +360,7 @@ context('Operations', function () { describe('Client#prepend', function () { it('acts as a shortcut for the prepend operation', function () { - return client.prepend(key, {string: 'def'}) + return client.prepend(key, { string: 'def' }) .then(() => client.get(key)) .then(record => { expect(record.bins['string']).to.equal('defabc') diff --git a/test/predexp.js b/test/predexp.js index d310bca2..985d961c 100644 --- a/test/predexp.js +++ b/test/predexp.js @@ -38,16 +38,16 @@ describe('Aerospike.predexp #slow', function () { { name: 'int non-match', i: 500 }, { name: 'int list match', li: [1, 5, 9] }, { name: 'int list non-match', li: [500, 501, 502] }, - { name: 'int map match', mi: {a: 1, b: 5, c: 9} }, - { name: 'int map non-match', mi: {a: 500, b: 501, c: 502} }, + { name: 'int map match', mi: { a: 1, b: 5, c: 9 } }, + { name: 'int map non-match', mi: { a: 500, b: 501, c: 502 } }, { name: 'string match', s: 'banana' }, { name: 'string non-match', s: 'tomato' }, { name: 'string list match', ls: ['banana', 'blueberry'] }, { name: 'string list non-match', ls: ['tomato', 'cuccumber'] }, - { name: 'string map match', ms: {a: 'banana', b: 'blueberry'} }, - { name: 'string map non-match', ms: {a: 'tomato', b: 'cuccumber'} }, - { name: 'string mapkeys match', mks: {'banana': 1, 'blueberry': 2} }, - { name: 'string mapkeys non-match', mks: {'tomato': 3, 'cuccumber': 4} }, + { name: 'string map match', ms: { a: 'banana', b: 'blueberry' } }, + { name: 'string map non-match', ms: { a: 'tomato', b: 'cuccumber' } }, + { name: 'string mapkeys match', mks: { 'banana': 1, 'blueberry': 2 } }, + { name: 'string mapkeys non-match', mks: { 'tomato': 3, 'cuccumber': 4 } }, { name: 'point match', g: GeoJSON.Point(103.913, 1.308) }, { name: 'point non-match', g: GeoJSON.Point(-122.101, 37.421) }, { name: 'point list match', lg: [GeoJSON.Point(103.913, 1.308), GeoJSON.Point(105.913, 3.308)] }, @@ -59,7 +59,7 @@ describe('Aerospike.predexp #slow', function () { before(() => { let entries = samples.entries() let rgen = () => entries.next().value[1] - let kgen = keygen.string(helper.namespace, testSet, {prefix: 'test/predexp/', random: false}) + let kgen = keygen.string(helper.namespace, testSet, { prefix: 'test/predexp/', random: false }) let mgen = metagen.constant({ ttl: 300 }) return putgen.put(samples.length, kgen, rgen, mgen) }) diff --git a/test/put.js b/test/put.js index b3d9622a..4b3b4221 100644 --- a/test/put.js +++ b/test/put.js @@ -35,7 +35,7 @@ describe('client.put()', function () { var client = helper.client it('should write and validate records', function (done) { - var meta = {ttl: 1000} + var meta = { ttl: 1000 } var putAndGet = function (key, bins, cb) { client.put(key, bins, meta, function (err) { if (err) throw err @@ -51,7 +51,7 @@ describe('client.put()', function () { prefix: 'test/put/putAndGet/', random: false }) - var rgen = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()}) + var rgen = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() }) var total = 50 var count = 0 @@ -67,8 +67,8 @@ describe('client.put()', function () { context('records with various key types', function () { it('should write a record w/ string key', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() - var record = recgen.record({i: valgen.integer(), s: valgen.string()})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() + var record = recgen.record({ i: valgen.integer(), s: valgen.string() })() client.put(key, record, function (err) { if (err) throw err @@ -82,7 +82,7 @@ describe('client.put()', function () { it('should write a record w/ integer key', function (done) { var key = keygen.integer(helper.namespace, helper.set)() - var record = recgen.record({i: valgen.integer(), s: valgen.string()})() + var record = recgen.record({ i: valgen.integer(), s: valgen.string() })() client.put(key, record, function (err) { if (err) throw err @@ -96,7 +96,7 @@ describe('client.put()', function () { it('should write a record w/ byte array key', function (done) { var key = keygen.bytes(helper.namespace, helper.set)() - var record = recgen.record({i: valgen.integer(), s: valgen.string()})() + var record = recgen.record({ i: valgen.integer(), s: valgen.string() })() client.put(key, record, function (err, key) { if (err) throw err @@ -116,7 +116,7 @@ describe('client.put()', function () { }) function putGetVerify (bins, expected, done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() client.put(key, bins, meta, policy, function (err) { if (err) throw err client.get(key, function (err, record) { @@ -217,7 +217,7 @@ describe('client.put()', function () { context('invalid bin values', function () { it('should fail with a parameter error when trying to write an undefined bin value', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() var record = { valid: 123, invalid: undefined } client.put(key, record, function (err) { @@ -231,7 +231,7 @@ describe('client.put()', function () { }) it('should fail with a parameter error when trying to write a boolean bin value', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() var record = { valid: 'true', invalid: true } client.put(key, record, function (err) { @@ -250,7 +250,7 @@ describe('client.put()', function () { helper.skipUnlessVersion('>= 4.2.0', this) it('should write a bin with a name of max. length 15', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() let bins = { 'bin-name-len-15': 'bin name with 15 chars' } return client.put(key, bins) @@ -263,7 +263,7 @@ describe('client.put()', function () { }) it('should return a parameter error when bin length exceeds 15 chars', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() let bins = { 'bin-name-size-16': 'bin name with 16 chars' } return client.put(key, bins) @@ -277,7 +277,7 @@ describe('client.put()', function () { }) it('should delete a bin when writing null to it', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() var record = { bin1: 123, bin2: 456 } client.put(key, record, function (err) { if (err) throw err @@ -301,9 +301,9 @@ describe('client.put()', function () { }) it('should write, read, write, and check gen', function (done) { - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'}) - var mgen = metagen.constant({ttl: 1000}) - var rgen = recgen.record({i: valgen.integer(), s: valgen.string()}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' }) + var mgen = metagen.constant({ ttl: 1000 }) + var rgen = recgen.record({ i: valgen.integer(), s: valgen.string() }) var key = kgen() var meta = mgen(key) @@ -342,9 +342,9 @@ describe('client.put()', function () { }) it('should write, read, remove, read, write, and check gen', function (done) { - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'}) - var mgen = metagen.constant({ttl: 1000}) - var rgen = recgen.record({i: valgen.integer(), s: valgen.string()}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' }) + var mgen = metagen.constant({ ttl: 1000 }) + var rgen = recgen.record({ i: valgen.integer(), s: valgen.string() }) var key = kgen() var meta = mgen(key) @@ -390,8 +390,8 @@ describe('client.put()', function () { }) it('should fail with a parameter error if gen is invalid', function (done) { - const key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() - const bins = recgen.record({i: valgen.integer(), s: valgen.string()})() + const key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() + const bins = recgen.record({ i: valgen.integer(), s: valgen.string() })() const meta = { gen: 'generation1' } @@ -403,8 +403,8 @@ describe('client.put()', function () { }) it('should fail with a parameter error if ttl is invalid', function (done) { - const key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() - const bins = recgen.record({i: valgen.integer(), s: valgen.string()})() + const key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() + const bins = recgen.record({ i: valgen.integer(), s: valgen.string() })() const meta = { ttl: 'time-to-live' } @@ -417,12 +417,12 @@ describe('client.put()', function () { it('should write null for bins with empty list and map', function (done) { // generators - var kgen = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'}) - var mgen = metagen.constant({ttl: 1000}) + var kgen = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' }) + var mgen = metagen.constant({ ttl: 1000 }) var rgen = recgen.record({ l: valgen.constant([1, 2, 3]), le: valgen.constant([]), - m: valgen.constant({a: 1, b: 2}), + m: valgen.constant({ a: 1, b: 2 }), me: valgen.constant({}) }) @@ -451,7 +451,7 @@ describe('client.put()', function () { it('should write a key without set name', function (done) { var noSet = null - var key = keygen.string(helper.namespace, noSet, {prefix: 'test/put/'})() + var key = keygen.string(helper.namespace, noSet, { prefix: 'test/put/' })() var record = { bin1: 123, bin2: 456 } client.put(key, record, function (err) { @@ -465,10 +465,10 @@ describe('client.put()', function () { }) it('should write a map with undefined entry and verify the record', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/put/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/put/' })() var record = { list: [1, 2, 3, undefined], - map: {a: 1, b: 2, c: undefined} + map: { a: 1, b: 2, c: undefined } } client.put(key, record, function (err) { @@ -476,7 +476,7 @@ describe('client.put()', function () { client.get(key, function (err, record) { if (err) throw err - expect(record.bins.map).to.eql({a: 1, b: 2, c: null}) + expect(record.bins.map).to.eql({ a: 1, b: 2, c: null }) expect(record.bins.list).to.eql([1, 2, 3, null]) client.remove(key, function (err) { @@ -495,7 +495,7 @@ describe('client.put()', function () { exists: Aerospike.policy.exists.UPDATE }) - return client.put(key, {i: 49}, {}, policy) + return client.put(key, { i: 49 }, {}, policy) .catch(error => expect(error).to.be.instanceof(AerospikeError).with.property('code', status.ERR_RECORD_NOT_FOUND)) .then(() => client.exists(key)) .then(exists => expect(exists).to.be.false()) @@ -509,8 +509,8 @@ describe('client.put()', function () { exists: Aerospike.policy.exists.CREATE }) - return client.put(key, {i: 49}, {}, policy) - .then(() => client.put(key, {i: 50}, {}, policy)) + return client.put(key, { i: 49 }, {}, policy) + .then(() => client.put(key, { i: 50 }, {}, policy)) .catch(error => expect(error).to.be.instanceof(AerospikeError).with.property('code', status.ERR_RECORD_EXISTS)) .then(() => client.get(key)) .then(record => expect(record.bins.i).to.equal(49)) diff --git a/test/query.js b/test/query.js index 7b690de4..17f3ff98 100644 --- a/test/query.js +++ b/test/query.js @@ -49,27 +49,27 @@ describe('Queries', function () { { name: 'int non-match', i: 500 }, { name: 'int list match', li: [1, 5, 9] }, { name: 'int list non-match', li: [500, 501, 502] }, - { name: 'int map match', mi: {a: 1, b: 5, c: 9} }, - { name: 'int map non-match', mi: {a: 500, b: 501, c: 502} }, + { name: 'int map match', mi: { a: 1, b: 5, c: 9 } }, + { name: 'int map non-match', mi: { a: 500, b: 501, c: 502 } }, { name: 'string match', s: 'banana' }, { name: 'string non-match', s: 'tomato' }, { name: 'string list match', ls: ['banana', 'blueberry'] }, { name: 'string list non-match', ls: ['tomato', 'cuccumber'] }, - { name: 'string map match', ms: {a: 'banana', b: 'blueberry'} }, - { name: 'string map non-match', ms: {a: 'tomato', b: 'cuccumber'} }, - { name: 'string mapkeys match', mks: {'banana': 1, 'blueberry': 2} }, - { name: 'string mapkeys non-match', mks: {'tomato': 3, 'cuccumber': 4} }, + { name: 'string map match', ms: { a: 'banana', b: 'blueberry' } }, + { name: 'string map non-match', ms: { a: 'tomato', b: 'cuccumber' } }, + { name: 'string mapkeys match', mks: { 'banana': 1, 'blueberry': 2 } }, + { name: 'string mapkeys non-match', mks: { 'tomato': 3, 'cuccumber': 4 } }, { name: 'point match', g: GeoJSON.Point(103.913, 1.308) }, { name: 'point non-match', g: GeoJSON.Point(-122.101, 37.421) }, { name: 'point list match', lg: [GeoJSON.Point(103.913, 1.308), GeoJSON.Point(105.913, 3.308)] }, { name: 'point list non-match', lg: [GeoJSON.Point(-122.101, 37.421), GeoJSON.Point(-120.101, 39.421)] }, - { name: 'point map match', mg: {a: GeoJSON.Point(103.913, 1.308), b: GeoJSON.Point(105.913, 3.308)} }, - { name: 'point map non-match', mg: {a: GeoJSON.Point(-122.101, 37.421), b: GeoJSON.Point(-120.101, 39.421)} }, + { name: 'point map match', mg: { a: GeoJSON.Point(103.913, 1.308), b: GeoJSON.Point(105.913, 3.308) } }, + { name: 'point map non-match', mg: { a: GeoJSON.Point(-122.101, 37.421), b: GeoJSON.Point(-120.101, 39.421) } }, { name: 'region match', g: GeoJSON.Polygon([102.913, 0.308], [102.913, 2.308], [104.913, 2.308], [104.913, 0.308], [102.913, 0.308]) }, { name: 'region non-match', g: GeoJSON.Polygon([-121.101, 36.421], [-121.101, 38.421], [-123.101, 38.421], [-123.101, 36.421], [-121.101, 36.421]) }, { name: 'region list match', lg: [GeoJSON.Polygon([102.913, 0.308], [102.913, 2.308], [104.913, 2.308], [104.913, 0.308], [102.913, 0.308])] }, { name: 'region list non-match', lg: [GeoJSON.Polygon([-121.101, 36.421], [-121.101, 38.421], [-123.101, 38.421], [-123.101, 36.421], [-121.101, 36.421])] }, - { name: 'region map match', mg: {a: GeoJSON.Polygon([102.913, 0.308], [102.913, 2.308], [104.913, 2.308], [104.913, 0.308], [102.913, 0.308])} }, + { name: 'region map match', mg: { a: GeoJSON.Polygon([102.913, 0.308], [102.913, 2.308], [104.913, 2.308], [104.913, 0.308], [102.913, 0.308]) } }, { name: 'region map non-match', mg: [GeoJSON.Polygon([-121.101, 36.421], [-121.101, 38.421], [-123.101, 38.421], [-123.101, 36.421], [-121.101, 36.421])] }, { name: 'aggregate', value: 10 }, { name: 'aggregate', value: 20 }, @@ -111,7 +111,7 @@ describe('Queries', function () { before(() => { let sampleGen = () => samples.pop() - let kgen = keygen.string(helper.namespace, testSet, {prefix: 'test/query/', random: false}) + let kgen = keygen.string(helper.namespace, testSet, { prefix: 'test/query/', random: false }) let mgen = metagen.constant({ ttl: 300 }) return Promise.all([ putgen.put(numberOfSamples, kgen, sampleGen, mgen) @@ -339,25 +339,25 @@ describe('Queries', function () { describe('filter.geoWithinGeoJSONRegion()', function () { it('should match locations within a GeoJSON region', function (done) { - var region = new GeoJSON({type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]]}) + var region = new GeoJSON({ type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]] }) var args = { filters: [filter.geoWithinGeoJSONRegion('g', region)] } verifyQueryResults(args, 'point match', done) }) it('should match locations in a list within a GeoJSON region', function (done) { - var region = new GeoJSON({type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]]}) + var region = new GeoJSON({ type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]] }) var args = { filters: [filter.geoWithinGeoJSONRegion('lg', region, LIST)] } verifyQueryResults(args, 'point list match', done) }) it('should match locations in a map within a GeoJSON region', function (done) { - var region = new GeoJSON({type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]]}) + var region = new GeoJSON({ type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]] }) var args = { filters: [filter.geoWithinGeoJSONRegion('mg', region, MAPVALUES)] } verifyQueryResults(args, 'point map match', done) }) it('accepts a plain object as GeoJSON', function (done) { - var region = {type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]]} + var region = { type: 'Polygon', coordinates: [[[103, 1.3], [104, 1.3], [104, 1.4], [103, 1.4], [103, 1.3]]] } var args = { filters: [filter.geoWithinGeoJSONRegion('g', region)] } verifyQueryResults(args, 'point match', done) }) @@ -382,25 +382,25 @@ describe('Queries', function () { describe('filter.geoContainsGeoJSONPoint()', function () { it('should match regions that contain a GeoJSON point', function (done) { - var point = new GeoJSON({type: 'Point', coordinates: [103.913, 1.308]}) + var point = new GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] }) var args = { filters: [filter.geoContainsGeoJSONPoint('g', point)] } verifyQueryResults(args, 'region match', done) }) it('should match regions in a list that contain a GeoJSON point', function (done) { - var point = new GeoJSON({type: 'Point', coordinates: [103.913, 1.308]}) + var point = new GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] }) var args = { filters: [filter.geoContainsGeoJSONPoint('lg', point, LIST)] } verifyQueryResults(args, 'region list match', done) }) it('should match regions in a map that contain a GeoJSON point', function (done) { - var point = new GeoJSON({type: 'Point', coordinates: [103.913, 1.308]}) + var point = new GeoJSON({ type: 'Point', coordinates: [103.913, 1.308] }) var args = { filters: [filter.geoContainsGeoJSONPoint('mg', point, MAPVALUES)] } verifyQueryResults(args, 'region map match', done) }) it('accepts a plain object as GeoJSON', function (done) { - var point = {type: 'Point', coordinates: [103.913, 1.308]} + var point = { type: 'Point', coordinates: [103.913, 1.308] } var args = { filters: [filter.geoContainsGeoJSONPoint('g', point)] } verifyQueryResults(args, 'region match', done) }) diff --git a/test/remove.js b/test/remove.js index a9c7f02e..7d83e1c3 100644 --- a/test/remove.js +++ b/test/remove.js @@ -32,16 +32,16 @@ describe('client.remove()', function () { let client = helper.client it('removes an existing record', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/remove/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/remove/' })() - return client.put(key, {str: 'abcde'}) + return client.put(key, { str: 'abcde' }) .then(() => client.remove(key)) .then(() => client.exists(key)) .then(result => expect(result).to.be.false()) }) it('returns an error when trying to remove a non-existing key', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/remove/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/remove/' })() return client.remove(key) .catch(error => @@ -50,13 +50,13 @@ describe('client.remove()', function () { context('with generation policy value', function () { it('should remove the record if the generation matches', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/remove/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/remove/' })() let policy = new Aerospike.RemovePolicy({ gen: Aerospike.policy.gen.EQ, generation: 1 }) - return client.put(key, {str: 'abcde'}) + return client.put(key, { str: 'abcde' }) .then(() => { return client.remove(key, policy) }) @@ -65,13 +65,13 @@ describe('client.remove()', function () { }) it('should not remove the record if the generation does not match', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/remove/'})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/remove/' })() let policy = new Aerospike.RemovePolicy({ gen: Aerospike.policy.gen.EQ, generation: 1 }) - return client.put(key, {str: 'abcde'}) + return client.put(key, { str: 'abcde' }) .then(() => { return client.remove(key, policy) .catch(error => @@ -86,8 +86,8 @@ describe('client.remove()', function () { helper.skipUnlessEnterprise(this) it('should apply the durable delete policy', function () { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/remove/gen/'})() - let record = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/remove/gen/' })() + let record = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() })() let policy = new Aerospike.RemovePolicy({ durableDelete: true }) diff --git a/test/scan.js b/test/scan.js index eba1718e..4a7b176d 100644 --- a/test/scan.js +++ b/test/scan.js @@ -223,7 +223,7 @@ context('Scans', function () { describe('scan.background()', function () { it('applies a UDF to every record', function (done) { - var token = valgen.string({length: {min: 10, max: 10}})() + var token = valgen.string({ length: { min: 10, max: 10 } })() var backgroundScan = client.scan(helper.namespace, testSet) backgroundScan.background('udf', 'updateRecord', ['x', token], function (err, job) { if (err) throw err @@ -267,7 +267,7 @@ context('Scans', function () { describe('job.info()', function () { it('returns the scan status and progress', function (done) { - var scan = client.scan(helper.namespace, testSet, {percent: 10}) + var scan = client.scan(helper.namespace, testSet, { percent: 10 }) scan.background('udf', 'noop', function (error, job) { if (error) throw error job.info(function (error, info) { diff --git a/test/select.js b/test/select.js index 691b411e..f3455fc3 100644 --- a/test/select.js +++ b/test/select.js @@ -31,9 +31,9 @@ describe('client.select()', function () { var client = helper.client it('should read the record', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/select/'})() - var meta = {ttl: 1000} - var bins = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/select/' })() + var meta = { ttl: 1000 } + var bins = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() })() var selected = ['i', 's'] client.put(key, bins, meta, function (err) { @@ -56,15 +56,15 @@ describe('client.select()', function () { }) it('should fail - when a select is called without key', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/select/'})() - var meta = {ttl: 1000} - var bins = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/select/' })() + var meta = { ttl: 1000 } + var bins = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() })() var selected = ['i', 's'] client.put(key, bins, meta, function (err) { if (err) throw err - client.select({ns: helper.namespace, set: helper.set}, selected, function (err) { + client.select({ ns: helper.namespace, set: helper.set }, selected, function (err) { expect(err.code).to.equal(status.ERR_PARAM) client.remove(key, function (err) { @@ -76,7 +76,7 @@ describe('client.select()', function () { }) it('should not find the record', function (done) { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/select/not_found/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/select/not_found/' })() client.select(key, ['i'], function (err, record) { expect(err.code).to.equal(status.ERR_RECORD_NOT_FOUND) @@ -85,9 +85,9 @@ describe('client.select()', function () { }) it('should read the record w/ a key send policy', function (done) { - let key = keygen.string(helper.namespace, helper.set, {prefix: 'test/select/'})() - let meta = {ttl: 1000} - let bins = recgen.record({i: valgen.integer(), s: valgen.string(), b: valgen.bytes()})() + let key = keygen.string(helper.namespace, helper.set, { prefix: 'test/select/' })() + let meta = { ttl: 1000 } + let bins = recgen.record({ i: valgen.integer(), s: valgen.string(), b: valgen.bytes() })() let selected = ['i', 's'] let policy = new Aerospike.ReadPolicy({ key: Aerospike.policy.key.SEND @@ -113,11 +113,11 @@ describe('client.select()', function () { }) it('should return a Promise that resolves to a Record', function () { - var key = keygen.string(helper.namespace, helper.set, {prefix: 'test/select/'})() + var key = keygen.string(helper.namespace, helper.set, { prefix: 'test/select/' })() - return client.put(key, {i: 42, s: 'abc', f: 3.1416}) + return client.put(key, { i: 42, s: 'abc', f: 3.1416 }) .then(() => client.select(key, ['i', 'f'])) - .then(record => expect(record.bins).to.eql({i: 42, f: 3.1416})) + .then(record => expect(record.bins).to.eql({ i: 42, f: 3.1416 })) .then(() => client.remove(key)) }) }) diff --git a/test/stress/perfdata.js b/test/stress/perfdata.js index 52be0d69..0adb72e7 100644 --- a/test/stress/perfdata.js +++ b/test/stress/perfdata.js @@ -43,10 +43,10 @@ function interval (duration, callback) { function generate (ns, set, numberOfRecords, recordSize, done) { var numBinsPerRecord = recordSize[0] var sizePerBin = recordSize[1] - var kgen = keygen.string(ns, set, {length: {min: 20, max: 20}}) - var bins = { id: valgen.integer({random: false, min: 0}) } + var kgen = keygen.string(ns, set, { length: { min: 20, max: 20 } }) + var bins = { id: valgen.integer({ random: false, min: 0 }) } for (var i = 0; i < numBinsPerRecord; i++) { - bins['b' + i] = valgen.bytes({length: {min: sizePerBin, max: sizePerBin}}) + bins['b' + i] = valgen.bytes({ length: { min: sizePerBin, max: sizePerBin } }) } var rgen = recgen.record(bins) var mgen = metagen.constant({}) diff --git a/test/stress/query.js b/test/stress/query.js index 45e5d31e..7f04c764 100644 --- a/test/stress/query.js +++ b/test/stress/query.js @@ -88,7 +88,7 @@ describe('client.query()', function () { setTimeout(function () { job.waitUntilDone(function () { console.timeEnd('creating secondary index') - client.put(idxKey, {norec: numberOfRecords, set: testSet}, done) + client.put(idxKey, { norec: numberOfRecords, set: testSet }, done) }) }, 5000) }) diff --git a/test/stress/scan.js b/test/stress/scan.js index 3cf77af2..796bf468 100644 --- a/test/stress/scan.js +++ b/test/stress/scan.js @@ -77,7 +77,7 @@ describe('client.scan()', function () { perfdata.generate(helper.namespace, testSet, numberOfRecords, recordSize, function (recordsGenerated) { console.timeEnd('generating performance test data') numberOfRecords = recordsGenerated // might be slightly less due to duplciate keys - client.put(idxKey, {norec: numberOfRecords, set: testSet}, done) + client.put(idxKey, { norec: numberOfRecords, set: testSet }, done) }) } else { // perf test data already exists diff --git a/test/truncate.js b/test/truncate.js index e5945fd5..71284083 100644 --- a/test/truncate.js +++ b/test/truncate.js @@ -77,7 +77,7 @@ describe('client.truncate()', function () { const noRecords = 5 const pollIntMs = 10 // Poll interval in ms to check whether records have been removed - var kgen = keygen.string(ns, set, {prefix: 'test/trunc/', random: false}) + var kgen = keygen.string(ns, set, { prefix: 'test/trunc/', random: false }) genRecords(kgen, noRecords, function (records) { setTimeout(function () { client.truncate(ns, set, 0, function (err) { @@ -97,12 +97,12 @@ describe('client.truncate()', function () { const pollIntMs = 10 // Poll interval in ms to check whether records have been removed const allowanceMs = 2000 // Test will fail if client and server clocks differ by more than this many ms! - var kgen = keygen.string(ns, set, {prefix: 'test/trunc/del/', random: false}) + var kgen = keygen.string(ns, set, { prefix: 'test/trunc/del/', random: false }) genRecords(kgen, noRecordsToDelete, function (batchToDelete) { setTimeout(function () { var timeNanos = new Date().getTime() * 1000000 setTimeout(function () { - var kgen = keygen.string(ns, set, {prefix: 'test/trunc/rem/', random: false}) + var kgen = keygen.string(ns, set, { prefix: 'test/trunc/rem/', random: false }) genRecords(kgen, noRecordsToRemain, function (batchToRemain) { setTimeout(function () { client.truncate(ns, set, timeNanos, function (err) { diff --git a/test/util/options.js b/test/util/options.js index e50970f0..2da753b2 100644 --- a/test/util/options.js +++ b/test/util/options.js @@ -113,7 +113,7 @@ options.getConfig = function () { } } if (options.host !== null) { - config.hosts = [{addr: options.host, port: options.port || 3000}] + config.hosts = [{ addr: options.host, port: options.port || 3000 }] } else if (process.env['AEROSPIKE_HOSTS']) { config.hosts = process.env['AEROSPIKE_HOSTS'] } diff --git a/test/utils.js b/test/utils.js index 03dde4dc..94714d33 100644 --- a/test/utils.js +++ b/test/utils.js @@ -28,32 +28,32 @@ describe('utils.hostsToString() #noserver', function () { }) it('converts a single host name & port to a string', function () { - let hosts = utils.hostsToString([{addr: 'localhost', port: 3000}]) + let hosts = utils.hostsToString([{ addr: 'localhost', port: 3000 }]) expect(hosts).to.equal('localhost:3000') }) it('converts a single IPv4 & port to a string', function () { - let hosts = utils.hostsToString([{addr: '127.0.0.1', port: 3000}]) + let hosts = utils.hostsToString([{ addr: '127.0.0.1', port: 3000 }]) expect(hosts).to.equal('127.0.0.1:3000') }) it('encloses IPv6 addresses in brackets', function () { - let hosts = utils.hostsToString([{addr: '2001::1000', port: 3000}]) + let hosts = utils.hostsToString([{ addr: '2001::1000', port: 3000 }]) expect(hosts).to.equal('[2001::1000]:3000') }) it('omits the port number if missing from the address', function () { - let hosts = utils.hostsToString([{addr: 'localhost'}]) + let hosts = utils.hostsToString([{ addr: 'localhost' }]) expect(hosts).to.equal('localhost') }) it('concatenates an array of host addresses into a comma-separated list', function () { - let hosts = utils.hostsToString([{addr: 'node1', port: 3000}, {addr: 'node2', port: 3000}]) + let hosts = utils.hostsToString([{ addr: 'node1', port: 3000 }, { addr: 'node2', port: 3000 }]) expect(hosts).to.equal('node1:3000,node2:3000') }) it('handles mixed addresses with hostnames, IPv4 & IPv6 addresses', function () { - let hosts = utils.hostsToString([{addr: 'localhost', port: 3000}, {addr: '127.0.0.1', port: 3100}, {addr: '2001::1000', port: 3200}, {addr: 'foo'}]) + let hosts = utils.hostsToString([{ addr: 'localhost', port: 3000 }, { addr: '127.0.0.1', port: 3100 }, { addr: '2001::1000', port: 3200 }, { addr: 'foo' }]) expect(hosts).to.equal('localhost:3000,127.0.0.1:3100,[2001::1000]:3200,foo') }) }) @@ -61,62 +61,62 @@ describe('utils.hostsToString() #noserver', function () { describe('utils.parseHostString() #noserver', function () { it('parses a domain name', function () { var host = utils.parseHostString('aero.local') - expect(host).to.eql({addr: 'aero.local', port: 3000}) + expect(host).to.eql({ addr: 'aero.local', port: 3000 }) }) it('parses a domain name with port', function () { var host = utils.parseHostString('aero.local:3333') - expect(host).to.eql({addr: 'aero.local', port: 3333}) + expect(host).to.eql({ addr: 'aero.local', port: 3333 }) }) it('parses a domain name with TLS name and port', function () { var host = utils.parseHostString('aero.local:aero.tls:3333') - expect(host).to.eql({addr: 'aero.local', tls: 'aero.tls', port: 3333}) + expect(host).to.eql({ addr: 'aero.local', tls: 'aero.tls', port: 3333 }) }) it('parses a domain name with TLS name', function () { var host = utils.parseHostString('aero.local:aero.tls') - expect(host).to.eql({addr: 'aero.local', tls: 'aero.tls', port: 3000}) + expect(host).to.eql({ addr: 'aero.local', tls: 'aero.tls', port: 3000 }) }) it('parses an IPv4 address', function () { var host = utils.parseHostString('192.168.33.10') - expect(host).to.eql({addr: '192.168.33.10', port: 3000}) + expect(host).to.eql({ addr: '192.168.33.10', port: 3000 }) }) it('parses an IPv4 address with port', function () { var host = utils.parseHostString('192.168.33.10:3333') - expect(host).to.eql({addr: '192.168.33.10', port: 3333}) + expect(host).to.eql({ addr: '192.168.33.10', port: 3333 }) }) it('parses an IPv4 address with TLS name and port', function () { var host = utils.parseHostString('192.168.33.10:aero.tls:3333') - expect(host).to.eql({addr: '192.168.33.10', tls: 'aero.tls', port: 3333}) + expect(host).to.eql({ addr: '192.168.33.10', tls: 'aero.tls', port: 3333 }) }) it('parses an IPv4 address with TLS name', function () { var host = utils.parseHostString('192.168.33.10:aero.tls') - expect(host).to.eql({addr: '192.168.33.10', tls: 'aero.tls', port: 3000}) + expect(host).to.eql({ addr: '192.168.33.10', tls: 'aero.tls', port: 3000 }) }) it('parses an IPv6 address', function () { var host = utils.parseHostString('[fde4:8dba:82e1::c4]') - expect(host).to.eql({addr: '[fde4:8dba:82e1::c4]', port: 3000}) + expect(host).to.eql({ addr: '[fde4:8dba:82e1::c4]', port: 3000 }) }) it('parses an IPv6 address with port', function () { var host = utils.parseHostString('[fde4:8dba:82e1::c4]:3333') - expect(host).to.eql({addr: '[fde4:8dba:82e1::c4]', port: 3333}) + expect(host).to.eql({ addr: '[fde4:8dba:82e1::c4]', port: 3333 }) }) it('parses an IPv6 address with TLS name and port', function () { var host = utils.parseHostString('[fde4:8dba:82e1::c4]:aero.tls:3333') - expect(host).to.eql({addr: '[fde4:8dba:82e1::c4]', tls: 'aero.tls', port: 3333}) + expect(host).to.eql({ addr: '[fde4:8dba:82e1::c4]', tls: 'aero.tls', port: 3333 }) }) it('parses an IPv6 address with TLS name', function () { var host = utils.parseHostString('[fde4:8dba:82e1::c4]:aero.tls') - expect(host).to.eql({addr: '[fde4:8dba:82e1::c4]', tls: 'aero.tls', port: 3000}) + expect(host).to.eql({ addr: '[fde4:8dba:82e1::c4]', tls: 'aero.tls', port: 3000 }) }) it('throws an error if it cannot parse the string', function () { From 18a381db708bde7d59057ccb54e3ca52411379b2 Mon Sep 17 00:00:00 2001 From: Jan Hecking Date: Wed, 20 Feb 2019 22:07:48 +0800 Subject: [PATCH 2/2] Update copyright year for files that changed this year --- benchmarks/alerts.js | 2 +- benchmarks/main.js | 2 +- benchmarks/stats.js | 2 +- benchmarks/worker.js | 2 +- lib/client.js | 2 +- lib/error.js | 2 +- lib/geojson.js | 2 +- test/apply.js | 2 +- test/batch_exists.js | 2 +- test/batch_get.js | 2 +- test/batch_read.js | 2 +- test/batch_select.js | 2 +- test/client.js | 2 +- test/command_queue.js | 2 +- test/config.js | 2 +- test/exists.js | 2 +- test/generators/value.js | 2 +- test/geojson.js | 2 +- test/get.js | 2 +- test/info.js | 2 +- test/key.js | 2 +- test/lists.js | 2 +- test/maps.js | 2 +- test/operate.js | 2 +- test/predexp.js | 2 +- test/put.js | 2 +- test/query.js | 2 +- test/remove.js | 2 +- test/scan.js | 2 +- test/select.js | 2 +- test/stress/perfdata.js | 2 +- test/stress/query.js | 2 +- test/stress/scan.js | 2 +- test/test_helper.js | 2 +- test/truncate.js | 2 +- test/udf.js | 2 +- test/util/options.js | 2 +- test/utils.js | 2 +- 38 files changed, 38 insertions(+), 38 deletions(-) diff --git a/benchmarks/alerts.js b/benchmarks/alerts.js index 7c1b9865..7d29f176 100644 --- a/benchmarks/alerts.js +++ b/benchmarks/alerts.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/benchmarks/main.js b/benchmarks/main.js index 530b361d..aa447c8b 100644 --- a/benchmarks/main.js +++ b/benchmarks/main.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/benchmarks/stats.js b/benchmarks/stats.js index 9964003c..5c25cf00 100644 --- a/benchmarks/stats.js +++ b/benchmarks/stats.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/benchmarks/worker.js b/benchmarks/worker.js index e4851ccf..55715bb7 100644 --- a/benchmarks/worker.js +++ b/benchmarks/worker.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/lib/client.js b/lib/client.js index 7ea73b2a..7d62f75b 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/lib/error.js b/lib/error.js index 25c87a72..49f312a6 100644 --- a/lib/error.js +++ b/lib/error.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/lib/geojson.js b/lib/geojson.js index fb24a542..b72e82e5 100644 --- a/lib/geojson.js +++ b/lib/geojson.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/apply.js b/test/apply.js index c4cc0bd3..86cbccc6 100644 --- a/test/apply.js +++ b/test/apply.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/batch_exists.js b/test/batch_exists.js index d1d18790..3c3aaa78 100644 --- a/test/batch_exists.js +++ b/test/batch_exists.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/batch_get.js b/test/batch_get.js index d87ea097..81d196be 100644 --- a/test/batch_get.js +++ b/test/batch_get.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/batch_read.js b/test/batch_read.js index aec49184..97383b0b 100644 --- a/test/batch_read.js +++ b/test/batch_read.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/batch_select.js b/test/batch_select.js index 2e60e013..ba4f9a6e 100644 --- a/test/batch_select.js +++ b/test/batch_select.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/client.js b/test/client.js index 1e961aa2..9c32d4f7 100644 --- a/test/client.js +++ b/test/client.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/command_queue.js b/test/command_queue.js index 7a20e106..85bfa6e5 100644 --- a/test/command_queue.js +++ b/test/command_queue.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/config.js b/test/config.js index 24907d42..630bd826 100644 --- a/test/config.js +++ b/test/config.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/exists.js b/test/exists.js index b16ac9a1..bc20cf93 100644 --- a/test/exists.js +++ b/test/exists.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/generators/value.js b/test/generators/value.js index 51034291..e6568f7f 100644 --- a/test/generators/value.js +++ b/test/generators/value.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/geojson.js b/test/geojson.js index 315b19b0..51ce7b62 100644 --- a/test/geojson.js +++ b/test/geojson.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/get.js b/test/get.js index 82781576..c2fb675f 100644 --- a/test/get.js +++ b/test/get.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/info.js b/test/info.js index ca3fb331..de8c9468 100644 --- a/test/info.js +++ b/test/info.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/key.js b/test/key.js index c4c1d795..2bd08342 100644 --- a/test/key.js +++ b/test/key.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/lists.js b/test/lists.js index 0ddeb362..598e9194 100644 --- a/test/lists.js +++ b/test/lists.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/maps.js b/test/maps.js index 48b0e3b2..e6e36b69 100644 --- a/test/maps.js +++ b/test/maps.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/operate.js b/test/operate.js index c68146ca..9333bcfc 100644 --- a/test/operate.js +++ b/test/operate.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/predexp.js b/test/predexp.js index 985d961c..bfefc43e 100644 --- a/test/predexp.js +++ b/test/predexp.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2018 Aerospike, Inc. +// Copyright 2018-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/put.js b/test/put.js index 4b3b4221..bd7f15eb 100644 --- a/test/put.js +++ b/test/put.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/query.js b/test/query.js index 17f3ff98..8d4db9b8 100644 --- a/test/query.js +++ b/test/query.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/remove.js b/test/remove.js index 7d83e1c3..b70f731a 100644 --- a/test/remove.js +++ b/test/remove.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/scan.js b/test/scan.js index 4a7b176d..889aa7a1 100644 --- a/test/scan.js +++ b/test/scan.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/select.js b/test/select.js index f3455fc3..3f3989f6 100644 --- a/test/select.js +++ b/test/select.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/stress/perfdata.js b/test/stress/perfdata.js index 0adb72e7..e478679c 100644 --- a/test/stress/perfdata.js +++ b/test/stress/perfdata.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/stress/query.js b/test/stress/query.js index 7f04c764..23eaac41 100644 --- a/test/stress/query.js +++ b/test/stress/query.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/stress/scan.js b/test/stress/scan.js index 796bf468..dbf7ec56 100644 --- a/test/stress/scan.js +++ b/test/stress/scan.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/test_helper.js b/test/test_helper.js index dc3f2ad5..e086b716 100644 --- a/test/test_helper.js +++ b/test/test_helper.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/truncate.js b/test/truncate.js index 71284083..fc488b71 100644 --- a/test/truncate.js +++ b/test/truncate.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/udf.js b/test/udf.js index 6f5ee4ca..938d3d54 100644 --- a/test/udf.js +++ b/test/udf.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/util/options.js b/test/util/options.js index 2da753b2..97a27dc0 100644 --- a/test/util/options.js +++ b/test/util/options.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2017 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. diff --git a/test/utils.js b/test/utils.js index 94714d33..448fe5f7 100644 --- a/test/utils.js +++ b/test/utils.js @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright 2013-2018 Aerospike, Inc. +// Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License.