@formspree/deploy
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "@formspree/deploy", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A utility for executing Formspree deployments", | ||
@@ -46,5 +46,5 @@ "keywords": [ | ||
"husky": "^3.0.9", | ||
"jest": "^24.9.0", | ||
"jest": "^26.4.0", | ||
"lint-staged": "^9.4.2", | ||
"np": "^5.1.1", | ||
"np": "^6.4.0", | ||
"prettier": "^1.18.2", | ||
@@ -62,2 +62,2 @@ "sort-package-json": "^1.22.1" | ||
} | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# StaticKit Deploy [![CircleCI](https://circleci.com/gh/unstacked/statickit-deploy.svg?style=svg)](https://circleci.com/gh/unstacked/statickit-deploy) | ||
# Formspree Deploy Utility | ||
A node.js utility library for executing [StaticKit](https://statickit.com) deployments. | ||
A node.js utility library for executing [Formspree](https://formspree.io) deployments. | ||
@@ -5,0 +5,0 @@ ## Releasing |
@@ -13,3 +13,3 @@ const axios = require('axios'); | ||
if (args.config) return args.config; | ||
const file = args.file || 'statickit.json'; | ||
const file = args.file || 'formspree.json'; | ||
@@ -35,3 +35,3 @@ try { | ||
if (args.key) return args.key; | ||
return env.STATICKIT_DEPLOY_KEY; | ||
return env.FORMSPREE_DEPLOY_KEY; | ||
}; | ||
@@ -52,10 +52,11 @@ | ||
const endpoint = args.endpoint || 'https://api.statickit.com'; | ||
const endpoint = args.endpoint || 'https://formspree-react.herokuapp.com'; | ||
return axios({ | ||
method: 'post', | ||
url: `${endpoint}/cli/v1/deployments`, | ||
url: `${endpoint}/api/0/deployments`, | ||
data: config, | ||
headers: { | ||
'StaticKit-Deploy-Key': key, | ||
Authorization: `Bearer ${key}`, | ||
'Content-Type': 'application/json', | ||
'User-Agent': userAgent | ||
@@ -62,0 +63,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
57
3940