@shopify/plugin-cloudflare
Advanced tools
Comparing version
@@ -12,3 +12,3 @@ import { TUNNEL_PROVIDER } from './provider.js'; | ||
// How much time to wait for a tunnel to be established. in seconds. | ||
const TUNNEL_TIMEOUT = isUnitTest() ? 0.2 : 20; | ||
const TUNNEL_TIMEOUT = isUnitTest() ? 0.2 : 40; | ||
export async function hookStart(port) { | ||
@@ -15,0 +15,0 @@ try { |
{ | ||
"version": "0.0.0-nightly-20230329140440", | ||
"version": "0.0.0-nightly-20230330140738", | ||
"commands": {} | ||
} |
{ | ||
"name": "@shopify/plugin-cloudflare", | ||
"version": "0.0.0-nightly-20230329140440", | ||
"version": "0.0.0-nightly-20230330140738", | ||
"description": "Enables the creation of Cloudflare tunnels from `shopify app dev`, allowing previews from any device", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"@oclif/core": "1.21.0", | ||
"@shopify/cli-kit": "0.0.0-nightly-20230329140440", | ||
"@shopify/cli-kit": "0.0.0-nightly-20230330140738", | ||
"node-fetch": "3.3.0", | ||
@@ -33,0 +33,0 @@ "semver": "7.3.6" |
@@ -6,3 +6,3 @@ // Install script for cloudflared, derived from https://github.com/JacobLinCool/node-cloudflared | ||
import {pipeline} from 'stream' | ||
import {execSync} from 'child_process' | ||
import {execSync, execFileSync} from 'child_process' | ||
import {createHash} from 'node:crypto' | ||
@@ -95,3 +95,3 @@ import {chmodSync, existsSync, mkdirSync, renameSync, unlinkSync, createWriteStream, readFileSync} from 'fs' | ||
// --version returns an string like "cloudflared version 2023.3.1 (built 2023-03-13-1444 UTC)" | ||
const versionArray = execSync(`${binTarget} --version`, {encoding: 'utf8'}).split(' ') | ||
const versionArray = execFileSync(binTarget, ['--version'], {encoding: 'utf8'}).split(' ') | ||
const versionNumber = versionArray.length > 2 ? versionArray[2] : '0.0.0' | ||
@@ -98,0 +98,0 @@ const needsUpdate = semver.gt(CLOUDFLARE_VERSION, versionNumber) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56178
0.03%+ Added
- Removed