Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

billy

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

billy - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

4

HISTORY.md
# 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 @@

2

lib/Application.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc