@domql/event 2.0.2 → 2.0.6

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.
package/can.js ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict'
2
+
3
+ // import { TAGS } from '@domql/registry'
4
+ // import { report } from '@domql/report'
5
+
6
+ // export const render = (element) => {
7
+ // const tag = element.tag || 'div'
8
+ // const isValid = TAGS.body.indexOf(tag) > -1
9
+ // return isValid || report('HTMLInvalidTag')
10
+ // }
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@domql/event",
3
- "version": "2.0.2",
4
- "main": "src/index.js",
3
+ "version": "2.0.6",
4
+ "main": "index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "vpatch": "npm version patch && npm publish --access public"
8
8
  },
9
- "dependencies": {
10
- "@domql/node": "^2.0.2",
11
- "@domql/report": "^2.0.2"
12
- },
13
- "gitHead": "0aa5932cb9ae5f1bb55bfaf792a4d009233385f6",
14
- "source": "src/index.js"
9
+ "gitHead": "88144a3105a3a0abd5f54f31659a37e494418dcb",
10
+ "source": "index.js"
15
11
  }
File without changes
package/wrappers.js ADDED
@@ -0,0 +1,14 @@
1
+ 'use strict'
2
+
3
+ // export const getScrollPositions = () => {
4
+ // if (window.pageYOffset !== undefined) {
5
+ // return [window.pageXOffset, window.pageYOffset]
6
+ // } else {
7
+ // const d = document
8
+ // const r = d.documentElement
9
+ // const b = d.body
10
+ // const sx = r.scrollLeft || b.scrollLeft || 0
11
+ // const sy = r.scrollTop || b.scrollTop || 0
12
+ // return [sx, sy]
13
+ // }
14
+ // }
package/src/can.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict'
2
-
3
- import { NODE_REGISTRY } from '@domql/node'
4
- import { report } from '@domql/report'
5
-
6
- export const render = (element) => {
7
- const tag = element.tag || 'div'
8
- const isValid = NODE_REGISTRY.body.indexOf(tag) > -1
9
- return isValid || report('HTMLInvalidTag')
10
- }
package/src/wrappers.js DELETED
@@ -1,14 +0,0 @@
1
- 'use strict'
2
-
3
- export const getScrollPositions = () => {
4
- if (window.pageYOffset !== undefined) {
5
- return [window.pageXOffset, window.pageYOffset]
6
- } else {
7
- const d = document
8
- const r = d.documentElement
9
- const b = d.body
10
- const sx = r.scrollLeft || b.scrollLeft || 0
11
- const sy = r.scrollTop || b.scrollTop || 0
12
- return [sx, sy]
13
- }
14
- }
package/yarn-error.log DELETED
@@ -1,44 +0,0 @@
1
- Arguments:
2
- /Users/nikoloza/.nvm/versions/node/v14.17.1/bin/node /Users/nikoloza/.nvm/versions/node/v14.17.1/bin/yarn add NODE_REGISTRY
3
-
4
- PATH:
5
- /Users/nikoloza/.nvm/versions/node/v14.17.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/Library/Apple/usr/bin:/Users/nikoloza/.nvm/versions/node/v14.17.1/bin:/Users/nikoloza/.fzf/bin
6
-
7
- Yarn version:
8
- 1.22.10
9
-
10
- Node version:
11
- 14.17.1
12
-
13
- Platform:
14
- darwin x64
15
-
16
- Trace:
17
- Error: https://registry.yarnpkg.com/NODE_REGISTRY: Not found
18
- at Request.params.callback [as _callback] (/Users/nikoloza/.nvm/versions/node/v14.17.1/lib/node_modules/yarn/lib/cli.js:66988:18)
19
- at Request.self.callback (/Users/nikoloza/.nvm/versions/node/v14.17.1/lib/node_modules/yarn/lib/cli.js:140662:22)
20
- at Request.emit (events.js:375:28)
21
- at Request.<anonymous> (/Users/nikoloza/.nvm/versions/node/v14.17.1/lib/node_modules/yarn/lib/cli.js:141634:10)
22
- at Request.emit (events.js:375:28)
23
- at IncomingMessage.<anonymous> (/Users/nikoloza/.nvm/versions/node/v14.17.1/lib/node_modules/yarn/lib/cli.js:141556:12)
24
- at Object.onceWrapper (events.js:481:28)
25
- at IncomingMessage.emit (events.js:387:35)
26
- at endReadableNT (internal/streams/readable.js:1317:12)
27
- at processTicksAndRejections (internal/process/task_queues.js:82:21)
28
-
29
- npm manifest:
30
- {
31
- "name": "@domql/event",
32
- "version": "1.2.14",
33
- "main": "src/index.js",
34
- "license": "MIT",
35
- "scripts": {
36
- "vpatch": "npm version patch && npm publish --access public"
37
- }
38
- }
39
-
40
- yarn manifest:
41
- No manifest
42
-
43
- Lockfile:
44
- No lockfile