dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump async from 0.2.9 to 2.6.4 … (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump async from 2.6.0 to 2.6.4 … (compare)
dependabot[bot] on npm_and_yarn
Bump async from 0.2.9 to 3.2.2 … (compare)
dependabot[bot] on npm_and_yarn
Bump async from 2.6.0 to 3.2.2 … (compare)
render: function () {
//custom stuff before
view.prototype.render.call(this);
//custom stuff after
}
$ git clone https://github.com/wraithgar/moonboots_hapi.git
$ cd moonboots_hapi/
$ git checkout v7.0.0
$ npm install
$ npm test
23 tests complete
Test duration: 1900 ms
The following leaks were detected:Reflect
Coverage: 85.29% (25/170)
index.js missing coverage on line(s): 6, 16, 19, 31, 37, 48, 54, 55, 56, 57, 58, 59, 77, 78, 79, 80, 81, 96, 97, 98, 99, 100, 121, 128, 142
npm ERR! Test failed. See above for more details.
import {LayoutView} from 'backbone.marionette';
import template from './template';
export default LayoutView.extend({
modelEvents: {
change: 'render'
},
template: template,
templateHelpers() {
return this.model.toJSON();
}
});
save()
on my ampersand-model the derived and children fields are posted to the api along with the props. is there a way to stop this happening? I have a projectId
prop and a project
is one of the model's children. I only want to send the projectId
to the api on save, not the project
model
My friend told me that when constructor
is used in a function, Webpack spits out an error on the console saying Uncaught TypeError: _WEBPACK_IMPORTED_MODULE_0_ thatmodule__.a is not a constructor
. He showed me the error. He said, in order to fix it, the word constructor
should be replaced with initialize
. The module being used and exported is ampersand-state
and it's in src/profile/index.js.
import State from 'ampersand-state';
export default State.extend({......
// blah blah, code removed for clarity
Then on the outer index.js(not src/profile/index.js), the code is
import Profile from 'src/profile';
export default module.exports = Profile;
What are your thoughts on the constructor issue?