// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright the Browserify authors. MIT License.

export function assertPath(path?: string) {
  if (typeof path !== "string") {
    throw new TypeError(
      `Path must be a string. Received ${JSON.stringify(path)}`,
    );
  }
}

// denoCacheMetadata={"headers":{"alt-svc":"h3=\":443\"; ma=86400","cache-control":"public, max-age=31536000, immutable","content-length":"307","vary":"Origin","accept-ranges":"bytes","cross-origin-resource-policy":"cross-origin","set-cookie":"__cf_bm=7UazY.u3GBNTzOfQ3bniwQTELOXVMFkTKJZAw3Cu97o-1785241875.2865186-1.0.1.1-pAKKjSJxPiF.0dACUCw7l7A0JOQxaCZC_kx20bNHLeHVdBWp9Vgm7ullv5y66BcoNcM4qEglEIDqXM2wCK6mo508yKa9bI5Cg1.lvAr_gUCO01t5NW_xfbTEiNL6su6F; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","x-jsr-backend":"modules","content-type":"text/typescript","date":"Tue, 28 Jul 2026 12:31:15 GMT","x-robots-tag":"noindex","access-control-expose-headers":"*","age":"44352","server":"cloudflare","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=1%2FKmiaAi%2Bf0Q%2Bo%2BA%2Fa5rFj%2FhiKIyqRCnmY3xDhgcZnKRsAWUi00271JhWXyWKc3Muz1ZQIxkltYhL9EKCG0J4E1K8VF%2Bjsjra9KIdlnFxThl%2FRxbJAzWmQs%3D\"}]}","cf-ray":"a223e6588ca47db6-LAX","x-content-type-options":"nosniff","cf-cache-status":"HIT","etag":"\"9a29f51620a38baa22138ef689ca93ae\"","access-control-allow-origin":"*"},"url":"https://jsr.io/@std/path/0.224.0/_common/assert_path.ts","time":1785241875}