@cloudflare/workers-auth 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cf/index.mjs CHANGED
@@ -1,9 +1,12 @@
1
- import { createAuthConfigFileHelpers, createPreferences, createKeyringPreference, createFileStorage, createCloudflareAuth, createCloudflareProfileStore } from '../chunk-V6MEAFHI.mjs';
2
- import '../chunk-WMSASLDV.mjs';
3
- import { __name } from '../chunk-O6YSETKJ.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { createAuthConfigFileHelpers, createPreferences, createKeyringPreference, createFileStorage, createCloudflareAuth, createCloudflareProfileStore } from '../chunk-2JQZNT7W.mjs';
3
+ import '../chunk-RV27PEH3.mjs';
4
+ import { __name } from '../chunk-VAZEJK55.mjs';
4
5
  import { getEnvironmentVariableFactory, getGlobalConfigPath, getCloudflareApiEnvironmentFromEnv } from '@cloudflare/workers-utils';
5
6
  import path from 'node:path';
6
7
 
8
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
9
+
7
10
  // src/cf/constants.ts
8
11
  var CF_KEYRING_SERVICE_NAME = "cloudflare";
9
12
  var CF_CLI_NAME = "cf";
@@ -1,10 +1,12 @@
1
- import { stringifyFile, parseFile, dedent, createCredentialStorageContext, createOAuthFlow, getAuthFromEnv, createProfileStore, validateAccountId, getCloudflareAccountIdFromEnv, getAuthConfigFilePath, getEncryptedAuthConfigFilePath, scrubEncryptedCredentials, validateProfileName, getCloudflareAuthUseKeyringFromEnv } from './chunk-WMSASLDV.mjs';
2
- import { __name } from './chunk-O6YSETKJ.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { stringifyFile, parseFile, dedent, createCredentialStorageContext, createOAuthFlow, getAuthFromEnv, createProfileStore, validateAccountId, getCloudflareAccountIdFromEnv, getAuthConfigFilePath, getEncryptedAuthConfigFilePath, scrubEncryptedCredentials, validateProfileName, getCloudflareAuthUseKeyringFromEnv } from './chunk-RV27PEH3.mjs';
3
+ import { __name } from './chunk-VAZEJK55.mjs';
3
4
  import { existsSync, rmSync, mkdirSync, writeFileSync, chmodSync, readFileSync as readFileSync$1, readdirSync } from 'node:fs';
4
5
  import path3 from 'node:path';
5
6
  import { URLSearchParams } from 'node:url';
6
7
  import { readFileSync, isNonInteractiveOrCI, createConfigCache, openInBrowser, fetchInternalBase, hasMorePages, throwFetchError, UserError, isCI, getCloudflareComplianceRegion } from '@cloudflare/workers-utils';
7
8
 
9
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
8
10
  function createPreferences(getConfigPath) {
9
11
  function getUserPreferencesPath() {
10
12
  return path3.resolve(getConfigPath(), "preferences.json");
@@ -1,4 +1,5 @@
1
- import { __name } from './chunk-O6YSETKJ.mjs';
1
+ import { createRequire } from 'node:module';
2
+ import { __name } from './chunk-VAZEJK55.mjs';
2
3
  import { getEnvironmentVariableFactory, getCloudflareApiEnvironmentFromEnv, getBooleanEnvironmentVariableFactory, UserError, readFileSync, isNonInteractiveOrCI, FatalError, getCloudflareApiBaseUrl, COMPLIANCE_REGION_CONFIG_PUBLIC, getCloudflareComplianceRegion, parseTOML } from '@cloudflare/workers-utils';
3
4
  import { spawn, spawnSync } from 'node:child_process';
4
5
  import { fetch } from 'undici';
@@ -9,7 +10,8 @@ import http from 'node:http';
9
10
  import url from 'node:url';
10
11
  import path4 from 'node:path';
11
12
  import { existsSync, mkdirSync, writeFileSync, chmodSync, rmSync } from 'node:fs';
12
- import { createRequire } from 'node:module';
13
+
14
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
13
15
 
14
16
  // src/state.ts
15
17
  var hasWarnedAboutDeprecatedV1ApiToken = false;
@@ -1,3 +1,6 @@
1
+ import { createRequire } from 'node:module';
2
+
3
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
1
4
  var __defProp = Object.defineProperty;
2
5
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
6
 
package/dist/index.mjs CHANGED
@@ -1,2 +1,5 @@
1
- export { EncryptedFileCredentialStore, FileCredentialStore, LinuxSecretToolKeyProvider, MacSecurityKeyProvider, NapiKeyringKeyProvider, PINNED_KEYRING_VERSION, PKCE_CHARSET, TEMPORARY_TERMS_NOTICE, TEMPORARY_TERMS_PROMPT, clearAccessCaches, clearCredentialStorageState, createCredentialStorageContext, createOAuthFlow, createProfileStore, decryptString, domainUsesAccess, encryptString, findKeyringBinding, generateAuthUrl, generateKey, generateRandomState, generateVerificationUrl, getAccessHeaders, getAuthConfigFilePath, getAuthFromEnv, getAuthUrlFromEnv, getCloudflareAPITokenFromEnv, getCloudflareAccountIdFromEnv, getCloudflareAuthUseKeyringFromEnv, getCloudflareGlobalAuthEmailFromEnv, getCloudflareGlobalAuthKeyFromEnv, getEncryptedAuthConfigFilePath, getKeyringAccountName, getKeyringInstallDir, installKeyringBindingSync, parseEncryptedEnvelope, probeSecretTool, readStoredAuthState, resetCredentialStorageState, resolveKeyProvider, scrubEncryptedCredentials, setKeyProviderFactoryForTesting, setKeyringEntryFactory, setLinuxSecretToolRunner, setMacSecurityCommandRunner, setNpmRunner, validateProfileName } from './chunk-WMSASLDV.mjs';
2
- import './chunk-O6YSETKJ.mjs';
1
+ import { createRequire } from 'node:module';
2
+ export { EncryptedFileCredentialStore, FileCredentialStore, LinuxSecretToolKeyProvider, MacSecurityKeyProvider, NapiKeyringKeyProvider, PINNED_KEYRING_VERSION, PKCE_CHARSET, TEMPORARY_TERMS_NOTICE, TEMPORARY_TERMS_PROMPT, clearAccessCaches, clearCredentialStorageState, createCredentialStorageContext, createOAuthFlow, createProfileStore, decryptString, domainUsesAccess, encryptString, findKeyringBinding, generateAuthUrl, generateKey, generateRandomState, generateVerificationUrl, getAccessHeaders, getAuthConfigFilePath, getAuthFromEnv, getAuthUrlFromEnv, getCloudflareAPITokenFromEnv, getCloudflareAccountIdFromEnv, getCloudflareAuthUseKeyringFromEnv, getCloudflareGlobalAuthEmailFromEnv, getCloudflareGlobalAuthKeyFromEnv, getEncryptedAuthConfigFilePath, getKeyringAccountName, getKeyringInstallDir, installKeyringBindingSync, parseEncryptedEnvelope, probeSecretTool, readStoredAuthState, resetCredentialStorageState, resolveKeyProvider, scrubEncryptedCredentials, setKeyProviderFactoryForTesting, setKeyringEntryFactory, setLinuxSecretToolRunner, setMacSecurityCommandRunner, setNpmRunner, validateProfileName } from './chunk-RV27PEH3.mjs';
3
+ import './chunk-VAZEJK55.mjs';
4
+
5
+ createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));