Skip to content

Commit

Permalink
5 (pause)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Oct 1, 2023
1 parent 3a95b74 commit def725b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/client-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ let copy = obj => JSON.parse(JSON.stringify(obj))
// Never autoload these `@aws-lite/*` packages:
let ignored = [ 'client', 'arc' ]

let pause = () => new Promise(res => setTimeout(res, 250))

module.exports = async function clientFactory (config, creds, region) {
// The basic API client
async function client (params = {}) {
Expand All @@ -33,8 +35,9 @@ module.exports = async function clientFactory (config, creds, region) {
if (autoloadPlugins) {
let nodeModulesDir = join(process.cwd(), 'node_modules')
let mods = await readdir(nodeModulesDir)
// TODO ↓ remove me! ↓
console.log(`found node modules:`, mods)
// // TODO ↓ remove me! ↓
// console.log(`found node modules:`, mods)
await pause()

// Find first-party plugins
if (mods.includes('@aws-lite')) {
Expand All @@ -53,6 +56,7 @@ module.exports = async function clientFactory (config, creds, region) {

// TODO ↓ remove me! ↓
console.log(`plugins:`, plugins)
await pause()

if (plugins.length) {
for (let pluginName of plugins) {
Expand Down

0 comments on commit def725b

Please sign in to comment.