2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Use the Caret-Character to Use the Latest Minor Version of a Dependency
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Use the Caret-Character to Use the Latest Minor Version of a Dependency
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
## Hints
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-01-15 20:00:40 -02:00
|
|
|
## Hint 1
|
|
|
|
* the package `moment` should be in your package.json, specifically in the
|
|
|
|
dependencies property.
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-01-15 20:00:40 -02:00
|
|
|
## Hint 2
|
|
|
|
* `moment` version should have a caret character within it.
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
2019-01-15 20:00:40 -02:00
|
|
|
"dependencies": {
|
|
|
|
"moment": "^2.10.2"
|
|
|
|
}
|
|
|
|
```
|
2019-07-24 00:59:27 -07:00
|
|
|
</details>
|