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

gatsby-plugin-flexsearch-lang

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

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 1.0.5 to 1.1.0

hooks/flexsearch.js

12

gatsby-node.js

@@ -44,5 +44,5 @@ const _ = require('lodash')

if (lng === 'en') {
require('./lang/en')
require('./lang/en')(global.FlexSearch)
} else if (lng === 'de') {
require('./lang/en')
require('./lang/en')(global.FlexSearch)
} else {

@@ -91,9 +91,7 @@ console.error(

fullIndex[lng] = {
fs.writeFileSync(`public/flexsearch_index__${lng}.json`, JSON.stringify({
index: indexStore,
store,
}
store
}));
})
fs.writeFileSync('public/flexsearch_index.json', JSON.stringify(fullIndex))
}
//
import useFlexSearch from './hooks/flexsearch';
export { useFlexSearch };

@@ -1,7 +0,3 @@

/** @define {boolean} */ const SUPPORT_LANG_DE = true
if (SUPPORT_LANG_DE) {
// noinspection ThisExpressionReferencesGlobalObjectJS
;(function(root) {
FlexSearch.registerLanguage(
module.exports = (FlexSearch) => {
FlexSearch.registerLanguage(
'de',

@@ -173,4 +169,3 @@ /** @const */ {

}
)
})(this)
}
);
};

@@ -1,7 +0,3 @@

/** @define {boolean} */ const SUPPORT_LANG_EN = true
if (SUPPORT_LANG_EN) {
// noinspection ThisExpressionReferencesGlobalObjectJS
;(function(root) {
FlexSearch.registerLanguage(
module.exports = (FlexSearch) => {
FlexSearch.registerLanguage(
'en',

@@ -277,4 +273,3 @@ /** @const */ {

}
)
})(this)
}
);
};
{
"name": "gatsby-plugin-flexsearch-lang",
"version": "1.0.5",
"version": "1.1.0",
"description": "Search for Gatsby.js using FlexSearch.js",

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

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