@jill64/playwright-config
Advanced tools
Comparing version 1.1.0 to 1.2.0
import { Config } from '@playwright/test'; | ||
declare const providers: readonly ["cloudflare"]; | ||
type Provider = (typeof providers)[number]; | ||
export declare const branchPreview: ({ project, fallback }: { | ||
project?: string | undefined; | ||
provider: Provider; | ||
fallback: Config; | ||
export declare const branchPreview: (provider: Provider, options?: { | ||
project?: string; | ||
fallback?: Config; | ||
}) => Config; | ||
export {}; |
@@ -0,4 +1,9 @@ | ||
import { vitePreview } from './vitePreview.js'; | ||
const providers = ['cloudflare']; | ||
const { GITHUB_REF_NAME, GITHUB_REPOSITORY } = process.env; | ||
export const branchPreview = ({ project, fallback }) => { | ||
export const branchPreview = (provider, options) => { | ||
const { project, fallback = vitePreview } = options ?? {}; | ||
if (!providers.includes(provider)) { | ||
return fallback; | ||
} | ||
if (!GITHUB_REF_NAME) { | ||
@@ -5,0 +10,0 @@ return fallback; |
{ | ||
"name": "@jill64/playwright-config", | ||
"description": "🎭 Reusable My Playwright Config", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
6243
87
2