-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2933f0
commit 4726f4e
Showing
7 changed files
with
349 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
{ | ||
|
||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "6.10" | ||
} | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-object-rest-spread", | ||
[ | ||
"transform-react-jsx", | ||
{ | ||
"pragma": "h" | ||
} | ||
] | ||
] | ||
} | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "6.10" | ||
} | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-object-rest-spread", | ||
[ | ||
"transform-react-jsx", | ||
{ | ||
"pragma": "h" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import algoliasearch from 'algoliasearch' | ||
import algoliasearch from 'algoliasearch'; | ||
|
||
export const algolia = { | ||
appId: 'OFCNCOG2CU', | ||
apiKey: '6fe4476ee5a1832882e326b506d14126', | ||
indexName: 'npm-search' | ||
} | ||
appId: 'OFCNCOG2CU', | ||
apiKey: '6fe4476ee5a1832882e326b506d14126', | ||
indexName: 'npm-search' | ||
}; | ||
|
||
const client = algoliasearch(algolia.appId, algolia.apiKey).initIndex(algolia.indexName) | ||
const client = algoliasearch(algolia.appId, algolia.apiKey).initIndex( | ||
algolia.indexName | ||
); | ||
|
||
export const search = query => client.search(query) | ||
export const search = query => client.search(query); |
Oops, something went wrong.