@deno/shim-deno
Advanced tools
Comparing version 0.18.1 to 0.18.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.typescript = exports.deno = void 0; | ||
exports.deno = "1.40.2"; | ||
exports.deno = "1.40.3"; | ||
exports.typescript = "5.3.3"; |
@@ -26,2 +26,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -31,3 +34,11 @@ exports.lstatSync = void 0; | ||
const stat_js_1 = require("./stat.js"); | ||
const lstatSync = (path) => (0, stat_js_1.denoifyFileInfo)(fs.lstatSync(path)); | ||
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js")); | ||
const lstatSync = (path) => { | ||
try { | ||
return (0, stat_js_1.denoifyFileInfo)(fs.lstatSync(path)); | ||
} | ||
catch (err) { | ||
throw (0, errorMap_js_1.default)(err); | ||
} | ||
}; | ||
exports.lstatSync = lstatSync; |
"use strict"; | ||
///<reference path="../lib.deno.d.ts" /> | ||
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; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -8,4 +31,6 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
exports.stat = exports.denoifyFileInfo = void 0; | ||
const promises_1 = require("fs/promises"); | ||
const promises_1 = require("node:fs/promises"); | ||
const os = __importStar(require("node:os")); | ||
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js")); | ||
const isWindows = os.platform() === "win32"; | ||
function denoifyFileInfo(s) { | ||
@@ -15,20 +40,20 @@ return { | ||
birthtime: s.birthtime, | ||
blksize: s.blksize, | ||
blocks: s.blocks, | ||
blksize: isWindows ? null : s.blksize, | ||
blocks: isWindows ? null : s.blocks, | ||
dev: s.dev, | ||
gid: s.gid, | ||
ino: s.ino, | ||
gid: isWindows ? null : s.gid, | ||
ino: isWindows ? null : s.ino, | ||
isDirectory: s.isDirectory(), | ||
isFile: s.isFile(), | ||
isSymlink: s.isSymbolicLink(), | ||
isBlockDevice: s.isBlockDevice(), | ||
isCharDevice: s.isCharacterDevice(), | ||
isFifo: s.isFIFO(), | ||
isSocket: s.isSocket(), | ||
mode: s.mode, | ||
isBlockDevice: isWindows ? null : s.isBlockDevice(), | ||
isCharDevice: isWindows ? null : s.isCharacterDevice(), | ||
isFifo: isWindows ? null : s.isFIFO(), | ||
isSocket: isWindows ? null : s.isSocket(), | ||
mode: isWindows ? null : s.mode, | ||
mtime: s.mtime, | ||
nlink: s.nlink, | ||
rdev: s.rdev, | ||
nlink: isWindows ? null : s.nlink, | ||
rdev: isWindows ? null : s.rdev, | ||
size: s.size, | ||
uid: s.uid, | ||
uid: isWindows ? null : s.uid, | ||
}; | ||
@@ -35,0 +60,0 @@ } |
@@ -26,2 +26,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -31,3 +34,11 @@ exports.statSync = void 0; | ||
const stat_js_1 = require("./stat.js"); | ||
const statSync = (path) => (0, stat_js_1.denoifyFileInfo)(fs.statSync(path)); | ||
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js")); | ||
const statSync = (path) => { | ||
try { | ||
return (0, stat_js_1.denoifyFileInfo)(fs.statSync(path)); | ||
} | ||
catch (err) { | ||
throw (0, errorMap_js_1.default)(err); | ||
} | ||
}; | ||
exports.statSync = statSync; |
{ | ||
"name": "@deno/shim-deno", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"description": "Deno namespace shim for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
323357
8543
58