mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-07-31 19:03:14 +03:00
Revert convert to esm (#544)
* Revert "update got dependency and convert to esm module (#533)"
This reverts commit 77efb36ae3.
* keep new local test file changes
* keep changes to PR template
* update changelog
This commit is contained in:
committed by
GitHub
parent
ee41aa2fcf
commit
66531b2752
+11
-12
@@ -1,14 +1,12 @@
|
||||
import core from '@actions/core';
|
||||
import got from 'got';
|
||||
|
||||
import { normalizeOutputKey } from './utils.js';
|
||||
import { WILDCARD } from './constants.js';
|
||||
import { retrieveToken } from './auth.js';
|
||||
import { getSecrets } from './secrets.js';
|
||||
|
||||
// ncc doesn't compile jsonata imports properly, so we must use our own custom require
|
||||
import require from "./cjs-require.js";
|
||||
// @ts-check
|
||||
const core = require('@actions/core');
|
||||
const command = require('@actions/core/lib/command');
|
||||
const got = require('got').default;
|
||||
const jsonata = require('jsonata');
|
||||
const { normalizeOutputKey } = require('./utils');
|
||||
const { WILDCARD } = require('./constants');
|
||||
|
||||
const { auth: { retrieveToken }, secrets: { getSecrets } } = require('./index');
|
||||
|
||||
const AUTH_METHODS = ['approle', 'token', 'github', 'jwt', 'kubernetes', 'ldap', 'userpass'];
|
||||
const ENCODING_TYPES = ['base64', 'hex', 'utf8'];
|
||||
@@ -221,8 +219,9 @@ function parseHeadersInput(inputKey, inputOptions) {
|
||||
}, new Map());
|
||||
}
|
||||
|
||||
export {
|
||||
module.exports = {
|
||||
exportSecrets,
|
||||
parseSecretsInput,
|
||||
parseHeadersInput,
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user