Comparing version 1.7.0 to 1.7.1
# Change History | ||
## v1.7.1 (2015-11-29) | ||
* Updated dependencies (fixes issues with ES2015 runtimes) | ||
## v1.7.0 (2014-10-12) | ||
@@ -4,0 +8,0 @@ |
@@ -101,3 +101,3 @@ module.exports = Application; | ||
* See {@link Container#register} | ||
* @param {string} tag Tag to register a depedency under | ||
* @param {string} tag Tag to register a dependency under | ||
* @param {function|object} thing A class constructor or object instance | ||
@@ -104,0 +104,0 @@ * @return {IoCBinding} |
{ | ||
"name": "billy", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "A minimal application harness that stays out of your way and out of your code.", | ||
@@ -40,7 +40,7 @@ "author": { | ||
"dependencies": { | ||
"bluebird": "^2.3.2", | ||
"bluebird": "^3.0.5", | ||
"debug": "^2.0.0", | ||
"sack": "^2.2.0", | ||
"sack": "^2.2.1", | ||
"typedef": "^1.1.0" | ||
} | ||
} |
@@ -19,5 +19,6 @@ # billy | ||
```javascript | ||
var Application = require('billy'); | ||
var app = new Application(); | ||
import Application from 'billy'; | ||
let app = new Application(); | ||
app.service(function main() { | ||
@@ -80,3 +81,3 @@ console.log('Hello, World!'); | ||
```javascript | ||
app.service(function main() { | ||
app.service(() => { | ||
console.log('service created'); | ||
@@ -90,9 +91,6 @@ }); | ||
```javascript | ||
app.service(function main() { | ||
app.service(async () => { | ||
console.log('service created'); | ||
return someAsyncTask() | ||
.then(function() { | ||
console.log('service started'); | ||
}); | ||
await someAsyncTask(); | ||
console.log('service started'); | ||
}); | ||
@@ -111,7 +109,9 @@ ``` | ||
// MyService.js | ||
module.exports = MyService; | ||
function MyService() | ||
export default class MyService | ||
{ | ||
console.log('service created'); | ||
constructor() | ||
{ | ||
console.log('service created'); | ||
} | ||
} | ||
@@ -124,6 +124,6 @@ ``` | ||
// main.js | ||
var Application = require('billy'); | ||
var MyService = require('./MyService.js'); | ||
import Application from 'billy'; | ||
import MyService from './MyService.js'; | ||
var app = new Application(); | ||
let app = new Application(); | ||
@@ -139,9 +139,10 @@ app.service(MyService); | ||
```javascript | ||
MyService.prototype.start = function() | ||
export default class MyService | ||
{ | ||
return someAsyncTask() | ||
.then(function() { | ||
console.log('service started'); | ||
}); | ||
}; | ||
async start() | ||
{ | ||
await someAsyncTask(); | ||
console.log('service started'); | ||
} | ||
} | ||
``` | ||
@@ -148,0 +149,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169
33093
16
+ Addedbluebird@3.7.2(transitive)
- Removedbluebird@2.11.0(transitive)
Updatedbluebird@^3.0.5
Updatedsack@^2.2.1