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

buttercms

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buttercms - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

lib/resources/Author.js

@@ -12,3 +12,3 @@ 'use strict';

retrieve: function(slug, options) {
return this._conn.get(`authors/${slug}`, options)
return this._conn.get('authors/'+slug, options)
}

@@ -15,0 +15,0 @@ }

@@ -12,3 +12,3 @@ 'use strict';

retrieve: function(slug, options) {
return this._conn.get(`categories/${slug}`, options)
return this._conn.get('categories/'+slug, options)
}

@@ -15,0 +15,0 @@ }

@@ -11,3 +11,3 @@ 'use strict';

return this._conn.get(`content`, {keys: keys.join()})
return this._conn.get('content', {keys: keys.join()})
}

@@ -14,0 +14,0 @@ }

@@ -9,3 +9,3 @@ 'use strict';

retrieve: function(type, options) {
return this._conn.get(`feeds/${type}`, options)
return this._conn.get('feeds/'+type, options)
}

@@ -12,0 +12,0 @@ }

@@ -12,3 +12,3 @@ 'use strict';

retrieve: function(slug, options) {
return this._conn.get(`posts/${slug}`, options)
return this._conn.get('posts/'+slug, options)
},

@@ -19,3 +19,3 @@ search: function(query, options) {

return this._conn.get(`search`, options)
return this._conn.get('search', options)
}

@@ -22,0 +22,0 @@ }

@@ -12,3 +12,3 @@ 'use strict';

retrieve: function(slug, options) {
return this._conn.get(`tags/${slug}`, options)
return this._conn.get('tags/'+slug, options)
}

@@ -15,0 +15,0 @@ }

{
"name": "buttercms",
"version": "1.0.9",
"version": "1.0.10",
"description": "ButterCMS API Client",

@@ -5,0 +5,0 @@ "keywords": [

var butter = require('./lib/butter')('b60a008584313ed21803780bc9208557b3b49fbb');
// butter.post.list({page: 1, page_size: 10})
// .then(function(response) {
// console.log(response)
// }).catch(function(response) {
// console.log(response)
// });
butter.post.list({page: 1, page_size: 10})
.then(function(response) {
console.log(response)
}).catch(function(response) {
console.log(response)
});

@@ -17,15 +17,15 @@ butter.tag.list()

// butter.post.retrieve("directly-import-pdfs-into-your-blog-post")
// .then(function(response) {
// console.log(response)
// }).catch(function(response) {
// console.log(response)
// });
butter.post.retrieve("directly-import-pdfs-into-your-blog-post")
.then(function(response) {
console.log(response)
}).catch(function(response) {
console.log(response)
});
// butter.content.retrieve(["abis_team", "homepage_headlinee"])
// .then(function(response) {
// console.log(response.data.data)
// }).catch(function(response) {
// console.log(response)
// });
butter.content.retrieve(["abis_team", "homepage_headlinee"])
.then(function(response) {
console.log(response.data.data)
}).catch(function(response) {
console.log(response)
});

Sorry, the diff of this file is not supported yet

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