@teambit/ui-foundation.ui.react-router.use-query
Advanced tools
Comparing version 0.0.501 to 0.0.502
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
2
181
1
- Removedcore-js@^3.0.0
- Removedcore-js@3.40.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)