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

os-paths

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

os-paths - npm Package Compare versions

Comparing version 5.0.1 to 5.1.0

60

dist/cjs/lib/OSPaths.js

@@ -24,13 +24,23 @@ "use strict";

var path = __importStar(require("path"));
var env = process.env;
var isWinOS = /^win/i.test(process.platform);
function normalize_path(path_) {
function isEmpty(s) {
return !s;
}
function normalizePath(path_) {
return path_ ? path.normalize(path.join(path_, '.')) : void 0;
}
var base = function () {
var env = process.env;
var posix = function () {
var home = function () {
return normalize_path((typeof os.homedir === 'function' ? os.homedir() : void 0) || env.HOME);
return normalizePath((typeof os.homedir === 'function' ? os.homedir() : void 0) || env.HOME);
};
var temp = function () {
return normalize_path((typeof os.tmpdir === 'function' ? os.tmpdir() : void 0) || env.TMPDIR || env.TEMP || env.TMP) || '/tmp';
var fallback = '/tmp';
var priorityList = [
typeof os.tmpdir === 'function' ? os.tmpdir() : void 0,
env.TMPDIR,
env.TEMP,
env.TMP,
];
return normalizePath(priorityList.find(function (v) { return !isEmpty(v); })) || fallback;
};

@@ -40,21 +50,27 @@ return { home: home, temp: temp };

var windows = function () {
var env = process.env;
var home = function () {
return normalize_path((typeof os.homedir === 'function' ? os.homedir() : void 0) ||
env.USERPROFILE ||
env.HOME ||
(env.HOMEDRIVE || env.HOMEPATH
? path.join(env.HOMEDRIVE || '', env.HOMEPATH || '')
: void 0));
var priorityList = [
typeof os.homedir === 'function' ? os.homedir() : void 0,
env.USERPROFILE,
env.HOME,
env.HOMEDRIVE || env.HOMEPATH ? path.join(env.HOMEDRIVE || '', env.HOMEPATH || '') : void 0,
];
return normalizePath(priorityList.find(function (v) { return !isEmpty(v); }));
};
var temp = function () {
return normalize_path((typeof os.tmpdir === 'function' ? os.tmpdir() : '') ||
env.TEMP ||
env.TMP ||
(env.LOCALAPPDATA ? path.join(env.LOCALAPPDATA, 'Temp') : '') ||
var fallback = 'C:\\Temp';
var priorityList = [
typeof os.tmpdir === 'function' ? os.tmpdir() : void 0,
env.TEMP,
env.TMP,
env.LOCALAPPDATA ? path.join(env.LOCALAPPDATA, 'Temp') : void 0,
(function (s) {
return s ? path.join(s, 'AppData', 'Local', 'Temp') : '';
})(home()) ||
(env.ALLUSERSPROFILE ? path.join(env.ALLUSERSPROFILE, 'Temp') : '') ||
path.join(env.SystemRoot || env.windir || (env.SystemDrive ? env.SystemDrive + '\\' : 'C:\\'), 'Temp'));
return s ? path.join(s, 'AppData', 'Local', 'Temp') : void 0;
})(home()),
env.ALLUSERSPROFILE ? path.join(env.ALLUSERSPROFILE, 'Temp') : void 0,
env.SystemRoot ? path.join(env.SystemRoot, 'Temp') : void 0,
env.windir ? path.join(env.windir, 'Temp') : void 0,
env.SystemDrive ? path.join(env.SystemDrive + '\\', 'Temp') : void 0,
];
return normalizePath(priorityList.find(function (v) { return !isEmpty(v); })) || fallback;
};

@@ -68,3 +84,3 @@ return { home: home, temp: temp };

};
var extension = isWinOS ? windows() : base();
var extension = isWinOS ? windows() : posix();
OSPaths.home = extension.home;

@@ -78,2 +94,2 @@ OSPaths.temp = extension.temp;

exports.default = default_;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT1NQYXRocy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvT1NQYXRocy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQSxxQ0FBeUI7QUFDekIseUNBQTZCO0FBUzdCLElBQU0sT0FBTyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBRS9DLFNBQVMsY0FBYyxDQUFDLEtBQXlCO0lBQ2hELE9BQU8sS0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UMifQ==
{
"name": "os-paths",
"version": "5.0.1",
"version": "5.1.0",
"description": "Generate portable common OS paths (home, temp, ...)",

@@ -67,3 +67,3 @@ "license": "MIT",

"# help # display help": "",
"help": "< package.json node -e \"s = {p:'',e:'npm'}; if (new String(process.env.npm_execpath).match(/yarn.js$/)) { s = {p:'\\n',e:'yarn'}; }; console.log('%susage: \\`%s run TARGET [TARGET..]\\`\\n\\nTARGETs:\\n', s.p, s.e); re = /^.*?\\x22(?:\\W+\\s*)([^#\\x22]+)\\s+#+\\s+([^#\\x22]+?)(\\s+#+)?\\x22.*$/; require('readline').createInterface({ input: process.stdin, output: process.stdout, terminal: false }).on('line', function(line){ if (match = re.exec(line)) { console.log('%s %s', match[1].padEnd(19), match[2]); } });\"",
"help": "< package.json node -e \"s = {p:'',e:'npm'}; if (new String(process.env.npm_execpath).match(/yarn.js$/)) { s = {p:'\\n',e:'yarn'}; }; console.log('%susage: \\`%s run TARGET\\` or \\`npx run-s TARGET [TARGET..]\\`\\n\\nTARGETs:\\n', s.p, s.e); re = /^.*?\\x22(?:\\W+\\s*)([^#\\x22]+)\\s+#+\\s+([^#\\x22]+?)(\\s+#+)?\\x22.*$/; require('readline').createInterface({ input: process.stdin, output: process.stdout, terminal: false }).on('line', function(line){ if (match = re.exec(line)) { console.log('%s %s', match[1].padEnd(19), match[2]); } });\"",
"# lint # check for package code 'lint'": "",

@@ -87,2 +87,6 @@ "lint": "run-s --silent _:max-node-8 && shx echo \"[lint] WARN Lint checks skipped [for NodeJS < v10]\" 1>&2 || run-p lint:*",

"reset:hard": "git clean -dfx && git reset --hard && npm install",
"# show:deps # show package dependencies": "",
"show:deps": "run-s --silent show:deps:prod show:deps:dev || shx true",
"show:deps:dev": "npm --silent ls --only development || shx true",
"show:deps:prod": "npm --silent ls --only production || shx true",
"# test # test package": "",

@@ -112,8 +116,10 @@ "test": "run-s _:regen:lint/build && run-p test:*",

"_:update:changelog": "run-s --silent _:exists:git-changelog && git changelog > CHANGELOG.mkd || shx echo \"[update] WARN CHANGELOG not updated\" 1>&2",
"_:update:dist": "run-s _:update:dist.build && npm pack && shx mv os-paths-*.tgz dist/os-paths.tgz",
"_:update:dist.build": "shx mkdir -p dist && shx cp -r build/cjs build/types dist",
"_:update:dist": "run-s _:update:dist.build _:update:dist.types _:update:dist.pack",
"_:update:dist.build": "shx mkdir -p dist && shx cp -r build/cjs dist",
"_:update:dist.pack": "npm pack && shx mv os-paths-*.tgz dist/os-paths.tgz",
"_:update:dist.types": "shx mkdir -p dist && shx cp -r build/types dist",
"_:version:spell:changelog_update": "run-s --silent _:exists:git-changelog && git changelog -u | cspell stdin || shx echo \"[lint] WARN CHANGELOG update `cspell` exception\" 1>&2",
"_:version:update:changelog": "run-s --silent _:exists:git-changelog && node -e \"v=require('./package.json').version; result=require('child_process').spawnSync('git changelog --next-tag v'+v,{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('ERR! '+result.stderr); process.exit(1);} else {require('fs').writeFileSync('CHANGELOG.mkd',result.stdout);};\" || shx echo \"[version] WARN CHANGELOG not updated\" 1>&2",
"prepublishOnly": "run-s test _:update:dist.build _:vcs-strictly-clean-err",
"preversion": "run-s test update _:vcs-strictly-clean-err",
"prepublishOnly": "run-s test _:update:changelog _:update:dist.build _:vcs-strictly-clean-err",
"preversion": "run-s test _:vcs-strictly-clean-err _:version:spell:changelog_update",
"version": "run-s _:version:update:changelog lint:spell _:update:dist && git add CHANGELOG.mkd dist"

@@ -138,4 +144,6 @@ },

"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-functional": "^3.0.2",
"eslint-plugin-functional": "^3.0.2 <3.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-security-node": "^1.0.14",
"is-ci": "^2.0.0",

@@ -142,0 +150,0 @@ "is-node-modern": "^1.0.0",

@@ -8,3 +8,3 @@ <!DOCTYPE markdown><!-- markdownlint-disable no-inline-html -->

<!-- spell-checker:ignore (abbrev/jargon) CICD CJS ESM ESMs -->
<!-- spell-checker:ignore (names) Deno -->
<!-- spell-checker:ignore (names) Codacy Deno -->
<!-- spell-checker:ignore (targets) realclean -->

@@ -17,5 +17,5 @@ <!-- spell-checker:ignore (people) rivy sindresorhus Sindre Sorhus -->

[![Build status][gha-image]][gha-url]
[![Build status][travis-image]][travis-url]
[![Build status][appveyor-image]][appveyor-url]
[![Build status (GHA)][gha-image]][gha-url]
[![Build status (Travis-CI)][travis-image]][travis-url]
[![Build status (AppVeyor)][appveyor-image]][appveyor-url]
[![Coverage status][coverage-image]][coverage-url]

@@ -35,3 +35,3 @@ [![License][license-image]][license-url]

# or... `npm install github:rivy/js.os-paths`
# or... `npm install "https://cdn.jsdelivr.net/gh/rivy/js.os-paths@master/dist/os-paths.tgz"`
# or... `npm install "https://cdn.jsdelivr.net/gh/rivy/js.os-paths@latest/dist/os-paths.tgz"`
```

@@ -102,9 +102,9 @@

[![Repository][repository-image]][repository-url]
[![Build status][gha-image]][gha-url]
[![Build status][travis-image]][travis-url]
[![Build status][appveyor-image]][appveyor-url]
[![Build status (GHA)][gha-image]][gha-url]
[![Build status (Travis-CI)][travis-image]][travis-url]
[![Build status (AppVeyor)][appveyor-image]][appveyor-url]
[![Coverage status][coverage-image]][coverage-url]
&nbsp; <br/>
[![Quality status (Codacy)][codacy-image]][codacy-url]
[![Quality status (CodeClimate)][codeclimate-image]][codeclimate-url]
[![Quality status (CodeFactor)][codacy-image]][codacy-url]
[![Quality status (CodeFactor)][codefactor-image]][codefactor-url]

@@ -125,4 +125,3 @@ [![Quality status (Scrutinizer)][scrutinizer-image]][scrutinizer-url]

```shell
npm install
npm test
npm install-test
```

@@ -135,3 +134,3 @@

...
usage: `npm run TARGET [TARGET..]`
usage: `npm run TARGET` or `npx run-s TARGET [TARGET..]`

@@ -156,2 +155,3 @@ TARGETs:

reset:hard remove *all* generated files and reinstall dependencies
show:deps show package dependencies
test test package

@@ -158,0 +158,0 @@ test:code test package code

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