@joystick.js/cli-canary 0.0.0-canary.1673 → 0.0.0-canary.1674
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from"node-fetch";const a=(e={})=>n(`${e?.push_domain}/api/deployments/${e?.domain}`,{method:"GET",headers:{"x-push-deployment-token":e?.deployment_token,Accept:"application/json"}})?.then(async t=>await t.json()).catch(t=>{console.warn(t)});var c=a;export{c as default};
|
|
2
2
|
//# sourceMappingURL=get_deployment.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/commands/push_v2/get_deployment.js"],
|
|
4
|
-
"sourcesContent": ["import fetch from 'node-fetch';\n\nconst get_deployment = (options = {}) => {\n\treturn fetch(`${options?.push_domain}/api/deployments/${options?.domain}`, {\n\t\tmethod: 'GET',\n\t\theaders: {\n\t\t\t'x-push-deployment-token': options?.
|
|
5
|
-
"mappings": "AAAA,OAAOA,MAAW,aAElB,MAAMC,EAAiB,CAACC,EAAU,CAAC,IAC3BF,EAAM,GAAGE,GAAS,WAAW,oBAAoBA,GAAS,MAAM,GAAI,CAC1E,OAAQ,MACR,QAAS,CACR,0BAA2BA,GAAS,
|
|
4
|
+
"sourcesContent": ["import fetch from 'node-fetch';\n\nconst get_deployment = (options = {}) => {\n\treturn fetch(`${options?.push_domain}/api/deployments/${options?.domain}`, {\n\t\tmethod: 'GET',\n\t\theaders: {\n\t\t\t'x-push-deployment-token': options?.deployment_token,\n\t\t\tAccept: 'application/json',\n\t\t},\n\t})?.then(async (response) => {\n\t\t// NOTE: We only care about the data in the response here so just return it.\n\t\tconst data = await response.json();\n\t\treturn data;\n\t}).catch((error) => {\n\t\tconsole.warn(error);\n\t});\n};\n\nexport default get_deployment;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAOA,MAAW,aAElB,MAAMC,EAAiB,CAACC,EAAU,CAAC,IAC3BF,EAAM,GAAGE,GAAS,WAAW,oBAAoBA,GAAS,MAAM,GAAI,CAC1E,OAAQ,MACR,QAAS,CACR,0BAA2BA,GAAS,iBACpC,OAAQ,kBACT,CACD,CAAC,GAAG,KAAK,MAAOC,GAEF,MAAMA,EAAS,KAAK,CAEjC,EAAE,MAAOC,GAAU,CACnB,QAAQ,KAAKA,CAAK,CACnB,CAAC,EAGF,IAAOC,EAAQJ",
|
|
6
6
|
"names": ["fetch", "get_deployment", "options", "response", "error", "get_deployment_default"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joystick.js/cli-canary",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-canary.
|
|
5
|
-
"canary_version": "0.0.0-canary.
|
|
4
|
+
"version": "0.0.0-canary.1674",
|
|
5
|
+
"canary_version": "0.0.0-canary.1673",
|
|
6
6
|
"description": "The CLI for Joystick.",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"bin": {
|
|
@@ -4,7 +4,7 @@ const get_deployment = (options = {}) => {
|
|
|
4
4
|
return fetch(`${options?.push_domain}/api/deployments/${options?.domain}`, {
|
|
5
5
|
method: 'GET',
|
|
6
6
|
headers: {
|
|
7
|
-
'x-push-deployment-token': options?.
|
|
7
|
+
'x-push-deployment-token': options?.deployment_token,
|
|
8
8
|
Accept: 'application/json',
|
|
9
9
|
},
|
|
10
10
|
})?.then(async (response) => {
|