Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deno.ns

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deno.ns - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

1

dist/deno/internal/errorMap.js

@@ -27,2 +27,3 @@ "use strict";

const map = {
EEXIST: mapper(errors.AlreadyExists),
ENOENT: mapper(errors.NotFound),

@@ -29,0 +30,0 @@ };

"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.chdir = void 0;
const url_1 = require("url");
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js"));
const chdir = function (path) {
return process.chdir(path instanceof URL ? url_1.fileURLToPath(path) : path);
try {
return process.chdir(path instanceof URL ? url_1.fileURLToPath(path) : path);
}
catch (error) {
throw errorMap_js_1.default(error);
}
};
exports.chdir = chdir;

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

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.copyFile = void 0;
const fs = __importStar(require("fs/promises"));
exports.copyFile = fs.copyFile;
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js"));
const copyFile = async (src, dest) => {
try {
await fs.copyFile(src, dest);
}
catch (error) {
throw errorMap_js_1.default(error);
}
};
exports.copyFile = copyFile;

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

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.copyFileSync = void 0;
const fs = __importStar(require("fs"));
exports.copyFileSync = fs.copyFileSync;
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js"));
const copyFileSync = (src, dest) => {
try {
fs.copyFileSync(src, dest);
}
catch (error) {
throw errorMap_js_1.default(error);
}
};
exports.copyFileSync = copyFileSync;
"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.mkdir = void 0;
const promises_1 = require("fs/promises");
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js"));
const mkdir = async function mkdir(p, o) {
await promises_1.mkdir(p, o);
try {
await promises_1.mkdir(p, o);
}
catch (error) {
throw errorMap_js_1.default(error);
}
};
exports.mkdir = mkdir;

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

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.mkdirSync = void 0;
const fs = __importStar(require("fs"));
exports.mkdirSync = fs.mkdirSync;
const errorMap_js_1 = __importDefault(require("../../internal/errorMap.js"));
const mkdirSync = (path, options) => {
try {
fs.mkdirSync(path, options);
}
catch (error) {
throw errorMap_js_1.default(error);
}
};
exports.mkdirSync = mkdirSync;

3

dist/deno/stable/functions/test.d.ts
/// <reference path="../../../../src/deno/stable/lib.deno.d.ts" />
export declare const tests: Deno.TestDefinition[];
export declare const test: typeof Deno.test;
export { test, tests } from "@fromdeno/test";
"use strict";
///<reference path="../lib.deno.d.ts" />
Object.defineProperty(exports, "__esModule", { value: true });
exports.test = exports.tests = void 0;
exports.tests = [];
const test = function test(name, fn) {
exports.tests.push(typeof name === "string" ? { name, fn: fn } : name);
};
exports.test = test;
exports.tests = exports.test = void 0;
var test_1 = require("@fromdeno/test");
Object.defineProperty(exports, "test", { enumerable: true, get: function () { return test_1.test; } });
Object.defineProperty(exports, "tests", { enumerable: true, get: function () { return test_1.tests; } });
{
"name": "deno.ns",
"version": "0.4.2",
"version": "0.4.3",
"description": "Deno namespace shim for Node.js",

@@ -39,13 +39,17 @@ "keywords": [

"fmt": "deno fmt --ignore=node_modules,dist,thirdparty,unit,src/deno/stable/lib.deno.d.ts",
"clean": "git clean -fXde '!node_modules/'",
"test": "npm run --silent prepare && xargs --arg-file=tools/working_test_files.txt node tools/deno_test.js"
"clean": "git clean -fXde !node_modules/",
"test": "NODE_OPTIONS=--experimental-loader=ts-node/esm xargs --arg-file=tools/working_test_files.txt fdt --filter=$(node tools/skip_tests.cjs)"
},
"dependencies": {
"undici": "^4.5.0"
"undici": "^4.5.1"
},
"peerDependencies": {
"@fromdeno/test": "^0.1.0"
},
"devDependencies": {
"@types/node": "^16.4.13",
"sucrase": "^3.20.1",
"conditional-type-checks": "^1.0.5",
"ts-node": "^10.2.1",
"typescript": "^4.3.5"
}
}

Sorry, the diff of this file is too big to display

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