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

deno.ns

Package Overview
Dependencies
Maintainers
6
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.6.1 to 0.6.2

1

dist/deno/stable/classes/PermissionStatus.js

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

class PermissionStatus extends EventTarget {
/** @internal */
constructor(state) {

@@ -10,0 +11,0 @@ super();

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
///<reference path="./lib.deno.d.ts" />

20

dist/index.js

@@ -21,4 +21,5 @@ "use strict";

};
var _a, _b, _c, _d, _e, _f;
Object.defineProperty(exports, "__esModule", { value: true });
exports.prompt = exports.confirm = exports.alert = exports.Deno = exports.Response = exports.Request = exports.Headers = exports.FormData = exports.File = exports.fetch = exports.crypto = exports.Blob = void 0;
exports.Response = exports.Request = exports.Headers = exports.FormData = exports.File = exports.fetch = exports.prompt = exports.confirm = exports.alert = exports.Deno = exports.crypto = exports.Blob = void 0;
var buffer_1 = require("buffer");

@@ -28,10 +29,2 @@ Object.defineProperty(exports, "Blob", { enumerable: true, get: function () { return buffer_1.Blob; } });

Object.defineProperty(exports, "crypto", { enumerable: true, get: function () { return crypto_1.webcrypto; } });
// TODO: Wait for node builtin WhatWG Streams or fetch-blob to export them without assigning to globalThis
var undici_1 = require("undici");
Object.defineProperty(exports, "fetch", { enumerable: true, get: function () { return undici_1.fetch; } });
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return undici_1.File; } });
Object.defineProperty(exports, "FormData", { enumerable: true, get: function () { return undici_1.FormData; } });
Object.defineProperty(exports, "Headers", { enumerable: true, get: function () { return undici_1.Headers; } });
Object.defineProperty(exports, "Request", { enumerable: true, get: function () { return undici_1.Request; } });
Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return undici_1.Response; } });
exports.Deno = __importStar(require("./deno.js"));

@@ -44,1 +37,10 @@ var alert_js_1 = require("./util/alert.js");

Object.defineProperty(exports, "prompt", { enumerable: true, get: function () { return prompt_js_1.prompt; } });
// TODO: Wait for node builtin WhatWG Streams or fetch-blob to export them without assigning to globalThis
const undici = __importStar(require("undici"));
// fallback to using the global types and values if they exist
exports.fetch = (_a = globalThis["fetch"]) !== null && _a !== void 0 ? _a : undici.fetch;
exports.File = (_b = globalThis["File"]) !== null && _b !== void 0 ? _b : undici.File;
exports.FormData = (_c = globalThis["FormData"]) !== null && _c !== void 0 ? _c : undici.FormData;
exports.Headers = (_d = globalThis["Headers"]) !== null && _d !== void 0 ? _d : undici.Headers;
exports.Request = (_e = globalThis["Request"]) !== null && _e !== void 0 ? _e : undici.Request;
exports.Response = (_f = globalThis["Response"]) !== null && _f !== void 0 ? _f : undici.Response;
"use strict";
///<reference path="../deno/stable/lib.deno.d.ts" />
var _a;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -7,6 +8,5 @@ exports.alert = void 0;

const readlineSync_js_1 = require("./readlineSync.js");
const alert = function alert(message) {
exports.alert = (_a = globalThis["alert"]) !== null && _a !== void 0 ? _a : function alert(message) {
(0, fs_1.writeSync)(process.stdout.fd, new TextEncoder().encode(`${message} [Enter] `));
(0, readlineSync_js_1.readlineSync)();
};
exports.alert = alert;
"use strict";
///<reference path="../deno/stable/lib.deno.d.ts" />
var _a;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -7,3 +8,3 @@ exports.confirm = void 0;

const readlineSync_js_1 = require("./readlineSync.js");
const confirm = function confirm(message) {
exports.confirm = (_a = globalThis["confirm"]) !== null && _a !== void 0 ? _a : function confirm(message) {
(0, fs_1.writeSync)(process.stdout.fd, new TextEncoder().encode(`${message} [y/N] `));

@@ -13,2 +14,1 @@ const result = (0, readlineSync_js_1.readlineSync)();

};
exports.confirm = confirm;
"use strict";
///<reference path="../deno/stable/lib.deno.d.ts" />
var _a;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -7,3 +8,3 @@ exports.prompt = void 0;

const readlineSync_js_1 = require("./readlineSync.js");
const prompt = function prompt(message, defaultValue = undefined) {
exports.prompt = (_a = globalThis["prompt"]) !== null && _a !== void 0 ? _a : function prompt(message, defaultValue = undefined) {
(0, fs_1.writeSync)(process.stdout.fd, new TextEncoder().encode(`${message} ${defaultValue == null ? "" : `[${defaultValue}]`} `));

@@ -13,2 +14,1 @@ const result = (0, readlineSync_js_1.readlineSync)();

};
exports.prompt = prompt;
{
"name": "deno.ns",
"version": "0.6.1",
"version": "0.6.2",
"description": "Deno namespace shim for Node.js",

@@ -13,3 +13,3 @@ "keywords": [

"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"types": "./lib/deno.ns.lib.d.ts",
"author": "Thomas Rory Gummerson <thomas@gummerson.no> (https://trgwii.no/)",

@@ -38,4 +38,5 @@ "contributors": [

"denolib": "deno run --allow-run --allow-write=src/deno/ tools/denolib.ts",
"build": "tsc",
"build": "tsc && npm run --silent generate-declaration-file",
"prepare": "npm run --silent denolib && npm run --silent build",
"generate-declaration-file": "deno run --allow-write=lib --allow-read=. tools/generateDeclarationFile.ts",
"lint": "deno lint --config deno.json",

@@ -42,0 +43,0 @@ "fmt": "deno fmt --config deno.json",

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