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

gatsby-plugin-flexsearch-lang

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-flexsearch-lang - npm Package Compare versions

Comparing version

to
1.1.2

@@ -1,6 +0,3 @@

import React, { useState, useEffect } from 'react';
const React = require('re')
import FlexSearch from 'flexsearch';
import en from '../lang/en';
import de from '../lang/de';
const { useState, useEffect } = require('react');
const FlexSearch = require('flexsearch');

@@ -14,3 +11,3 @@ const __FLEXSEARCH__ = {};

return (language) => {
if (status[languasge]) {
if (status[language]) {
return;

@@ -36,5 +33,5 @@ }

if (language === 'en') {
en(FlexSearch);
require('../lang/en')(FlexSearch);
} else if (language === 'de') {
de(FlexSearch);
require('../lang/de')(FlexSearch);
} else {

@@ -90,2 +87,2 @@ console.error(

export default useFlexSearch;
module.exports = useFlexSearch;
//
import useFlexSearch from './hooks/flexsearch';
export { useFlexSearch };
const useFlexSearch = require('./hooks/flexsearch');
module.exports = { useFlexSearch };
{
"name": "gatsby-plugin-flexsearch-lang",
"version": "1.1.1",
"version": "1.1.2",
"description": "Search for Gatsby.js using FlexSearch.js",

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