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

angular-directus

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-directus - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "angular-directus",
"version": "0.0.1",
"version": "0.0.2",
"description": "Angular wrapper for getdirectus.com Javascript SDK",

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

@@ -11,20 +11,25 @@ var Directus = require('directus-sdk-javascript');

*/
DirectusProvider.$inject = [];
function DirectusProvider() {
let directus;
this.directus;
provider.init = function init(key,url,version){
directus = new Directus(key,url,version);
this.init = function init(url,key,version){
this.directus = new Directus(key,url,version);
}
provider.getEntries = function (table){
directus.getEntries(table, (err, res) => {
if(err) throw err;
console.log(res);
});
}
return provider;
this.$get = function (){
return this;
}
}
function DirectusService(directusConfig){
var self = this;
directusConfig.directus.getEntries(table, (err, res) => {
if(err) throw err;
console.log(res);
});
}
ngDirectusModule
.provider('Directus', DirectusProvider);
.provider('directusConfig', DirectusProvider)
.service('directus', DirectusService);
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