@heroku/ember-hk-components 1.21.3 → 1.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ name: Send data to Security Alerts
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ - cron: '0 10 * * *'
7
+
8
+ jobs:
9
+ send-alerts:
10
+ runs-on: sfdc-hk-ubuntu-latest
11
+ steps:
12
+ - name: Send data to Security Alerts
13
+ uses: heroku/security-alerts-action@stable
14
+ with:
15
+ gh-app-id: ${{ secrets.SECURITY_ALERTS_GH_APP_ID }}
16
+ gh-app-privkey: ${{ secrets.SECURITY_ALERTS_GH_APP_PRIVKEY }}
17
+ webhook-url: ${{ secrets.SECURITY_ALERTS_WEBHOOK_URL }}
18
+ sa-token: ${{ secrets.SECURITY_ALERTS_TOKEN }}
@@ -1,4 +1,4 @@
1
- import { getWithDefault, observer, computed, set, get } from '@ember/object';
1
+ import { observer, computed, set, get } from '@ember/object';
2
2
  import Component from '@ember/component';
3
3
 
4
4
  let positionalParamsMixin = {
@@ -23,7 +23,10 @@ const ButtonComponent = Component.extend(positionalParamsMixin, {
23
23
  }),
24
24
 
25
25
  click() {
26
- let params = getWithDefault(this, 'params', []);
26
+ let params = get(this, 'params');
27
+ if (params === undefined) {
28
+ params = [];
29
+ }
27
30
  let callbackHandler = promise => {
28
31
  set(this, 'promise', promise);
29
32
  };
@@ -45,7 +48,11 @@ const ButtonComponent = Component.extend(positionalParamsMixin, {
45
48
  'fulfilled',
46
49
  'rejected',
47
50
  function() {
48
- return getWithDefault(this, this.textState, get(this, 'default'));
51
+ let value = get(this, this.textState);
52
+ if (value === undefined) {
53
+ value = get(this, 'default');
54
+ }
55
+ return value;
49
56
  }
50
57
  ),
51
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/ember-hk-components",
3
- "version": "1.21.3",
3
+ "version": "1.21.4",
4
4
  "description": "Ember HK Components",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -11,6 +11,19 @@
11
11
  "doc": "doc",
12
12
  "test": "tests"
13
13
  },
14
+ "scripts": {
15
+ "build": "ember build",
16
+ "lint:hbs": "ember-template-lint .",
17
+ "lint:js": "eslint .",
18
+ "lint": "pnpm run lint:js && pnpm run lint:hbs",
19
+ "lint:hbs:fix": "ember-template-lint . --fix",
20
+ "start": "ember server",
21
+ "test": "pnpm run test:ember",
22
+ "test:ember": "ember test",
23
+ "test:ember-compatibility": "ember try:each",
24
+ "changelog": "lerna-changelog",
25
+ "preinstall": "npx only-allow pnpm"
26
+ },
14
27
  "dependencies": {
15
28
  "@heroku/ember-malibu-icon": "^1.6.0",
16
29
  "body-scroll-lock": "^3.1.5",
@@ -88,18 +101,5 @@
88
101
  "lodash.template": "npm:lodash@^4.17.21",
89
102
  "rollup": "^4.50.1",
90
103
  "validated-changeset": "1.4.1"
91
- },
92
- "scripts": {
93
- "build": "ember build",
94
- "lint:hbs": "ember-template-lint .",
95
- "lint:js": "eslint .",
96
- "lint": "pnpm run lint:js && pnpm run lint:hbs",
97
- "lint:hbs:fix": "ember-template-lint . --fix",
98
- "start": "ember server",
99
- "test": "pnpm run test:ember",
100
- "test:ember": "ember test",
101
- "test:ember-compatibility": "ember try:each",
102
- "changelog": "lerna-changelog",
103
- "preinstall": "npx only-allow pnpm"
104
104
  }
105
- }
105
+ }