{"version":3,"file":"is-url.mjs","names":[],"sources":["../src/is-url.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n                       🗲 Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website:                  https://stormsoftware.com\n Repository:               https://github.com/storm-software/stryke\n Documentation:            https://docs.stormsoftware.com/projects/stryke\n Contact:                  https://stormsoftware.com/contact\n\n SPDX-License-Identifier:  Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSetObject } from \"./is-set-object\";\nimport { isSetString } from \"./is-set-string\";\n\n/**\n * Determine if the provided value is of type URL\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `URL`\n */\nexport const isURL = (value: unknown): value is URL => {\n  return (\n    isSetObject(value) &&\n    isSetString((value as URL).hash) &&\n    isSetString((value as URL).host) &&\n    isSetString((value as URL).hostname) &&\n    isSetString((value as URL).href) &&\n    isSetString((value as URL).origin) &&\n    isSetString((value as URL).protocol)\n  );\n};\n"],"mappings":";;;;;;;;;;AA2BA,MAAa,SAAS,UAAiC;AACrD,QACE,YAAY,MAAM,IAClB,YAAa,MAAc,KAAK,IAChC,YAAa,MAAc,KAAK,IAChC,YAAa,MAAc,SAAS,IACpC,YAAa,MAAc,KAAK,IAChC,YAAa,MAAc,OAAO,IAClC,YAAa,MAAc,SAAS"}