CoolFace
Apppublic

Pinsave/counterstrike

sourceHugging Faceupdated 3mo agoView on Hugging Face
1likes
watchGuard.js54 linesDownload Raw Back to lib
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABLITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17"use strict";18var __create = Object.create;19var __defProp = Object.defineProperty;20var __getOwnPropDesc = Object.getOwnPropertyDescriptor;21var __getOwnPropNames = Object.getOwnPropertyNames;22var __getProtoOf = Object.getPrototypeOf;23var __hasOwnProp = Object.prototype.hasOwnProperty;24var __copyProps = (to, from, except, desc) => {25  if (from && typeof from === "object" || typeof from === "function") {26    for (let key of __getOwnPropNames(from))27      if (!__hasOwnProp.call(to, key) && key !== except)28        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });29  }30  return to;31};32var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(33  // If the importer is in node compatibility mode or this is not an ESM34  // file that has been converted to a CommonJS file using a Babel-35  // compatible transform (i.e. "__esModule" has not been set), then set36  // "default" to the CommonJS "module.exports" for node compatibility.37  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,38  mod39));40 41// src/watchGuard/watchGuard.ts42var fs = __toESM(require("fs"));43if (process.argv.length < 3) {44  process.exit(1);45}46var directoryName = process.argv[2];47try {48  const watcher = fs.watch(directoryName, { recursive: true }, () => ({}));49  watcher.close();50} catch {51}52process.exit(0);53//# sourceMappingURL=watchGuard.js.map54