#99 Remove offending module breaking compatibility with Android 4
Merged a year ago by amitosh. Opened 2 years ago by amitosh.
amitosh/Fedora-app compatibility  into  master

file modified
+82 -47

@@ -840,6 +840,7 @@ 

        "version": "5.5.2",

        "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",

        "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",

+       "dev": true,

        "requires": {

          "co": "^4.6.0",

          "fast-deep-equal": "^1.0.0",

@@ -1021,7 +1022,8 @@ 

      "asn1": {

        "version": "0.2.3",

        "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",

-       "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y="

+       "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=",

+       "dev": true

      },

      "asn1.js": {

        "version": "4.10.1",

@@ -1063,7 +1065,8 @@ 

      "assert-plus": {

        "version": "1.0.0",

        "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",

-       "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="

+       "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",

+       "dev": true

      },

      "assign-symbols": {

        "version": "1.0.0",

@@ -1101,7 +1104,8 @@ 

      "asynckit": {

        "version": "0.4.0",

        "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",

-       "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="

+       "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",

+       "dev": true

      },

      "atob": {

        "version": "2.1.1",

@@ -1126,12 +1130,14 @@ 

      "aws-sign2": {

        "version": "0.7.0",

        "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",

-       "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="

+       "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",

+       "dev": true

      },

      "aws4": {

        "version": "1.6.0",

        "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz",

-       "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4="

+       "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=",

+       "dev": true

      },

      "babel-code-frame": {

        "version": "6.26.0",

@@ -1200,6 +1206,7 @@ 

        "version": "6.26.0",

        "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",

        "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",

+       "dev": true,

        "requires": {

          "core-js": "^2.4.0",

          "regenerator-runtime": "^0.11.0"

@@ -1354,6 +1361,7 @@ 

        "version": "1.0.2",

        "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",

        "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",

+       "dev": true,

        "optional": true,

        "requires": {

          "tweetnacl": "^0.14.3"

@@ -1767,7 +1775,8 @@ 

      "caseless": {

        "version": "0.12.0",

        "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",

-       "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="

+       "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",

+       "dev": true

      },

      "center-align": {

        "version": "0.1.3",

@@ -1869,7 +1878,8 @@ 

      "co": {

        "version": "4.6.0",

        "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",

-       "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ="

+       "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",

+       "dev": true

      },

      "code-point-at": {

        "version": "1.1.0",

@@ -1912,6 +1922,7 @@ 

        "version": "1.0.6",

        "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",

        "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=",

+       "dev": true,

        "requires": {

          "delayed-stream": "~1.0.0"

        }

@@ -2998,20 +3009,17 @@ 

        "resolved": "https://registry.npmjs.org/cordova-plugin-x-toast/-/cordova-plugin-x-toast-2.7.2.tgz",

        "integrity": "sha512-nx4LaBkJyEk1MknkLC0/U904A42WX/1/OZUeUyXkKRtChShsoTdbWlvEqHKzPbELzf2bEMnXd1CI70WRv+a4hA=="

      },

-     "core-decorators": {

-       "version": "0.12.3",

-       "resolved": "https://registry.npmjs.org/core-decorators/-/core-decorators-0.12.3.tgz",

-       "integrity": "sha1-az+DN45oDUiwwI2kSJiZt1Mty0M="

-     },

      "core-js": {

        "version": "2.5.3",

        "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.3.tgz",

-       "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4="

+       "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=",

+       "dev": true

      },

      "core-util-is": {

        "version": "1.0.2",

        "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",

-       "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="

+       "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",

+       "dev": true

      },

      "create-ecdh": {

        "version": "4.0.3",

@@ -3108,6 +3116,7 @@ 

        "version": "1.14.1",

        "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",

        "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",

+       "dev": true,

        "requires": {

          "assert-plus": "^1.0.0"

        }

@@ -3128,6 +3137,7 @@ 

        "version": "2.6.9",

        "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",

        "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",

+       "dev": true,

        "requires": {

          "ms": "2.0.0"

        }

@@ -3241,7 +3251,8 @@ 

      "delayed-stream": {

        "version": "1.0.0",

        "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",

-       "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="

+       "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",

+       "dev": true

      },

      "delegates": {

        "version": "1.0.0",

@@ -3373,6 +3384,7 @@ 

        "version": "0.1.1",

        "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",

        "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",

+       "dev": true,

        "optional": true,

        "requires": {

          "jsbn": "~0.1.0"

@@ -3929,7 +3941,8 @@ 

      "extend": {

        "version": "3.0.1",

        "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz",

-       "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ="

+       "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=",

+       "dev": true

      },

      "extend-shallow": {

        "version": "3.0.2",

@@ -3964,17 +3977,20 @@ 

      "extsprintf": {

        "version": "1.3.0",

        "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",

-       "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="

+       "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",

+       "dev": true

      },

      "fast-deep-equal": {

        "version": "1.0.0",

        "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz",

-       "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8="

+       "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=",

+       "dev": true

      },

      "fast-json-stable-stringify": {

        "version": "2.0.0",

        "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",

-       "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="

+       "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=",

+       "dev": true

      },

      "fastparse": {

        "version": "1.1.1",

@@ -3991,17 +4007,6 @@ 

          "websocket-driver": ">=0.5.1"

        }

      },

-     "fb": {

-       "version": "1.1.1",

-       "resolved": "https://registry.npmjs.org/fb/-/fb-1.1.1.tgz",

-       "integrity": "sha1-s/A2aJ5VCY1viKbe5lUdAxb9a1c=",

-       "requires": {

-         "babel-runtime": "^6.3.19",

-         "core-decorators": "^0.12.3",

-         "debug": "^2.2.0",

-         "request": "^2.67.0"

-       }

-     },

      "filename-regex": {

        "version": "2.0.1",

        "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz",

@@ -4106,12 +4111,14 @@ 

      "forever-agent": {

        "version": "0.6.1",

        "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",

-       "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="

+       "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",

+       "dev": true

      },

      "form-data": {

        "version": "2.3.2",

        "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz",

        "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=",

+       "dev": true,

        "requires": {

          "asynckit": "^0.4.0",

          "combined-stream": "1.0.6",

@@ -4784,6 +4791,7 @@ 

        "version": "0.1.7",

        "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",

        "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",

+       "dev": true,

        "requires": {

          "assert-plus": "^1.0.0"

        }

@@ -4907,12 +4915,14 @@ 

      "har-schema": {

        "version": "2.0.0",

        "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",

-       "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="

+       "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",

+       "dev": true

      },

      "har-validator": {

        "version": "5.0.3",

        "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",

        "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",

+       "dev": true,

        "requires": {

          "ajv": "^5.1.0",

          "har-schema": "^2.0.0"

@@ -5170,6 +5180,7 @@ 

        "version": "1.2.0",

        "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",

        "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",

+       "dev": true,

        "requires": {

          "assert-plus": "^1.0.0",

          "jsprim": "^1.2.2",

@@ -5520,7 +5531,8 @@ 

      "is-typedarray": {

        "version": "1.0.0",

        "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",

-       "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="

+       "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",

+       "dev": true

      },

      "is-utf8": {

        "version": "0.2.1",

@@ -5567,7 +5579,8 @@ 

      "isstream": {

        "version": "0.1.2",

        "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",

-       "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="

+       "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",

+       "dev": true

      },

      "istanbul-api": {

        "version": "2.1.1",

@@ -5801,6 +5814,7 @@ 

        "version": "0.1.1",

        "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",

        "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",

+       "dev": true,

        "optional": true

      },

      "jsesc": {

@@ -5818,17 +5832,20 @@ 

      "json-schema": {

        "version": "0.2.3",

        "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",

-       "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="

+       "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",

+       "dev": true

      },

      "json-schema-traverse": {

        "version": "0.3.1",

        "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",

-       "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A="

+       "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=",

+       "dev": true

      },

      "json-stringify-safe": {

        "version": "5.0.1",

        "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",

-       "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="

+       "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",

+       "dev": true

      },

      "json5": {

        "version": "0.5.1",

@@ -5849,6 +5866,7 @@ 

        "version": "1.4.1",

        "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",

        "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",

+       "dev": true,

        "requires": {

          "assert-plus": "1.0.0",

          "extsprintf": "1.3.0",

@@ -6789,12 +6807,14 @@ 

      "mime-db": {

        "version": "1.33.0",

        "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz",

-       "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ=="

+       "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==",

+       "dev": true

      },

      "mime-types": {

        "version": "2.1.18",

        "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz",

        "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",

+       "dev": true,

        "requires": {

          "mime-db": "~1.33.0"

        }

@@ -6873,7 +6893,8 @@ 

      "ms": {

        "version": "2.0.0",

        "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",

-       "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="

+       "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",

+       "dev": true

      },

      "nan": {

        "version": "2.13.1",

@@ -7278,7 +7299,8 @@ 

      "oauth-sign": {

        "version": "0.8.2",

        "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",

-       "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM="

+       "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=",

+       "dev": true

      },

      "object-assign": {

        "version": "4.1.1",

@@ -7646,7 +7668,8 @@ 

      "performance-now": {

        "version": "2.1.0",

        "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",

-       "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="

+       "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",

+       "dev": true

      },

      "pify": {

        "version": "2.3.0",

@@ -7898,7 +7921,8 @@ 

      "punycode": {

        "version": "1.4.1",

        "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",

-       "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="

+       "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",

+       "dev": true

      },

      "q": {

        "version": "1.4.1",

@@ -7915,7 +7939,8 @@ 

      "qs": {

        "version": "6.5.1",

        "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",

-       "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A=="

+       "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==",

+       "dev": true

      },

      "query-string": {

        "version": "4.3.4",

@@ -8086,7 +8111,8 @@ 

      "regenerator-runtime": {

        "version": "0.11.1",

        "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",

-       "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg=="

+       "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",

+       "dev": true

      },

      "regex-cache": {

        "version": "0.4.4",

@@ -8144,6 +8170,7 @@ 

        "version": "2.87.0",

        "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz",

        "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==",

+       "dev": true,

        "requires": {

          "aws-sign2": "~0.7.0",

          "aws4": "^1.6.0",

@@ -8574,7 +8601,8 @@ 

      "safe-buffer": {

        "version": "5.1.1",

        "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",

-       "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="

+       "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==",

+       "dev": true

      },

      "safe-json-parse": {

        "version": "1.0.1",

@@ -8594,7 +8622,8 @@ 

      "safer-buffer": {

        "version": "2.1.2",

        "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",

-       "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="

+       "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",

+       "dev": true

      },

      "sass-graph": {

        "version": "2.2.4",

@@ -9096,6 +9125,7 @@ 

        "version": "1.14.2",

        "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz",

        "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=",

+       "dev": true,

        "requires": {

          "asn1": "~0.2.3",

          "assert-plus": "^1.0.0",

@@ -9481,6 +9511,7 @@ 

        "version": "2.3.3",

        "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz",

        "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=",

+       "dev": true,

        "requires": {

          "punycode": "^1.4.1"

        }

@@ -9923,6 +9954,7 @@ 

        "version": "0.6.0",

        "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",

        "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",

+       "dev": true,

        "requires": {

          "safe-buffer": "^5.0.1"

        }

@@ -9931,6 +9963,7 @@ 

        "version": "0.14.5",

        "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",

        "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",

+       "dev": true,

        "optional": true

      },

      "type-is": {

@@ -10242,7 +10275,8 @@ 

      "uuid": {

        "version": "3.2.1",

        "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz",

-       "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA=="

+       "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==",

+       "dev": true

      },

      "validate-npm-package-license": {

        "version": "3.0.4",

@@ -10264,6 +10298,7 @@ 

        "version": "1.10.0",

        "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",

        "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",

+       "dev": true,

        "requires": {

          "assert-plus": "^1.0.0",

          "core-util-is": "1.0.2",

file modified
-1

@@ -60,7 +60,6 @@ 

      "cordova-plugin-x-socialsharing": "^5.4.3",

      "cordova-plugin-x-toast": "^2.7.2",

      "es6-promise-plugin": "^4.2.2",

-     "fb": "^1.1.1",

      "ionic-angular": "^3.9.4",

      "ionic-plugin-keyboard": "^2.2.1",

      "ionicons": "^3.0.0",

@@ -1,16 +1,15 @@ 

  import { Injectable } from '@angular/core';

  import ENV from '@environment';

  import { Storage } from '@ionic/storage';

- import { Facebook } from 'fb';

  import { compact } from 'lodash-es';

  import { beautifyDate } from '../../utils';

  import { SocialProvider, SocialMediaPost, FACEBOOK } from './social';

  import { Observable } from 'rxjs/Observable';

- import { Observer } from 'rxjs/Observer';

  import { fromPromise } from 'rxjs/observable/fromPromise';

  import { merge } from 'rxjs/observable/merge';

  import { tap, map } from 'rxjs/operators';

  import { defaultValue } from '../../utils';

+ import { HttpClient } from '@angular/common/http';

  

  /**

   * The prefix of the key used for storing offline content

@@ -35,13 +34,7 @@ 

  @Injectable()

  export class FacebookProvider implements SocialProvider {

  

-   /**

-    * Facebook API instance

-    */

-   private fb: Facebook;

- 

-   constructor(private storage: Storage) {

-     this.fb = new Facebook(ENV.FB_CONFIG);

+   constructor(private http:HttpClient, private storage: Storage) {

    }

  

    /**

@@ -55,26 +48,6 @@ 

    }

  

    /**

-    * Perform a call to a Facebook API using the library

-    *

-    * Converts callback-style error handling to observables.

-    *

-    * @param uri Facebook API URI

-    */

-   private api(uri: string) {

-     return Observable.create((emitter: Observer<any>) => {

-       this.fb.api(uri, res => {

-         if (!res || res.error) {

-           emitter.error(res.error);

-         } else {

-           emitter.next(res);

-         }

-         emitter.complete();

-       });

-     });

-   }

- 

-   /**

     * Fetch the list of posts for a given Facebook page

     *

     * @param page ID of the Facebook page

@@ -82,7 +55,11 @@ 

     * @returns Observable which emits an array of Facebook posts

     */

    fetchPosts(page: string, args?): Observable<SocialMediaPost[]> {

-     return this.api(`${page}/posts`)

+     return this.http.get(`https://graph.facebook.com/${ENV.FB_CONFIG.version}/${page}/posts`, {

+       params: {

+         access_token: ENV.FB_CONFIG.accessToken

+       }

+     })

        .pipe(

          map((res: any) => {

            const posts = compact<SocialMediaPost>(res.data.map(p => {

rebased onto 9de1ed0

2 years ago

rebased onto b1b96bf

a year ago

Pull-Request has been merged by amitosh

a year ago