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

@crackle/router

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crackle/router - npm Package Compare versions

Comparing version 0.0.0-fix-entrypoints-20221010073322 to 0.0.0-upgrade-deps-20221116055751

1

dist/crackle-router.cjs.dev.js

@@ -14,3 +14,2 @@ 'use strict';

}
return () => input;

@@ -17,0 +16,0 @@ };

@@ -14,3 +14,2 @@ 'use strict';

}
return () => input;

@@ -17,0 +16,0 @@ };

@@ -11,3 +11,2 @@ import { Link as Link$1 } from 'react-router-dom';

}
return () => input;

@@ -14,0 +13,0 @@ };

6

dist/declarations/src/create-route-data.d.ts

@@ -5,8 +5,8 @@ import type { RouteData } from './types';

}
declare type RouteDataFunction<T> = (crackleContext: CrackleContext) => RouteData<T>;
declare type RouteDataFunction<T extends Record<string, any>> = (crackleContext: CrackleContext) => RouteData<T>;
interface CreateRouteData {
<T>(routeData: RouteData<T>): RouteDataFunction<T>;
<T>(contextCallback: RouteDataFunction<T>): RouteDataFunction<T>;
<T extends Record<string, any>>(routeData: RouteData<T>): RouteDataFunction<T>;
<T extends Record<string, any>>(contextCallback: RouteDataFunction<T>): RouteDataFunction<T>;
}
export declare const createRouteData: CreateRouteData;
export {};
{
"name": "@crackle/router",
"version": "0.0.0-fix-entrypoints-20221010073322",
"version": "0.0.0-upgrade-deps-20221116055751",
"main": "dist/crackle-router.cjs.js",

@@ -37,8 +37,8 @@ "module": "dist/crackle-router.esm.js",

"dependencies": {
"react": "^17.0.2",
"react-router-dom": "6.0.0-beta.2"
"react": "^18.2.0",
"react-router-dom": "6.4.3"
},
"devDependencies": {
"@types/react": "^17.0.19"
"@types/react": "^18.0.25"
}
}

@@ -10,11 +10,8 @@ 'use strict';

const linkDeclarationFilePath = require.resolve('@crackle/router/dist/declarations/src/valid-routes.d.ts');
const contents = await fs.promises.readFile(linkDeclarationFilePath, 'utf-8');
const lines = contents.split('\n');
const validRouteLineIndex = lines.findIndex(line => line.startsWith(routeTypePrefix));
if (validRouteLineIndex < 0) {
throw new Error('Declaration file not set up correctly');
}
const validRoutesType = routes.map(route => `'${route}'`).join(' | ');

@@ -21,0 +18,0 @@ lines.splice(validRouteLineIndex, 1, `${routeTypePrefix} = ${validRoutesType};`);

@@ -10,11 +10,8 @@ 'use strict';

const linkDeclarationFilePath = require.resolve('@crackle/router/dist/declarations/src/valid-routes.d.ts');
const contents = await fs.promises.readFile(linkDeclarationFilePath, 'utf-8');
const lines = contents.split('\n');
const validRouteLineIndex = lines.findIndex(line => line.startsWith(routeTypePrefix));
if (validRouteLineIndex < 0) {
throw new Error('Declaration file not set up correctly');
}
const validRoutesType = routes.map(route => `'${route}'`).join(' | ');

@@ -21,0 +18,0 @@ lines.splice(validRouteLineIndex, 1, `${routeTypePrefix} = ${validRoutesType};`);

@@ -6,11 +6,8 @@ import { promises } from 'fs';

const linkDeclarationFilePath = require.resolve('@crackle/router/dist/declarations/src/valid-routes.d.ts');
const contents = await promises.readFile(linkDeclarationFilePath, 'utf-8');
const lines = contents.split('\n');
const validRouteLineIndex = lines.findIndex(line => line.startsWith(routeTypePrefix));
if (validRouteLineIndex < 0) {
throw new Error('Declaration file not set up correctly');
}
const validRoutesType = routes.map(route => `'${route}'`).join(' | ');

@@ -17,0 +14,0 @@ lines.splice(validRouteLineIndex, 1, `${routeTypePrefix} = ${validRoutesType};`);

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