-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(javascript): use beta npm org (#226)
- Loading branch information
Showing
44 changed files
with
386 additions
and
320 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"node": "16", | ||
"packages": ["clients/algoliasearch-client-javascript/packages/*/"], | ||
"sandboxes": [ | ||
"algolia-algoliasearch-for-javascript-jc82hd", | ||
"algolia-client-search-for-javascript-10pix9", | ||
"algolia-client-predict-for-javascript-4e31t3", | ||
"algolia-client-sources-for-javascript-7qdk7n", | ||
"algolia-recommend-for-javascript-j04foe", | ||
"algolia-client-abtesting-for-javascript-8wthkc", | ||
"algolia-client-query-suggestions-for-javascrip-h8rwl4", | ||
"algolia-client-insights-for-javascript-ij075w", | ||
"algolia-client-personalization-for-javascrip-fkeyc0", | ||
"algolia-client-analytics-for-javascript-0rknde" | ||
] | ||
} |
Submodule algoliasearch-client-javascript
updated
49 files
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
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { insightsApi } from '@experimental-api-clients-automation/client-insights'; | ||
import { ApiError } from '@experimental-api-clients-automation/client-common'; | ||
import dotenv from 'dotenv'; | ||
|
||
dotenv.config({ path: '../../.env' }); | ||
|
||
const appId = process.env.ALGOLIA_APPLICATION_ID || '**** APP_ID *****'; | ||
const apiKey = | ||
process.env.ALGOLIA_INSIGHTS_API_KEY || '**** INSIGHTS_API_KEY *****'; | ||
|
||
// Init client with appId and apiKey | ||
const client = insightsApi(appId, apiKey); | ||
|
||
async function testInsights() { | ||
try { | ||
const res = await client.pushEvents({ | ||
events: [], | ||
}); | ||
|
||
console.log(`[OK]`, res); | ||
} catch (e) { | ||
if (e instanceof ApiError) { | ||
return console.log(`[${e.status}] ${e.message}`, e.stackTrace); | ||
} | ||
|
||
console.log('[ERROR]', e); | ||
} | ||
} | ||
|
||
testInsights(); |
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
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
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
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
Oops, something went wrong.