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

@definitelytyped/utils

Package Overview
Dependencies
Maintainers
8
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@definitelytyped/utils - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

6

CHANGELOG.md
# @definitelytyped/utils
## 0.1.4
### Patch Changes
- 5e7da60: Fix compatibility with Windows
## 0.1.3

@@ -4,0 +10,0 @@

35

dist/fs.js
"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;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -8,3 +31,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const assert_1 = __importDefault(require("assert"));
const path_1 = require("path");
const path_1 = __importStar(require("path"));
const getCacheDir = require("cachedir");

@@ -15,3 +38,3 @@ const assertions_1 = require("./assertions");

/** The directory to read/write suggestsions from */
exports.suggestionsDir = (0, path_1.join)(getCacheDir("dts"), "suggestions");
exports.suggestionsDir = path_1.default.join(getCacheDir("dts"), "suggestions");
/** Convert a path to use "/" instead of "\\" for consistency. (This affects content hash.) */

@@ -74,3 +97,3 @@ function normalizeSlashes(path) {

if (path[0] === "/") {
path = (0, path_1.relative)(this.rootPrefix, path);
path = path_1.posix.relative(this.rootPrefix, path);
}

@@ -135,3 +158,3 @@ if (path === "") {

(0, assert_1.default)(path[0] !== "/", "Cannot use absolute paths with InMemoryFS.subDir");
return new InMemoryFS(this.getDir(path), (0, path_1.resolve)(this.rootPrefix, path));
return new InMemoryFS(this.getDir(path), path_1.posix.join(this.rootPrefix, path));
}

@@ -153,7 +176,7 @@ debugPath() {

this.rootPrefix = rootPrefix;
(0, assert_1.default)((0, path_1.isAbsolute)(rootPrefix), "DiskFS must use absolute paths");
(0, assert_1.default)(path_1.default.isAbsolute(rootPrefix), "DiskFS must use absolute paths");
this.rootPrefix = ensureTrailingSlash(rootPrefix);
}
getPath(path) {
return (0, path_1.resolve)(this.rootPrefix, path ?? "");
return path_1.default.resolve(this.rootPrefix, path ?? "");
}

@@ -160,0 +183,0 @@ readdir(dirPath) {

2

package.json
{
"name": "@definitelytyped/utils",
"version": "0.1.3",
"version": "0.1.4",
"description": "Shared utilities for DefinitelyTyped tools",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/utils#readme",

Sorry, the diff of this file is not supported yet

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