(script)
| 64 | }); |
| 65 | } |
| 66 | function transformScript(script) { |
| 67 | return { |
| 68 | meta: parseMeta(script.code), |
| 69 | custom: Object.assign({}, defaultCustom, script.custom), |
| 70 | props: { |
| 71 | id: script.id, |
| 72 | uri: script.uri, |
| 73 | position: script.position, |
| 74 | }, |
| 75 | config: { |
| 76 | enabled: script.enabled, |
| 77 | shouldUpdate: script.update, |
| 78 | }, |
| 79 | }; |
| 80 | } |
| 81 | }) |
| 82 | // Ignore error |
| 83 | .catch(() => {}); |