fix(my-joy-beta): polyfill String.prototype.includes
This commit is contained in:
parent
4760db95ff
commit
0706548ed5
@ -71,5 +71,8 @@
|
|||||||
"breeze-nexttick": "0.2.1",
|
"breeze-nexttick": "0.2.1",
|
||||||
"zen-observable": "0.7.1"
|
"zen-observable": "0.7.1"
|
||||||
},
|
},
|
||||||
"workspaces": ["packages/*", "bundle"]
|
"workspaces": [
|
||||||
|
"packages/*",
|
||||||
|
"bundle"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
"joyent-ui-toolkit": "^4.5.0",
|
"joyent-ui-toolkit": "^4.5.0",
|
||||||
"lodash.find": "^4.6.0",
|
"lodash.find": "^4.6.0",
|
||||||
"lodash.get": "^4.4.2",
|
"lodash.get": "^4.4.2",
|
||||||
|
"lodash.includes": "^4.3.0",
|
||||||
"lodash.isstring": "^4.0.1",
|
"lodash.isstring": "^4.0.1",
|
||||||
"lodash.omit": "^4.5.0",
|
"lodash.omit": "^4.5.0",
|
||||||
"lodash.sortby": "^4.7.0",
|
"lodash.sortby": "^4.7.0",
|
||||||
|
@ -7,6 +7,7 @@ import get from 'lodash.get';
|
|||||||
import { set } from 'react-redux-values';
|
import { set } from 'react-redux-values';
|
||||||
import sortBy from 'lodash.sortby';
|
import sortBy from 'lodash.sortby';
|
||||||
import find from 'lodash.find';
|
import find from 'lodash.find';
|
||||||
|
import includes from 'lodash.includes';
|
||||||
import constantCase from 'constant-case';
|
import constantCase from 'constant-case';
|
||||||
import { reset } from 'redux-form';
|
import { reset } from 'redux-form';
|
||||||
|
|
||||||
@ -124,8 +125,8 @@ export default compose(
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
...pkg,
|
...pkg,
|
||||||
ssd: pkg.name.includes('fastdisk'),
|
ssd: includes(pkg.name, 'fastdisk'),
|
||||||
vm: pkg.name.includes('kvm'),
|
vm: includes(pkg.name, 'kvm'),
|
||||||
memory: pkg.memory * 1000000,
|
memory: pkg.memory * 1000000,
|
||||||
disk: pkg.disk * 1000000,
|
disk: pkg.disk * 1000000,
|
||||||
price: packagePrice.cost || 0,
|
price: packagePrice.cost || 0,
|
||||||
|
10
yarn.lock
10
yarn.lock
@ -4832,8 +4832,8 @@ globby@^7.1.1:
|
|||||||
slash "^1.0.0"
|
slash "^1.0.0"
|
||||||
|
|
||||||
glogg@^1.0.0:
|
glogg@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/glogg/-/glogg-1.0.0.tgz#7fe0f199f57ac906cf512feead8f90ee4a284fc5"
|
resolved "https://registry.yarnpkg.com/glogg/-/glogg-1.0.1.tgz#dcf758e44789cc3f3d32c1f3562a3676e6a34810"
|
||||||
dependencies:
|
dependencies:
|
||||||
sparkles "^1.0.0"
|
sparkles "^1.0.0"
|
||||||
|
|
||||||
@ -6648,7 +6648,7 @@ lodash.get@^4.4.2:
|
|||||||
version "4.4.2"
|
version "4.4.2"
|
||||||
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
|
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
|
||||||
|
|
||||||
lodash.includes@^4.2.0:
|
lodash.includes@^4.2.0, lodash.includes@^4.3.0:
|
||||||
version "4.3.0"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
|
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
|
||||||
|
|
||||||
@ -10517,8 +10517,8 @@ timed-out@^4.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"
|
resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"
|
||||||
|
|
||||||
timers-browserify@^2.0.4:
|
timers-browserify@^2.0.4:
|
||||||
version "2.0.4"
|
version "2.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.4.tgz#96ca53f4b794a5e7c0e1bd7cc88a372298fa01e6"
|
resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.5.tgz#04878fb12a155a159c9d1e59faa1f77bf4ecc44c"
|
||||||
dependencies:
|
dependencies:
|
||||||
setimmediate "^1.0.4"
|
setimmediate "^1.0.4"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user