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

angular-jazar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-jazar - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

2

bower.json
{
"name": "angular-jazar",
"version": "0.3.0",
"version": "0.4.0",
"authors": [

@@ -5,0 +5,0 @@ {

@@ -27,67 +27,33 @@ (function (angular) {

var baseUrl = 'http://jazar.org/wp-json/wp/v2/';
angular.module('angularJazar.services').factory('JazarPosts',['$resource',
function($resource){
var baseUrl = 'http://jazar.org/wp-json/wp/v2';
var query;
return $resource('http://jazar.org/wp-json/wp/v2/posts/:id', {id:'@id',type:'post'});
return $resource(baseUrl + 'posts/:id', {id:'@id',per_page:100});
}]
);
angular.module('angularJazar.services').factory('JazarEspaciosComunes',['$resource',
function($resource){
return $resource(baseUrl + 'espacios-comunes/:id', {id:'@id',per_page:30});
}]
);
angular.module('angularJazar.services').factory('JazarPages',['$resource',
function($resource){
return $resource(baseUrl + 'pages/:id', {id:'@id'});
}]
);
angular.module('angularJazar.services').factory('JazarEvents',['$resource',
function($resource){
var baseUrl = 'http://jazar.org/wp-json/wp/v2';
var query;
return $resource('http://jazar.org/wp-json/wp/v2/posts/:id', {id:'@id'});
return $resource(baseUrl + 'events/:id', {id:'@id'});
}]
);
/* REST v2 API /wp-json/wp/v2 http://v2.wp-api.org/
/posts
*/
/* JSON API https://es.wordpress.org/plugins/json-api/other_notes/
get_recent_posts/?post_type=ai1ec_event
info
get_recent_posts
get_posts
get_post
get_page
get_date_posts
get_category_posts
get_tag_posts
get_author_posts
get_search_results
get_date_index
get_category_index
get_tag_index
get_author_index
get_page_index
get_nonce
*/
/*angular.module('angularJazar.services').factory('Jazar',['$http',
function($http){
var baseUrl = 'http://jazar.org/?json=1';
var query;
return {
//Get all posts - Returns $promise
getAll: function(){
query = $http.get(baseUrl + '&count=-1');
return query;
},
//Get paginated posts Count of 10 -Arg page_num (1,2,3...- Returns $promise
getPage: function(page){
query = $http.get(baseUrl + '&page=' + page);
return query;
},
//Get a post - Arg: postId - Returns $promise
getPost: function(postId){
query = $http.get(baseUrl + '&p=' + postId);
return query;
}
};
angular.module('angularJazar.services').factory('JazarMedia',['$resource',
function($resource){
return $resource(baseUrl + 'media/:id', {id:'@id'});
}]
);*/
);

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

!function(a){a.module("angularJazar.config",[]).value("angularJazar.config",{debug:!0}),a.module("angularJazar.services",[]),a.module("angularJazar",["angularJazar.config","angularJazar.services","ngResource","ngSanitize"])}(angular),angular.module("angularJazar.services").factory("JazarPosts",["$resource",function(a){return a("http://jazar.org/wp-json/wp/v2/posts/:id",{id:"@id",type:"post"})}]),angular.module("angularJazar.services").factory("JazarEvents",["$resource",function(a){return a("http://jazar.org/wp-json/wp/v2/posts/:id",{id:"@id"})}]);
!function(a){a.module("angularJazar.config",[]).value("angularJazar.config",{debug:!0}),a.module("angularJazar.services",[]),a.module("angularJazar",["angularJazar.config","angularJazar.services","ngResource","ngSanitize"])}(angular);var baseUrl="http://jazar.org/wp-json/wp/v2/";angular.module("angularJazar.services").factory("JazarPosts",["$resource",function(a){return a(baseUrl+"posts/:id",{id:"@id",per_page:100})}]),angular.module("angularJazar.services").factory("JazarEspaciosComunes",["$resource",function(a){return a(baseUrl+"espacios-comunes/:id",{id:"@id",per_page:30})}]),angular.module("angularJazar.services").factory("JazarPages",["$resource",function(a){return a(baseUrl+"pages/:id",{id:"@id"})}]),angular.module("angularJazar.services").factory("JazarEvents",["$resource",function(a){return a(baseUrl+"events/:id",{id:"@id"})}]),angular.module("angularJazar.services").factory("JazarMedia",["$resource",function(a){return a(baseUrl+"media/:id",{id:"@id"})}]);
{
"name": "angular-jazar",
"version": "0.3.0",
"version": "0.4.0",
"author": {

@@ -5,0 +5,0 @@ "name": "Oier Bravo Urtasun",

@@ -10,4 +10,7 @@ # Angular Jazar

- JazarEspaciosComunes
- JazarPages
- JazarEvents
- JazarMedia
##- - WORK IN PROGRESS - -

@@ -14,0 +17,0 @@ ## DEVELOPERS

@@ -17,2 +17,14 @@ /*angularJazar.services.js*/

);
angular.module('angularJazar.services').factory('JazarPages',['$resource',
function($resource){
return $resource(baseUrl + 'pages/:id', {id:'@id'});
}]
);
angular.module('angularJazar.services').factory('JazarEvents',['$resource',
function($resource){
return $resource(baseUrl + 'events/:id', {id:'@id'});
}]
);
angular.module('angularJazar.services').factory('JazarMedia',['$resource',

@@ -19,0 +31,0 @@ function($resource){

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