Skip to content

Commit

Permalink
Switch initial js code to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Apr 14, 2022
1 parent 9671e60 commit 19b3d04
Show file tree
Hide file tree
Showing 17 changed files with 2,004 additions and 467 deletions.
16 changes: 9 additions & 7 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"presets": [
[
"@babel/preset-env"
]
],
"plugins": [ "@babel/plugin-transform-block-scoping"]
}
"presets": ["@babel/env", "@babel/typescript"],
"plugins": [
"@babel/proposal-class-properties",

"@babel/proposal-object-rest-spread",

"@babel/plugin-transform-block-scoping"
]
}
2 changes: 1 addition & 1 deletion build/aws.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/aws.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/secrets-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export default function () {

// Now that we know the secret exist, let's update its value
const newTestSecretValue = 'new-test-value'
secretsManager.putSecretValue(testSecretName, newTestSecretValue)
const u = secretsManager.putSecretValue(testSecretName, newTestSecretValue)

// Let's get its value and verify it was indeed updated
const updatedSecret = secretsManager.getSecret(testSecretName)
if (updatedSecret.secretString !== newTestSecretValue) {
if (updatedSecret.secret !== newTestSecretValue) {
exec.test.abort('unable to update test secret')
}

Expand Down
Loading

0 comments on commit 19b3d04

Please sign in to comment.