Socket
Socket
Sign inDemoInstall

trailpack

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trailpack - npm Package Compare versions

Comparing version 3.0.0-pre.1 to 3.0.0-pre.2

archetype/.npmignore

6

archetype/package.json

@@ -10,11 +10,11 @@ {

"dependencies": {
"trailpack": "^3"
"trailpack": "next"
},
"devDependencies": {
"lodash": "^4.11.1",
"trails": "^3",
"trails": "next",
"eslint": "^3",
"eslint-config-trails": "^3",
"mocha": "^3",
"smokesignals": "^3"
"smokesignals": "next"
},

@@ -21,0 +21,0 @@ "scripts": {

@@ -1,2 +0,2 @@

# <%= name %>
# <%= packName %>

@@ -13,3 +13,3 @@ [![NPM version][npm-image]][npm-url]

```sh
$ npm install --save <%= name %>
$ npm install --save <%= packName %>
```

@@ -24,3 +24,3 @@

// ... other trailpacks
require('<%= name %>')
require('<%= packName %>')
]

@@ -30,10 +30,10 @@ }

[npm-image]: https://img.shields.io/npm/v/<%= name %>.svg?style=flat-square
[npm-url]: https://npmjs.org/package/<%= name %>
[ci-image]: https://img.shields.io/travis/<%= githubAccount %>/<%= name %>/master.svg?style=flat-square
[ci-url]: https://travis-ci.org/<%= githubAccount %>/<%= name %>
[daviddm-image]: http://img.shields.io/david/<%= githubAccount %>/<%= name %>.svg?style=flat-square
[daviddm-url]: https://david-dm.org/<%= githubAccount %>/<%= name %>
[codeclimate-image]: https://img.shields.io/codeclimate/github/<%= githubAccount %>/<%= name %>.svg?style=flat-square
[codeclimate-url]: https://codeclimate.com/github/<%= githubAccount %>/<%= name %>
[npm-image]: https://img.shields.io/npm/v/<%= packName %>.svg?style=flat-square
[npm-url]: https://npmjs.org/package/<%= packName %>
[ci-image]: https://img.shields.io/travis/<%= githubAccount %>/<%= packName %>/master.svg?style=flat-square
[ci-url]: https://travis-ci.org/<%= githubAccount %>/<%= packName %>
[daviddm-image]: http://img.shields.io/david/<%= githubAccount %>/<%= packName %>.svg?style=flat-square
[daviddm-url]: https://david-dm.org/<%= githubAccount %>/<%= packName %>
[codeclimate-image]: https://img.shields.io/codeclimate/github/<%= githubAccount %>/<%= packName %>.svg?style=flat-square
[codeclimate-url]: https://codeclimate.com/github/<%= githubAccount %>/<%= packName %>

@@ -1,5 +0,2 @@

const _ = require('lodash')
const smokesignals = require('smokesignals')
module.exports = _.defaultsDeep({
module.exports = {
pkg: {

@@ -16,3 +13,2 @@ name: require('../package').name + '-test'

packs: [
smokesignals.Trailpack,
require('../')

@@ -22,4 +18,2 @@ ]

}
}, smokesignals.FailsafeConfig)
}

@@ -5,3 +5,3 @@ const TrailsApp = require('trails')

global.app = new TrailsApp(require('./app'))
return global.app.start().catch(global.app.stop)
return global.app.start()
})

@@ -8,0 +8,0 @@

const assert = require('assert')
describe('Trailpack', () => {
describe('<%= packName %>', () => {
let pack
before(() => {
// pack = global.app.packs.waterline
})
it.skip('TODO should be loaded into the app.packs collection', () => {
pack = global.app.packs.<%= packBasename %>
assert(pack)

@@ -20,2 +18,5 @@ })

})
describe('#unload', () => {
it.skip('TODO test')
})
})

@@ -7,3 +7,3 @@ const EventEmitter = require('events').EventEmitter

* @class Trailpack
* @see {@link http://trailsjs.io/doc/trailpack}
* @see {@link https://trailsjs.io/doc/en/ref/trailpack}
*/

@@ -116,3 +116,3 @@ module.exports = class Trailpack {

get log () {
return this.app.config.log.logger
return this.app.log
}

@@ -119,0 +119,0 @@

{
"name": "trailpack",
"version": "3.0.0-pre.1",
"version": "3.0.0-pre.2",
"description": "Trailpacks extend the functionality of the Trails framework.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,9 +14,4 @@ # trailpack

## Usage
This module is a class which should be extended by all trailpacks.
This class should be extended by all trailpacks.
#### Implement
See [`archetype/index.js`](https://github.com/trailsjs/trailpack/blob/master/archetype/index.js)
for more details.
```js

@@ -167,2 +162,7 @@ const Trailpack = require('trailpack')

### Documentation
- [**Trailpack Implementation Guide**](https://trailsjs.io/doc/en/ref/trailpack)
- [**API Reference**](https://trailsjs.io/doc/en/extend/trailpack)
## Contributing

@@ -169,0 +169,0 @@ We love contributions! Please see our [Contribution Guide](https://github.com/trailsjs/trails/blob/master/.github/CONTRIBUTING.md)

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