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.3 to 0.1.0

2

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

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

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

var Directus = require('directus-sdk-javascript');
var Directus = require('directus-sdk-javascript/remote');
var ngDirectusModule = require('./module.js');

@@ -15,3 +15,12 @@

this.init = function init(url,key,version){
this.directus = new Directus(key,url,version);
var options = {
url: url
};
if(key){
options.key = key;
}
if(version){
options.version = version;
}
this.directus = new Directus(options);
}

@@ -27,6 +36,5 @@

directusConfig.directus.getEntries(table, (err, res) => {
if(err) throw err;
console.log(res);
});
self.getItems = function(table, options){
return directusConfig.directus.getItems(table, options);
}
}

@@ -33,0 +41,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