Skip to content

Commit

Permalink
minor naming chnage
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Jul 5, 2022
1 parent ce32e24 commit b60d09c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/ucans/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b60d09c

Please sign in to comment.