
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
@webiny/api-wcp
Advanced tools
A set of backend Webiny Control Panel (WCP)-related features.
@webiny/api-wcp
A set of backend Webiny Control Panel (WCP)-related features.
npm install --save @webiny/api-wcp
Or if you prefer yarn:
yarn add @webiny/api-wcp
The @webiny/api-wcp
package contains essential backend Webiny Control Panel (WCP)-related utilities.
Example | Description |
---|---|
Registering Plugins | Shows how to register relevant plugins in a handler function. |
createWcpContext
export declare const createWcpContext: () => ContextPlugin<WcpContext>;
Creates the WCP context API.
import { createHandler } from "@webiny/handler-aws";
import { createWcpContext } from "@webiny/api-wcp";
export const handler = createHandler({
plugins: [
// Registers WCP context API.
createWcpContext(),
// ...
]
});
createWcpGraphQL
export declare const createWcpGraphQL: () => GraphQLSchemaPlugin<WcpContext>;
Returns WCP API URL. The default URL can be overridden via the WCP_API_URL
environment variable.
import { createHandler } from "@webiny/handler-aws";
import { createWcpGraphQL } from "@webiny/api-wcp";
export const handler = createHandler({
plugins: [
// Registers WCP context API.
createWcpGraphQL(),
// ...
]
});
FAQs
A set of backend Webiny Control Panel (WCP)-related features.
The npm package @webiny/api-wcp receives a total of 542 weekly downloads. As such, @webiny/api-wcp popularity was classified as not popular.
We found that @webiny/api-wcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.