From 63089d1730405d59f71a007d7cecf9e2697391f6 Mon Sep 17 00:00:00 2001 From: Benjamin Abel Date: Tue, 16 Mar 2021 08:57:32 +0100 Subject: [PATCH] Publish v3.0.2 --- example/package.json | 2 +- example/yarn.lock | 6 ++---- package.json | 2 +- src/gatsby-node.js | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/example/package.json b/example/package.json index b60c56d..b8fad42 100644 --- a/example/package.json +++ b/example/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "author": "Benjamin Abel ", "dependencies": { - "@gatsby-contrib/gatsby-plugin-elasticlunr-search": "^3.0.0", + "@gatsby-contrib/gatsby-plugin-elasticlunr-search": "../", "gatsby": "^3.0.0", "gatsby-source-filesystem": "^3.0.0", "gatsby-transformer-remark": "^3.0.0", diff --git a/example/yarn.lock b/example/yarn.lock index 0d9db47..8019874 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1023,10 +1023,8 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@gatsby-contrib/gatsby-plugin-elasticlunr-search@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@gatsby-contrib/gatsby-plugin-elasticlunr-search/-/gatsby-plugin-elasticlunr-search-3.0.0.tgz#95781767d9a408fba68df7e9251fe61ecba7ef93" - integrity sha512-JxN+HkW1x/++cXlVOpy/khPryIbooSDpRmrh40fTchhTC6QemhlMpmluebRrLeOeO0ltcf+DKJ3mnBDVW68ZMw== +"@gatsby-contrib/gatsby-plugin-elasticlunr-search@../": + version "3.0.1" dependencies: elasticlunr "^0.9.5" diff --git a/package.json b/package.json index 2a9791b..7af9be6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gatsby-contrib/gatsby-plugin-elasticlunr-search", - "version": "3.0.1", + "version": "3.0.2", "description": "Search for gatsby; implemented via elasticlunr.", "main": "gatsby-node.js", "scripts": { diff --git a/src/gatsby-node.js b/src/gatsby-node.js index f211f65..6800c94 100644 --- a/src/gatsby-node.js +++ b/src/gatsby-node.js @@ -106,7 +106,7 @@ exports.sourceNodes = async ({ getNodes, actions }) => { const existingNodes = getNodes().filter( n => n.internal.owner === `@gatsby-contrib/gatsby-plugin-elasticlunr-search` ) - existingNodes.forEach(node => touchNode({ node })) + existingNodes.forEach(node => touchNode(node)) } exports.onCreateNode = ({ node, actions, getNode }, { resolvers, filter }) => {