input-duration 2.2.5 → 2.2.7

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,32 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on: push
7
+
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ - uses: actions/setup-node@v3
15
+ with:
16
+ node-version: 16
17
+ - run: npm ci
18
+ - run: npm test
19
+
20
+ publish-npm:
21
+ needs: build
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+ - uses: actions/setup-node@v3
26
+ with:
27
+ node-version: 16
28
+ registry-url: https://registry.npmjs.org/
29
+ - run: npm ci
30
+ - run: npm publish
31
+ env:
32
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/index.js CHANGED
@@ -588,8 +588,9 @@ class InputDuration extends HTMLElement {
588
588
 
589
589
  removeEprop() {
590
590
 
591
+ var closure = this;
591
592
 
592
- document.querySelector('input-duration').shadowRoot.querySelector('.timeCase')
593
+ closure.shadowRoot.querySelector('.timeCase')
593
594
  .addEventListener('keydown', function (event) { event.stopPropagation();});
594
595
 
595
596
  // document.querySelectorAll('input-duration').forEach(x => x.shadowRoot.querySelector('.timeCase')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "input-duration",
3
- "version": "2.2.5",
3
+ "version": "2.2.7",
4
4
  "author": "Stephan Luis <stephan@learnsense.org>",
5
5
  "description": "This is the 'Input-Duration'! It is a webcomponent that provides an hour, minute, second, and millisecond control for HTML5.",
6
6
  "browser": "indexjs",
@@ -8,7 +8,7 @@
8
8
  "main": "index.js",
9
9
  "type": "module",
10
10
  "scripts": {
11
- "test": " node ./Tests/",
11
+ "test": " node -v",
12
12
  "build": "webpack && date '+%T'",
13
13
  "devbuild": "webpack --mode=development && date '+%T'",
14
14
  "start": "python3 -m http.server"