From 6f107d547e2ee4d261bf45437294e9758e6027a2 Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Wed, 22 Jun 2022 18:24:45 +0000 Subject: update github action --- .github/devcontainers-action/lib/generateDocs.js | 15 ++++++++------- .github/devcontainers-action/lib/main.js | 6 +++++- .github/devcontainers-action/lib/utils.js | 6 +++++- 3 files changed, 18 insertions(+), 9 deletions(-) (limited to '.github/devcontainers-action/lib') diff --git a/.github/devcontainers-action/lib/generateDocs.js b/.github/devcontainers-action/lib/generateDocs.js index 707ab12..b82517f 100644 --- a/.github/devcontainers-action/lib/generateDocs.js +++ b/.github/devcontainers-action/lib/generateDocs.js @@ -1,7 +1,11 @@ "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -115,14 +119,11 @@ const README_TEMPLATE = ` ## Example Usage \`\`\`json -"features": [ - { - "id": "#{nwo}/#{featureId}@#{versionTag}", - "options": { +"features": { + "#{nwo}/#{featureId}@#{versionTag}": { "version": "latest" } - } -] +} \`\`\` ## Options diff --git a/.github/devcontainers-action/lib/main.js b/.github/devcontainers-action/lib/main.js index 2e5d391..c0327d7 100644 --- a/.github/devcontainers-action/lib/main.js +++ b/.github/devcontainers-action/lib/main.js @@ -5,7 +5,11 @@ *-------------------------------------------------------------------------------------------------------------*/ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; diff --git a/.github/devcontainers-action/lib/utils.js b/.github/devcontainers-action/lib/utils.js index 165d1c2..7253a8d 100644 --- a/.github/devcontainers-action/lib/utils.js +++ b/.github/devcontainers-action/lib/utils.js @@ -1,7 +1,11 @@ "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; -- cgit v1.2.3