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

@endo/where

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

@endo/where - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

20

CHANGELOG.md

@@ -6,2 +6,22 @@ # Change Log

## [0.2.0](https://github.com/endojs/endo/compare/@endo/where@0.1.4...@endo/where@0.2.0) (2022-02-18)
### ⚠ BREAKING CHANGES
* **where:** Renames to state, cache, sock
### Bug Fixes
* Make jsconfigs less brittle ([861ca32](https://github.com/endojs/endo/commit/861ca32a72f0a48410fd93b1cbaaad9139590659))
* Make sure lint:type runs correctly in CI ([a520419](https://github.com/endojs/endo/commit/a52041931e72cb7b7e3e21dde39c099cc9f262b0))
* Unify TS version to ~4.2 ([5fb173c](https://github.com/endojs/endo/commit/5fb173c05c9427dca5adfe66298c004780e8b86c))
### Code Refactoring
* **where:** Renames to state, cache, sock ([a742765](https://github.com/endojs/endo/commit/a742765eb9ef6e7bfd178ce7ded7fa96300fe7f8))
### [0.1.4](https://github.com/endojs/endo/compare/@endo/where@0.1.3...@endo/where@0.1.4) (2022-01-31)

@@ -8,0 +28,0 @@

2

index.d.ts

@@ -1,1 +0,1 @@

export { whereEndo, whereEndoSock, whereEndoLog } from './types.js';
export { whereEndoState, whereEndoSock, whereEndoCache } from './types.js';

@@ -12,3 +12,3 @@ // @ts-check

*/
const whereEndoWindows = env => {
const whereEndoStateWindows = env => {
// Favoring local app data over roaming app data since I don't expect to be

@@ -32,7 +32,7 @@ // able to listen on one host and connect on another.

/**
* @type {typeof import('./types.js').whereEndo}
* @type {typeof import('./types.js').whereEndoState}
*/
export const whereEndo = (platform, env) => {
export const whereEndoState = (platform, env) => {
if (platform === 'win32') {
return whereEndoWindows(env);
return whereEndoStateWindows(env);
} else if (platform === 'darwin') {

@@ -77,17 +77,17 @@ if (env.HOME !== undefined) {

/**
* @type {typeof import('./types.js').whereEndoLog}
* @type {typeof import('./types.js').whereEndoCache}
*/
export const whereEndoLog = (platform, env) => {
export const whereEndoCache = (platform, env) => {
if (platform === 'win32') {
return `${whereEndoWindows(env)}\\endo.log`;
return `${whereEndoStateWindows(env)}`;
} else if (platform === 'darwin') {
if (env.HOME !== undefined) {
return `${env.HOME}/Library/Caches/Endo/endo.log`;
return `${env.HOME}/Library/Caches/Endo`;
}
} else if (env.XDG_CACHE_HOME !== undefined) {
return `${env.XDG_CACHE_HOME}/endo/endo.log`;
return `${env.XDG_CACHE_HOME}/endo`;
} else if (env.HOME !== undefined) {
return `${env.HOME}/.cache/endo/endo.log`;
return `${env.HOME}/.cache/endo`;
}
return 'endo.log';
return '';
};
{
"name": "@endo/where",
"version": "0.1.4",
"version": "0.2.0",
"private": null,

@@ -33,7 +33,7 @@ "description": "Description forthcoming.",

"lint:js": "eslint .",
"lint:types": "tsc --build jsconfig.json",
"lint:types": "tsc -p jsconfig.json",
"test": "ava"
},
"devDependencies": {
"@endo/eslint-config": "^0.4.2",
"@endo/eslint-config": "^0.4.3",
"ava": "^3.12.1",

@@ -49,3 +49,3 @@ "babel-eslint": "^10.0.3",

"prettier": "^1.19.1",
"typescript": "^4.2.3"
"typescript": "~4.5.5"
},

@@ -77,3 +77,3 @@ "files": [

},
"gitHead": "96df4cf238b245cc92c78e4af4667f405b8cf4f0"
"gitHead": "9d2f88ab47f546bc59b6b6e7340482209b3cee56"
}

@@ -1,2 +0,2 @@

export function whereEndo(
export function whereEndoState(
platform: string,

@@ -9,5 +9,5 @@ env: { [name: string]: string },

): string;
export function whereEndoLog(
export function whereEndoCache(
platform: string,
env: { [name: string]: string },
): string;
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