Socket
Socket
Sign inDemoInstall

@deno/shim-deno

Package Overview
Dependencies
Maintainers
4
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deno/shim-deno - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

dist/deno/internal/version.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.typescript = exports.deno = void 0;
exports.deno = "1.19.1";
exports.deno = "1.19.2";
exports.typescript = "4.5.2";

@@ -22,2 +22,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,3 +30,11 @@ exports.lstat = void 0;

const stat_js_1 = require("./stat.js");
const lstat = async (path) => (0, stat_js_1.denoifyFileInfo)(await fs.lstat(path));
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js"));
const lstat = async (path) => {
try {
return (0, stat_js_1.denoifyFileInfo)(await fs.lstat(path));
}
catch (e) {
throw (0, errorMap_js_1.default)(e);
}
};
exports.lstat = lstat;
"use strict";
///<reference path="../lib.deno.d.ts" />
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.stat = exports.denoifyFileInfo = void 0;
const promises_1 = require("fs/promises");
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js"));
function denoifyFileInfo(s) {

@@ -27,3 +31,10 @@ return {

exports.denoifyFileInfo = denoifyFileInfo;
const stat = async (path) => denoifyFileInfo(await (0, promises_1.stat)(path));
const stat = async (path) => {
try {
return denoifyFileInfo(await (0, promises_1.stat)(path));
}
catch (e) {
throw (0, errorMap_js_1.default)(e);
}
};
exports.stat = stat;
{
"name": "@deno/shim-deno",
"version": "0.4.1",
"version": "0.4.2",
"description": "Deno namespace shim for Node.js",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc