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:
John-Michael Faircloth
2024-04-15 16:39:55 -05:00
committed by GitHub
parent ee41aa2fcf
commit 66531b2752
39 changed files with 14341 additions and 12232 deletions
+11 -12
View File
@@ -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,
}
};