1 2 3 4 5 6 7 8 9 10 11 12 13 | 1x | import { Builder } from 'postman-sdk' const { environment } = Builder export default (collection, environments) => environments.map(env => { const name = `${collection.info.name.toUpperCase()}_${env.name.toUpperCase()}` const newEnv = environment(name) env.values.map(variable => newEnv.add(variable)) return newEnv }) |