UNPKG

@worker-tools/deno-kv-storage

Version:

An implementation of the StorageArea (1,2,3) interface for Deno with an extensible system for supporting various database backends.

45 lines 2.12 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.isWindows = exports.osType = void 0; // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. // This module is browser compatible. const dntShim = __importStar(require("../../../../_dnt.shims.js")); exports.osType = (() => { var _a, _b, _c, _d; // deno-lint-ignore no-explicit-any const { Deno } = dntShim.dntGlobalThis; if (typeof ((_a = Deno === null || Deno === void 0 ? void 0 : Deno.build) === null || _a === void 0 ? void 0 : _a.os) === "string") { return Deno.build.os; } // deno-lint-ignore no-explicit-any const { navigator } = dntShim.dntGlobalThis; if ((_d = (_c = (_b = navigator === null || navigator === void 0 ? void 0 : navigator.appVersion) === null || _b === void 0 ? void 0 : _b.includes) === null || _c === void 0 ? void 0 : _c.call(_b, "Win")) !== null && _d !== void 0 ? _d : false) { return "windows"; } return "linux"; })(); exports.isWindows = exports.osType === "windows"; //# sourceMappingURL=os.js.map