Function
update
(done, options, callback)
Source from the content-addressed store, hash-verified
| 1 | export default function update(done, options, callback) { |
| 2 | return function (err, stats) { |
| 3 | if (err) return done(err); |
| 4 | import.meta.webpackHot |
| 5 | .check(options || true) |
| 6 | .then(updatedModules => { |
| 7 | if (!updatedModules) { |
| 8 | return done(new Error("No update available")); |
| 9 | } |
| 10 | if (callback) callback(stats); |
| 11 | }) |
| 12 | .catch(err => { |
| 13 | done(err); |
| 14 | }); |
| 15 | }; |
| 16 | }; |
Callers
nothing calls this directly
Tested by
no test coverage detected