-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replaced jest with vitest and refactored init functions
- Loading branch information
1 parent
115bf6a
commit e484718
Showing
13 changed files
with
2,465 additions
and
4,027 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,5 @@ | ||
--- | ||
"@cipherstash/jseql": minor | ||
--- | ||
|
||
Refactored init function to not require envrionment variables as arguments. |
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,5 @@ | ||
--- | ||
"@cipherstash/jseql": minor | ||
--- | ||
|
||
Replaces jset with vitest for better typescript support. |
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,12 +1,7 @@ | ||
import 'dotenv/config' | ||
|
||
// NPM isn't working with Turborepo so hardcoded to cjs build for now | ||
// import { eql } from '@cipherstash/jseql' | ||
import { createRequire } from 'node:module' | ||
const require = createRequire(import.meta.url) | ||
const { eql } = require('@cipherstash/jseql') | ||
import { eql } from '../../../packages/jseql/dist/index.cjs' | ||
|
||
export const eqlClient = await eql({ | ||
workspaceId: process.env.CS_WORKSPACE_ID, | ||
clientId: process.env.CS_CLIENT_ID, | ||
clientKey: process.env.CS_CLIENT_KEY, | ||
accessToken: process.env.CS_CLIENT_ACCESS_KEY, | ||
}) | ||
export const eqlClient = await eql() |
Oops, something went wrong.