Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@okam/directus-node
Advanced tools
This library was generated with Nx.
Run nx build directus-node
to build the library.
Run nx test directus-node
to execute the unit tests via Jest.
/**
* Usage
* In apps/contest-nextjs directory
* npx env-cmd -f ../../.env.local node fetch-redirect.js
*/
const { fetchRedirects, getDefaultConfig } = require('@okam/directus-node')
fetchRedirects(getDefaultConfig())
"dependsOn": ["fetch-redirect"],
"fetch-redirect": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "node fetch-redirect"
}
},
Don't forget to change the cwd path
Create directory redirect
Create file redirect/index.js
const redirects = require('./redirects.json')
const rewrites = require('./rewrites.json')
module.exports = {
redirects: async () => redirects,
rewrites: async () => rewrites,
}
NEXT_PUBLIC_GRAPHQL_URL=
NEXT_API_TOKEN_ADMIN=
npx env-cmd -f ../../.env.local node fetch-redirect.js
const { rewrites, redirects } = require('./redirect/index')
const nextConfig = {
...
async redirects() {
const rest = await redirects()
return [
...i18nReRouter({locale: false, permanent: true}, 'redirect'),
...rest,
]
return rest
},
async rewrites() {
const fallback = await rewrites()
return {
beforeFiles: [
...i18nReRouter({locale: false}, 'rewrite'),
],
afterFiles: [
...i18nRewriter({...i18nConfigWithoutLocaleDetector, localeDetector: false}),
],
fallback,
}
},
...
}
FAQs
This library was generated with [Nx](https://nx.dev).
The npm package @okam/directus-node receives a total of 101 weekly downloads. As such, @okam/directus-node popularity was classified as not popular.
We found that @okam/directus-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.