Comparing version 1.2.8 to 1.2.9
@@ -44,2 +44,3 @@ import { AxiosInstance } from "axios"; | ||
list(page_type: string, params?: any): Promise<Response>; | ||
search(query: string, params?: any): Promise<Response>; | ||
} | ||
@@ -46,0 +47,0 @@ |
{ | ||
"name": "buttercms", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "ButterCMS API Client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -20,3 +20,3 @@ # ButterCMS JS client | ||
```html | ||
<script src="https://cdnjs.buttercms.com/buttercms-1.1.4.min.js"></script> | ||
<script src="https://cdnjs.buttercms.com/buttercms-1.2.8.min.js"></script> | ||
``` | ||
@@ -29,3 +29,3 @@ | ||
```js | ||
var butter = require('buttercms')('api_token_567abe'); | ||
const butter = require('buttercms')('api_token_567abe'); | ||
``` | ||
@@ -43,3 +43,3 @@ | ||
```js | ||
import Butter = require('buttercms'); | ||
import Butter from 'buttercms'; | ||
const butter = Butter('api_token_567abe'); | ||
@@ -52,3 +52,3 @@ ``` | ||
<script> | ||
var butter = Butter('api_token_567abe'); | ||
const butter = Butter('api_token_567abe'); | ||
</script> | ||
@@ -98,3 +98,3 @@ ``` | ||
```js | ||
var butter = require('buttercms')('your butter API token', true); | ||
const butter = require('buttercms')('your butter API token', true); | ||
``` | ||
@@ -105,3 +105,3 @@ | ||
```js | ||
var butter = require('buttercms')('your butter API token', process.env.BUTTER_PREVIEW_MODE); | ||
const butter = require('buttercms')('your butter API token', process.env.BUTTER_PREVIEW_MODE); | ||
``` | ||
@@ -135,3 +135,3 @@ | ||
```js | ||
var butter = require('buttercms')('your butter API token', false, 5000); | ||
const butter = require('buttercms')('your butter API token', false, 5000); | ||
``` | ||
@@ -152,3 +152,3 @@ | ||
var butter = require('buttercms')('your butter API token', false, 5000, axiosHook); | ||
const butter = require('buttercms')('your butter API token', false, 5000, axiosHook); | ||
``` | ||
@@ -155,0 +155,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85607
1999