From e66c3ea39e29e4e87585b3bab23fa5ed2e793a6a Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Fri, 19 Apr 2019 14:25:27 +0200 Subject: [PATCH] =?UTF-8?q?Update=20deprecated=20=E2=80=98polyline?= =?UTF-8?q?=E2=80=99=20to=20supported=20=E2=80=99@mapbox/polyline=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 10 +++++----- package.json | 2 +- src/directions.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 56eddcf..1dbf8d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,11 @@ "integrity": "sha1-ioP5M1x4YO/6Lu7KJUMyqgru2PI=", "dev": true }, + "@mapbox/polyline": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@mapbox/polyline/-/polyline-1.0.0.tgz", + "integrity": "sha512-5Vu99e/+kVF0h0eiWa3er3bYnjorq6SGTn06HqeinFAETlQpcHGj7+DanmFlNyXkgvRcKi0nQytuMm6QA2CkAQ==" + }, "@mapbox/shelf-pack": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@mapbox/shelf-pack/-/shelf-pack-3.2.0.tgz", @@ -7702,11 +7707,6 @@ "integrity": "sha1-0aIUg/0iu0HlihL6NCGCMUCJfEU=", "dev": true }, - "polyline": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/polyline/-/polyline-0.2.0.tgz", - "integrity": "sha1-TytxbKgRNKbLqkiJddI27LHMKEA=" - }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", diff --git a/package.json b/package.json index 5e106d3..b81653b 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "webworkify-webpack": "1.1.7" }, "dependencies": { + "@mapbox/polyline": "^1.0.0", "babel-plugin-transform-inline-environment-variables": "^6.8.0", "babel-preset-es2015": "^6.9.0", "babelify": "^7.3.0", @@ -64,7 +65,6 @@ "lodash.debounce": "^4.0.6", "lodash.isequal": "^4.2.0", "lodash.template": "^4.2.5", - "polyline": "^0.2.0", "redux": "^3.5.2", "redux-thunk": "^2.1.0", "suggestions": "1.3.3", diff --git a/src/directions.js b/src/directions.js index f568fff..17a77db 100644 --- a/src/directions.js +++ b/src/directions.js @@ -1,6 +1,6 @@ import { createStore, applyMiddleware, bindActionCreators } from 'redux'; import thunk from 'redux-thunk'; -import { decode } from 'polyline'; +import { decode } from '@mapbox/polyline'; import utils from './utils'; import rootReducer from './reducers';