ember-cli-simple-auth-devise
Advanced tools
Comparing version 0.6.4 to 0.6.6
45
index.js
@@ -1,36 +0,15 @@ | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
module.exports = { | ||
name: 'Ember CLI Simple Auth Devise', | ||
function EmberCLISimpleAuthDevise(project) { | ||
this.project = project; | ||
this.name = 'Ember CLI Simple Auth Devise'; | ||
} | ||
included: function(app) { | ||
this._super.included(app); | ||
function unwatchedTree(dir) { | ||
return { | ||
read: function() { return dir; }, | ||
cleanup: function() { } | ||
}; | ||
this.app.import(app.bowerDirectory + '/ember-simple-auth/simple-auth-devise.amd.js', { | ||
exports: { | ||
'simple-auth-devise/authenticators/devise': ['default'], | ||
'simple-auth-devise/authorizers/devise': ['default'], | ||
'simple-auth-devise/initializer': ['default'] | ||
} | ||
}); | ||
} | ||
} | ||
EmberCLISimpleAuthDevise.prototype.treeFor = function included(name) { | ||
var treePath = path.join('node_modules/ember-cli-simple-auth-devise', name + '-addon'); | ||
if (fs.existsSync(treePath)) { | ||
return unwatchedTree(treePath); | ||
} | ||
}; | ||
EmberCLISimpleAuthDevise.prototype.included = function included(app) { | ||
this.app = app; | ||
this.app.import('vendor/ember-simple-auth/simple-auth-devise.amd.js', { | ||
exports: { | ||
'simple-auth-devise/authenticators/devise': ['default'], | ||
'simple-auth-devise/authorizers/devise': ['default'], | ||
'simple-auth-devise/initializer': ['default'] | ||
} | ||
}); | ||
}; | ||
module.exports = EmberCLISimpleAuthDevise; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.6.4", | ||
"version": "0.6.6", | ||
"description": "Include the Ember Simple Auth devise extension library into an Ember CLI application.", | ||
@@ -12,2 +12,5 @@ "main": "index.js", | ||
}, | ||
"ember-addon": { | ||
"main": "index" | ||
}, | ||
"keywords": [ | ||
@@ -20,3 +23,6 @@ "ember-addon" | ||
}, | ||
"homepage": "https://github.com/simplabs/ember-cli-simple-auth-devise" | ||
"homepage": "https://github.com/simplabs/ember-cli-simple-auth-devise", | ||
"dependencies": { | ||
"ember-cli-simple-auth": "0.6.6" | ||
} | ||
} |
@@ -9,2 +9,4 @@ # Ember Simple Auth Devise | ||
**Ember Simple Auth Devise requires at least Ember CLI 0.0.42.** | ||
To install simply run | ||
@@ -14,2 +16,3 @@ | ||
npm install --save-dev ember-cli-simple-auth-devise | ||
ember generate ember-cli-simple-auth-devise | ||
``` | ||
@@ -16,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
22
0
0
2986
1
7
22
+ Addedember-cli-simple-auth@0.6.6
+ Addedember-cli-simple-auth@0.6.6(transitive)