From b60d09cf954002862ffb9bda467e6d79841a1211 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Jul 2022 14:10:39 -0500 Subject: [PATCH] minor naming chnage --- packages/core/src/index.ts | 2 +- packages/core/tests/setup.ts | 2 +- packages/ucans/src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 429bae9..b4b717a 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -18,7 +18,7 @@ export * as ability from "./capability/ability.js" export { Capability, EncodedCapability, isCapability } from "./capability/index.js" -export const injectPlugins = (plugins: Plugins) => { +export const getPluginInjectedApi = (plugins: Plugins) => { const build = token.build(plugins) const sign = token.sign(plugins) const signWithKeypair = token.signWithKeypair(plugins) diff --git a/packages/core/tests/setup.ts b/packages/core/tests/setup.ts index afdabdf..950bfb2 100644 --- a/packages/core/tests/setup.ts +++ b/packages/core/tests/setup.ts @@ -3,7 +3,7 @@ import * as plugins from "@ucans/plugins" export * from "../src" -const injected = core.injectPlugins(plugins.defaults) +const injected = core.getPluginInjectedApi(plugins.defaults) export const build = injected.build export const sign = injected.sign diff --git a/packages/ucans/src/index.ts b/packages/ucans/src/index.ts index 0036bab..6bc6799 100644 --- a/packages/ucans/src/index.ts +++ b/packages/ucans/src/index.ts @@ -4,7 +4,7 @@ import * as core from "@ucans/core" export * from "@ucans/core" export * from "@ucans/plugins" -const injected = core.injectPlugins(plugins.defaults) +const injected = core.getPluginInjectedApi(plugins.defaults) export const build = injected.build export const sign = injected.sign