Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Copyright 2015, EMC, Inc.
"use strict";
var di = require('di');
module.exports = messageHandlerFactory;
di.annotate(messageHandlerFactory, new di.Provide('DHCP.messageHandler'));
di.annotate(messageHandlerFactory, new di.Inject(
'DHCP.packet',
'DHCP.parser',
'Services.Lookup',
'Services.Configuration',
'Protocol.Task',
'Services.Waterline',
'Logger',
'Assert',
'Errors',
'Promise',
'_'
)
);
function messageHandlerFactory(
packetUtil,
parser,
// Copyright 2016, EMC, Inc.
'use strict';
var di = require('di');
module.exports = iscDhcpLeasePollerFactory;
di.annotate(iscDhcpLeasePollerFactory, new di.Provide('DHCP.IscDhcpLeasePoller'));
di.annotate(iscDhcpLeasePollerFactory, new di.Inject(
'Services.Lookup',
'Services.Configuration',
'Logger',
'Promise',
'Assert',
'Tail',
'_',
'PromiseQueue'
));
function iscDhcpLeasePollerFactory(
lookupService,
configuration,
Logger,
Promise,
assert,
import {annotate, TransientScope, Inject} from 'di';
class Frankenstein {
constructor(options) {
this.name = options.login;
this.location = options.location;
this.blog = options.blog;
this.avatar_url = options.avatar_url;
}
}
annotate(Frankenstein, new TransientScope());
annotate(Frankenstein, new Inject('options'));
export default Frankenstein;
'use strict';
import { annotate, Inject } from 'di';
import { Modernizr } from './modernizr';
export function provider (modernizr) {
return modernizr.promises && modernizr.typedarrays && modernizr.webaudio;
}
annotate(provider, new Inject(Modernizr));
title: todo.title,
isComplete: checked
};
});
})
.subscribe(this.updates);
this.clearCompleted
.map(() => {
return (todos) => todos.filter((todo) => !todo.isComplete)
})
.subscribe(this.updates);
}
}
di.annotate(TodoActions, new di.Inject(TodoStore));
module.exports = TodoActions;