@kilterset/auth0-actions-testing
Version:
Test and develop Auth0 Actions or Okta CIC Actions locally.
17 lines (14 loc) • 360 B
text/typescript
import * as ts from "typescript";
export function exported(node: ts.Node) {
if (ts.isPropertyAccessExpression(node)) {
const object = node.expression;
const propertyName = node.name;
if (
ts.isIdentifier(object) &&
object.text === "exports" &&
ts.isIdentifier(propertyName)
) {
return propertyName.text;
}
}
}