New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@teambit/ui-foundation.ui.react-router.use-query

Package Overview
Dependencies
Maintainers
15
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teambit/ui-foundation.ui.react-router.use-query - npm Package Compare versions

Comparing version 0.0.501 to 0.0.502

dist/preview-1715178860254.js

6

dist/index.js

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useQuery = void 0;
var use_query_1 = require("./use-query");
Object.defineProperty(exports, "useQuery", { enumerable: true, get: function () { return use_query_1.useQuery; } });
export { useQuery } from './use-query';
//# sourceMappingURL=index.js.map
{
"compilerOptions": {
"lib": [
"es2019",
"DOM",
"ES6",
"DOM.Iterable"
"esnext",
"dom",
"dom.Iterable"
],
"target": "es2015",
"module": "CommonJS",
"jsx": "react",
"allowJs": true,
"composite": true,
"target": "es2020",
"module": "es2020",
"jsx": "react-jsx",
"declaration": true,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"outDir": "dist",
"moduleResolution": "node",
"esModuleInterop": true,
"rootDir": ".",
"resolveJsonModule": true
"resolveJsonModule": true,
"allowJs": true,
"outDir": "dist",
"strict": true,
"emitDecoratorMetadata": true,
"preserveConstEnums": true,
"strictPropertyInitialization": false,
"noImplicitAny": false
},
"exclude": [
"artifacts",
"public",
"dist",
"package.json"
"node_modules",
"package.json",
"**/*.cjs",
"./dist"
],

@@ -28,0 +35,0 @@ "include": [

@@ -1,13 +0,9 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useQuery = void 0;
const base_react_navigation_link_1 = require("@teambit/base-react.navigation.link");
import { useLocation } from '@teambit/base-react.navigation.link';
/**
* hook for using a query string.
*/
function useQuery() {
const { search } = (0, base_react_navigation_link_1.useLocation)() || { search: '/' };
export function useQuery() {
const { search } = useLocation() || { search: '/' };
return new URLSearchParams(search);
}
exports.useQuery = useQuery;
//# sourceMappingURL=use-query.js.map
{
"name": "@teambit/ui-foundation.ui.react-router.use-query",
"version": "0.0.501",
"version": "0.0.502",
"homepage": "https://bit.cloud/teambit/ui-foundation/ui/react-router/use-query",

@@ -9,22 +9,15 @@ "main": "dist/index.js",

"name": "ui/react-router/use-query",
"version": "0.0.501"
"version": "0.0.502"
},
"dependencies": {
"core-js": "^3.0.0",
"@teambit/base-react.navigation.link": "2.0.27"
},
"dependencies": {},
"devDependencies": {
"@types/mocha": "9.1.0",
"@types/node": "12.20.4",
"@types/react": "^17.0.8",
"@types/react-dom": "^17.0.5",
"@types/jest": "^26.0.0",
"@babel/runtime": "7.20.0",
"@types/testing-library__jest-dom": "5.9.5"
"@teambit/react.v17.react-env": "1.1.17"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
"@teambit/base-react.navigation.link": "^2.0.31"
},
"license": "Apache-2.0",
"optionalDependencies": {},
"peerDependenciesMeta": {},
"private": false,

@@ -48,2 +41,2 @@ "engines": {

]
}
}
{
"compilerOptions": {
"lib": [
"es2019",
"DOM",
"ES6",
"DOM.Iterable"
"esnext",
"dom",
"dom.Iterable"
],
"target": "es2015",
"module": "CommonJS",
"jsx": "react",
"allowJs": true,
"composite": true,
"target": "es2020",
"module": "es2020",
"jsx": "react-jsx",
"declaration": true,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"outDir": "dist",
"moduleResolution": "node",
"esModuleInterop": true,
"rootDir": ".",
"resolveJsonModule": true
"resolveJsonModule": true,
"allowJs": true,
"outDir": "dist",
"strict": true,
"emitDecoratorMetadata": true,
"preserveConstEnums": true,
"strictPropertyInitialization": false,
"noImplicitAny": false
},
"exclude": [
"artifacts",
"public",
"dist",
"package.json"
"node_modules",
"package.json",
"**/*.cjs",
"./dist"
],

@@ -28,0 +35,0 @@ "include": [

@@ -8,8 +8,8 @@ declare module '*.png' {

export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
export const ReactComponent: FunctionComponent<
SVGProps<SVGSVGElement> & { title?: string }
>;
const src: string;
export default src;
}
// @TODO Gilad
declare module '*.jpg' {

@@ -31,1 +31,13 @@ const value: any;

}
declare module '*.otf' {
const value: any;
export = value;
}
declare module '*.woff' {
const value: any;
export = value;
}
declare module '*.woff2' {
const value: any;
export = value;
}

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