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

jet-paths

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jet-paths - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

dist/cjs/setupPaths.d.ts

2

dist/cjs/index.d.ts

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

export { default } from './jetPaths';
export { default } from './setupPaths';

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

export { default } from './jetPaths';
export { default } from './setupPaths';
const DEFAULT_BASE_KEY = 'Base';
function jetPaths(pathObj, baseKey) {
return jetPathsHelper(pathObj, (baseKey !== null && baseKey !== void 0 ? baseKey : DEFAULT_BASE_KEY), '');
function setupPaths(pathObj, baseKey) {
return setupPathsHelper(pathObj, (baseKey !== null && baseKey !== void 0 ? baseKey : DEFAULT_BASE_KEY), '');
}
function jetPathsHelper(parentObj, baseKey, baseUrl) {
function setupPathsHelper(parentObj, baseKey, baseUrl) {
const url = (baseUrl + parentObj[baseKey]), keys = Object.keys(parentObj), retVal = { [baseKey]: url };

@@ -13,3 +13,3 @@ for (const key of keys) {

else if (typeof pval === 'object') {
retVal[key] = jetPathsHelper(pval, baseKey, url);
retVal[key] = setupPathsHelper(pval, baseKey, url);
}

@@ -20,3 +20,3 @@ }

export { jetPaths as default };
export { setupPaths as default };
//# sourceMappingURL=index.js.map

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

export { default } from './jetPaths';
export { default } from './setupPaths';
{
"name": "jet-paths",
"version": "1.0.7",
"version": "1.0.8",
"description": "Preprend strings in an object with the value from a base-key.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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