From af9178e341885054d39be543a7585b150cd74c88 Mon Sep 17 00:00:00 2001 From: Jay Winstead Date: Mon, 9 Apr 2018 13:31:19 -0700 Subject: [PATCH] add automatic promise polyfill --- package-lock.json | 33 +++++++++++++++++++-------------- package.json | 1 + src/index.js | 2 ++ 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 64299d2a..27d2b002 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,9 @@ { "name": "ldclient-js", - "version": "1.6.0", + "version": "1.6.2", "lockfileVersion": 1, "requires": true, "dependencies": { - "Base64": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/Base64/-/Base64-1.0.0.tgz", - "integrity": "sha1-trc+40LOZL9m1gA6RTZoO/ijSbU=" - }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -175,6 +170,11 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, + "Base64": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/Base64/-/Base64-1.0.0.tgz", + "integrity": "sha1-trc+40LOZL9m1gA6RTZoO/ijSbU=" + }, "base64-arraybuffer": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", @@ -803,6 +803,11 @@ "prr": "1.0.1" } }, + "es6-promise": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.4.tgz", + "integrity": "sha512-/NdNZVJg+uZgtm9eS3O6lrOLYmQag2DjdEXuPaHlZ6RuVqgqaVZfgYCepEIKsLqwdQArOPtC3XzRLqGGfT8KQQ==" + }, "escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", @@ -1797,22 +1802,22 @@ } } }, - "string-width": { - "version": "1.0.2", + "string_decoder": { + "version": "1.0.1", "bundled": true, "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "safe-buffer": "5.0.1" } }, - "string_decoder": { - "version": "1.0.1", + "string-width": { + "version": "1.0.2", "bundled": true, "dev": true, "requires": { - "safe-buffer": "5.0.1" + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" } }, "stringstream": { diff --git a/package.json b/package.json index e2a3242a..3d5f4fb4 100755 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ }, "dependencies": { "Base64": "1.0.0", + "es6-promise": "4.2.4", "escape-string-regexp": "1.0.5" }, "repository": { diff --git a/src/index.js b/src/index.js index 30422b54..d5bfef9a 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,5 @@ +require('es6-promise/auto'); + var EventProcessor = require('./EventProcessor'); var EventEmitter = require('./EventEmitter'); var EventSerializer = require('./EventSerializer');