dphelper 0.2.89 → 0.2.91

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.
Files changed (119) hide show
  1. package/{CHANGELOG.txt → CHANGELOG.md} +0 -0
  2. package/{LICENSE.txt → LICENSE.md} +0 -0
  3. package/SECURITY.md +3 -3
  4. package/{public/assets → assets}/images/banner.png +0 -0
  5. package/{public/assets → assets}/logos/logo.svg +0 -0
  6. package/{public/documents → documents}/iDB/list.html +2 -2
  7. package/{public/documents → documents}/iDB/toState.html +0 -0
  8. package/index.js +2 -12
  9. package/index.js.LICENSE.txt +31 -0
  10. package/package.json +27 -35
  11. package/.editorconfig +0 -13
  12. package/.env +0 -3
  13. package/.eslintignore +0 -13
  14. package/.eslintrc.json +0 -87
  15. package/.eslintrc.legacy.json +0 -91
  16. package/.gitattributes +0 -2
  17. package/.hintrc +0 -11
  18. package/.jsbeautifyrc +0 -25
  19. package/.jshintrc +0 -16
  20. package/.prettierignore +0 -2
  21. package/.prettierrc.json +0 -8
  22. package/.stylelintignore +0 -0
  23. package/.stylelintrc.json +0 -468
  24. package/.vscode/launch.json +0 -34
  25. package/.vscode/settings.json +0 -58
  26. package/3party/shortcut.js +0 -224
  27. package/__mocks__/fileMock.js +0 -3
  28. package/__mocks__/styleMock.js +0 -3
  29. package/babel.config.js +0 -30
  30. package/backup.bat +0 -43
  31. package/coverage/coverage-final.json +0 -1
  32. package/coverage/lcov-report/base.css +0 -224
  33. package/coverage/lcov-report/block-navigation.js +0 -87
  34. package/coverage/lcov-report/favicon.png +0 -0
  35. package/coverage/lcov-report/index.html +0 -101
  36. package/coverage/lcov-report/prettify.css +0 -1
  37. package/coverage/lcov-report/prettify.js +0 -2
  38. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  39. package/coverage/lcov-report/sorter.js +0 -196
  40. package/coverage/lcov.info +0 -0
  41. package/data/list.json +0 -19
  42. package/dist/LICENSE.txt +0 -209
  43. package/dist/README.md +0 -79
  44. package/elements/button/component.js +0 -0
  45. package/elements/code/component.js +0 -0
  46. package/elements/costants.tsx +0 -13
  47. package/elements/fieldset/component.js +0 -0
  48. package/elements/input/checkbox/component.js +0 -0
  49. package/elements/input/date/component.js +0 -27
  50. package/elements/input/number/component.js +0 -0
  51. package/elements/input/radio/component.js +0 -0
  52. package/elements/input/search/component.js +0 -0
  53. package/elements/input/select/component.js +0 -0
  54. package/elements/input/slider/component.js +0 -0
  55. package/elements/input/switch/component.js +0 -0
  56. package/elements/tab/component.js +0 -0
  57. package/elements/table/component.js +0 -0
  58. package/elements/tags.less +0 -0
  59. package/elements/textarea/component.js +0 -0
  60. package/elements/x-foo/define.js +0 -33
  61. package/elements/x-foo/namespace.d.ts +0 -7
  62. package/init.js +0 -87
  63. package/jest.config.js +0 -81
  64. package/node/createTag.js +0 -7
  65. package/node/gitDeploy.js +0 -7
  66. package/node/goLive.js +0 -7
  67. package/scripts/.OLD/import.js +0 -48
  68. package/scripts/.OLD/onBeforeUnLoad.js +0 -120
  69. package/scripts/.OLD/purge.js +0 -53
  70. package/scripts/.OLD/string.js +0 -27
  71. package/scripts/anchor.js +0 -73
  72. package/scripts/array.js +0 -203
  73. package/scripts/avoid.js +0 -48
  74. package/scripts/browser.js +0 -100
  75. package/scripts/color.js +0 -121
  76. package/scripts/console.js +0 -97
  77. package/scripts/console.mapped.js +0 -160
  78. package/scripts/coods.js +0 -57
  79. package/scripts/cookie.js +0 -105
  80. package/scripts/date.js +0 -179
  81. package/scripts/disable.js +0 -91
  82. package/scripts/errors.js +0 -3
  83. package/scripts/event.js +0 -57
  84. package/scripts/font.js +0 -60
  85. package/scripts/form.js +0 -211
  86. package/scripts/format.js +0 -71
  87. package/scripts/function.js +0 -55
  88. package/scripts/iDB.js +0 -688
  89. package/scripts/json.js +0 -84
  90. package/scripts/load.js +0 -112
  91. package/scripts/math.js +0 -100
  92. package/scripts/obj.js +0 -118
  93. package/scripts/path.js +0 -101
  94. package/scripts/promise.js +0 -56
  95. package/scripts/screen.js +0 -82
  96. package/scripts/scrollbar.js +0 -293
  97. package/scripts/shortcut.js +0 -83
  98. package/scripts/socket.js +0 -184
  99. package/scripts/state.js +0 -87
  100. package/scripts/storage.js +0 -93
  101. package/scripts/store.js +0 -115
  102. package/scripts/svg.js +0 -380
  103. package/scripts/text.js +0 -116
  104. package/scripts/time.js +0 -43
  105. package/scripts/timer.js +0 -54
  106. package/scripts/tool.js +0 -73
  107. package/scripts/trigger.js +0 -57
  108. package/scripts/type.js +0 -76
  109. package/scripts/ui.js +0 -41
  110. package/scripts/window.js +0 -244
  111. package/styles/console.less +0 -95
  112. package/tests/setupJest.tsx +0 -4
  113. package/typings/.OLD/cordova.d.ts +0 -12
  114. package/typings/.OLD/layerpro.d.ts +0 -20
  115. package/typings/.OLD/menupro.d.ts +0 -20
  116. package/typings/dphelper.d.ts +0 -26
  117. package/typings/image.d.ts +0 -5
  118. package/typings/styles.d.ts +0 -23
  119. package/webpack.config.js +0 -249
@@ -1,13 +0,0 @@
1
-
2
-
3
- const generalConsts = ( props ) => {
4
-
5
- const general = {
6
- general: ""
7
- }
8
-
9
- return general
10
-
11
- }
12
-
13
- export default generalConsts
File without changes
File without changes
@@ -1,27 +0,0 @@
1
-
2
- import React from "react"
3
- import generalConsts from "../constants"
4
-
5
- import styles from "../tags.less"
6
-
7
- export const InpuDate = ( props ) => {
8
-
9
- const {
10
- generalConsts,
11
- type = props.type === "datetime-local" ? "datetime-local" : "date" || "date"
12
- } = props
13
-
14
- return (
15
-
16
- <label>
17
- <span>{ label }</span>
18
- <input type={ type } />
19
- </label>
20
-
21
- )
22
-
23
-
24
-
25
-
26
-
27
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,33 +0,0 @@
1
- require("./namespace.d.ts");
2
-
3
- class dphFoo extends HTMLElement {
4
- constructor() {
5
- super();
6
- }
7
-
8
- connectedCallback() {
9
- console.log('hello');
10
- this.style.color = "red";
11
- }
12
-
13
- disconnectedCallback() {
14
- console.log('bye');
15
- window.addEventListener('beforeunload', function (e) {
16
- e.preventDefault();
17
- e.returnValue = '';
18
- });
19
- }
20
-
21
- // connectedCallback() {}
22
- //
23
- // attributeChangedCallback(attrName, oldVal, newVal) {}
24
-
25
- }
26
-
27
- window.customElements.define( 'x-foo', dphFoo );
28
- customElements.whenDefined( 'x-foo' ).then( () => {
29
- // console.debug( '%cx-foo: %c' + 'defined' ,"color:gray","" );
30
- } );
31
-
32
- //console.log( document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "div") );
33
-
@@ -1,7 +0,0 @@
1
-
2
- // declare namespace JSX {
3
- // export interface IntrinsicElements {
4
- // 'x-foo': any;
5
- // }
6
- // }
7
-
package/init.js DELETED
@@ -1,87 +0,0 @@
1
-
2
- ( () => {
3
-
4
- ///////////////////////////////////////////////////////////////////////////////
5
- // CUSTOM ELEMENTS
6
-
7
- require("./elements/x-foo/define.js");
8
-
9
- ///////////////////////////////////////////////////////////////////////////////
10
- // DPH DECLARATIONS
11
-
12
- require( __dirname + '/typings/dphelper.d.ts' );
13
-
14
- ///////////////////////////////////////////////////////////////////////////////
15
- // CONFIG
16
-
17
- const pjson = require('./package.json');
18
- var e = e || event;
19
-
20
- ///////////////////////////////////////////////////////////////////////////////
21
- // CREATE FULL LIST FOR DPHELPER MANAGER
22
-
23
- dphelper._list = require('./data/list.json');
24
- dphelper._list.scripts = [];
25
- dphelper._list.version = pjson.version;
26
-
27
- ///////////////////////////////////////////////////////////////////////////////
28
- // CACHE
29
- const cache = {};
30
-
31
- ///////////////////////////////////////////////////////////////////////////////
32
- // API
33
-
34
- dphelper.api = {};
35
-
36
- ///////////////////////////////////////////////////////////////////////////////
37
- // INSTALL ON BODY
38
-
39
- const $$ = document.querySelector('html')
40
-
41
- if( !$( $$ ) ){
42
-
43
- console.error('You need the primary node tag on your app')
44
-
45
- }else{
46
-
47
- $$.dphelper = {
48
- test: ()=> console.log('test')
49
- }
50
-
51
- // setTimeout( async ()=> {
52
- // console.log( $( $$ ) )
53
- // $$.dphelper.test()
54
- // },2000)
55
-
56
- }
57
-
58
- ///////////////////////////////////////////////////////////////////////////////
59
- // LOAD ALL SCRIPT AUTOMATICALLY
60
-
61
- const importAll = ( cntx ) => {
62
- cntx.keys().forEach(
63
- ( key ) => (
64
- cache[ key ] = cntx( key )
65
- )
66
- );
67
- };
68
- var cntx = require.context( __dirname + '/scripts/', false , /\.js$/ );
69
- importAll( cntx );
70
-
71
- ///////////////////////////////////////////////////////////////////////////////
72
- // FIRST MESSAGE
73
-
74
- console.groupCollapsed( `%c${pjson.name} v${pjson.version}%c`,"color:orange","" );
75
- console.debug( `%c${pjson.name} v${pjson.version}%c by Dario Passariello started`,"color:orange","" );
76
- console.debug( `%cType ${pjson.name} in this console to see it`, "color:gray","" );
77
- console.debug( "%cFor help visit: " + pjson.repository.help, "color:gray","" );
78
- console.debug( 'name: %c' + pjson.name,"color:orange","" );
79
- console.debug( 'version: %c' + pjson.version,"color:orange","" );
80
- console.debug( 'description: %c' + pjson.description,"color:orange","" );
81
- console.debug( 'license: %c' + pjson.license,"color:orange","" );
82
- console.debug( 'repository: %c' + pjson.repository.url,"color:orange","" );
83
- console.debug( 'author: %c' + pjson.author.name,"color:orange","" );
84
- console.debug( 'email: %c' + pjson.author.email,"color:orange","" );
85
- console.groupEnd();
86
-
87
- })();
package/jest.config.js DELETED
@@ -1,81 +0,0 @@
1
- module.exports = {
2
-
3
- verbose: true,
4
-
5
- testEnvironmentOptions: { url: "http://localhost/" },
6
-
7
- automock: false,
8
-
9
- collectCoverage: true,
10
-
11
- "transform": {
12
- "\\.tsx$": "<rootDir>/node_modules/babel-jest"
13
- },
14
-
15
- setupFilesAfterEnv: [
16
- "./tests/setupJest.tsx"
17
- ],
18
-
19
- moduleNameMapper: {
20
- "\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|html)$": "<rootDir>/__mocks__/fileMock.js",
21
- "\\.(css|scss|svg)$": "identity-obj-proxy"
22
- },
23
-
24
- moduleFileExtensions: [
25
- "js",
26
- "jsx",
27
- "ts",
28
- "tsx"
29
- ],
30
-
31
- transformIgnorePatterns: [
32
- "/node_modules/",
33
- "/node_modules/(?!(nrg-common)/)"
34
- ],
35
-
36
- coveragePathIgnorePatterns: [
37
- "/node_modules/",
38
- "/node_modules/(?!(nrg-common)/)"
39
- ],
40
-
41
- modulePathIgnorePatterns: [
42
- "/node_modules/",
43
- "/node_modules/(?!(nrg-common)/)"
44
- ],
45
-
46
- unmockedModulePathPatterns: [
47
- "./node_modules/react/",
48
- "./node_modules/react-dom/"
49
- ],
50
-
51
- coverageReporters: [
52
- "json",
53
- "lcov",
54
- "text"
55
- ],
56
-
57
- snapshotSerializers: [
58
- "enzyme-to-json/serializer"
59
- ],
60
-
61
- // transformIgnorePatterns: [
62
- // "node_modules/enzyme"
63
- // ],
64
-
65
- testPathIgnorePatterns: [
66
- "/node_modules/",
67
- ],
68
-
69
- unmockedModulePathPatterns: [
70
- "react",
71
- "react-dom",
72
- "react-native",
73
- "react-addons-test-utils",
74
- "promise",
75
- "source-map",
76
- "enzyme"
77
- ]
78
-
79
- };
80
-
81
-
package/node/createTag.js DELETED
@@ -1,7 +0,0 @@
1
- const moment = require('moment');
2
- const execSync = require('child_process').execSync;
3
- const dateTime = moment().format('YYYYMMDDHHmmss');
4
- const pjson = require('../package.json');
5
-
6
- //https://stackoverflow.com/questions/55021363/how-to-pass-current-datetime-in-npm-script-for-git-commit-message-in-windows-and
7
- execSync(`git tag \"v${pjson.version}\" -am \"Modify content\" && git push --tags`, { stdio: [0, 1, 2]} );
package/node/gitDeploy.js DELETED
@@ -1,7 +0,0 @@
1
- const moment = require('moment');
2
- const execSync = require('child_process').execSync;
3
- const dateTime = moment().format('YYYYMMDDHHmmss');
4
- const pjson = require('../package.json');
5
-
6
- //https://stackoverflow.com/questions/55021363/how-to-pass-current-datetime-in-npm-script-for-git-commit-message-in-windows-and
7
- execSync(`cd .. && git add . && git commit -m \"ver. ${pjson.version} / ${dateTime}\" && git pull && git push --all`, { stdio: [0, 1, 2]} );
package/node/goLive.js DELETED
@@ -1,7 +0,0 @@
1
- const moment = require('moment');
2
- const execSync = require('child_process').execSync;
3
- const dateTime = moment().format('YYYYMMDDHHmmss');
4
- const pjson = require('../package.json');
5
-
6
- //https://stackoverflow.com/questions/55021363/how-to-pass-current-datetime-in-npm-script-for-git-commit-message-in-windows-and
7
- execSync(`cli-confirm \"Do you want go live?\" && npm version patch --force && cd.. && webpack --progress --color --mode production --config webpack.config.js && cd dist && npm publish`, { stdio: [0, 1, 2]} );
@@ -1,48 +0,0 @@
1
- /*!
2
- * dpHelper <https://github.com/passariello/dpHelper>
3
- * Copyright (c) 2021, Dario Passariello.
4
- * Licensed under the Apache-2.0 License.
5
- */
6
-
7
- /***********************************************************************/
8
-
9
- var description = {
10
- "name" : "Import",
11
- "description" : "Import files by type from folder",
12
- "version" : "0.0.1",
13
- "command" : "cormat",
14
- // "subCommand" : [
15
- // {
16
- // "name":"all",
17
- // "description":"Import all file by type from folder"
18
- // }
19
- // ],
20
- "example" : "dphelper.import.all( __dirname + '/scripts/', false , /\.js$/ )",
21
- "author" : "Dario Passariello",
22
- "active" : true
23
- };
24
-
25
- dphelper._list.scripts.push( description );
26
-
27
- /***********************************************************************/
28
-
29
- dphelper.import = {
30
-
31
- // all: ( path ='' , mode = false , extension ='/\.js$/' ) => {
32
-
33
- // // example: dphelper.import.all( __dirname + '/scripts/', false , /\.js$/ )
34
-
35
- // const importAll = ( cntx ) => {
36
- // cntx.keys().forEach(
37
- // ( key ) => (
38
- // cache[ key ] = cntx( key )
39
- // )
40
- // );
41
- // };
42
-
43
- // var cntx = require.context( path , mode , extension );
44
- // importAll( cntx );
45
-
46
- // }
47
-
48
- }
@@ -1,120 +0,0 @@
1
- /*!
2
- * dpHelper <https://github.com/passariello/dpHelper>
3
- * Copyright (c) 2021, Dario Passariello.
4
- * Licensed under the Apache-2.0 License.
5
- */
6
-
7
- /***********************************************************************/
8
-
9
- var description = {
10
- "name" : "BeforeUnLoad",
11
- "description" : "test",
12
- "version" : "0.0.1",
13
- "command" : "onBeforeUnLoad",
14
- "subCommand" : [],
15
- "example" : "",
16
- "author" : "Dario Passariello",
17
- "active" : true
18
- };
19
-
20
- dphelper._list.scripts.push( description );
21
-
22
- /***********************************************************************/
23
-
24
- dphelper.onBeforeUnLoad = () => {
25
-
26
- let is_dirty = false;
27
- let answer = null;
28
- let mex = "You have made some changes which you might want to save.";
29
- let loadOnce = false;
30
- let save_button = document.querySelector("#save_button");
31
-
32
- const beforeUnloadListener = ( event ) => {
33
- event.preventDefault();
34
- return mex;
35
- };
36
-
37
- const nameInput = document.querySelector("#name");
38
-
39
- if( nameInput ){
40
- nameInput.addEventListener( "input" , (event) => {
41
- if (event.target.value !== "") {
42
- addEventListener("beforeunload", beforeUnloadListener, { capture: true });
43
- } else {
44
- removeEventListener("beforeunload", beforeUnloadListener, { capture: true });
45
- }
46
- });
47
- }
48
-
49
- /****************************************************************************** */
50
-
51
- let handleEvent = function( event ){
52
-
53
- if( event.target.type === 'textarea' || event.target.type === 'input' ){
54
- if( is_dirty === false ){
55
- return is_dirty = true;
56
- }
57
- }
58
-
59
- };
60
-
61
- /****************************************************************************** */
62
-
63
- let TEST = function (){
64
- // CHANGE ON KEY
65
- document.body.addEventListener( "keyup" , handleEvent );
66
- }();
67
-
68
- /****************************************************************************** */
69
-
70
- // CHANGE ON ASIDE CLICK
71
- if( loadOnce === false ){
72
- document.body.addEventListener( "click" , function( event ){
73
-
74
- if( event.target.tagName === 'IMG'){
75
-
76
- if( is_dirty === true ) {
77
-
78
- // if the user navigates away from this page via an anchor link,
79
- // popup a new boxy confirmation.
80
- answer = confirm( mex );
81
- if ( answer === true ) {
82
- return is_dirty = false;
83
- }else{
84
- event.preventDefault();
85
- }
86
- }
87
- }
88
-
89
- });
90
- loadOnce = true;
91
- }
92
-
93
- /****************************************************************************** */
94
-
95
- addEventListener('popstate', function(event) {
96
-
97
- if( is_dirty === true ){
98
- answer = confirm( mex );
99
- if ( answer === true ) {
100
- return is_dirty = false;
101
- } else {
102
- event.stopImmediatePropagation();
103
- event.preventDefault();
104
- return mex;
105
- }
106
- }
107
-
108
- });
109
-
110
- /****************************************************************************** */
111
-
112
- window.onbeforeunload = function( event ) {
113
- if( ( is_dirty === true ) && ( answer === null ) ){
114
- event.preventDefault();
115
- return event.returnValue = mex;
116
- //return mex
117
- }
118
- };
119
-
120
- };
@@ -1,53 +0,0 @@
1
- /*!
2
- * dpHelper <https://github.com/passariello/dpHelper>
3
- * Copyright (c) 2021, Dario Passariello.
4
- * Licensed under the Apache-2.0 License.
5
- */
6
-
7
- /***********************************************************************/
8
-
9
- var description = {
10
- "name" : "Purge From Memory",
11
- "description" : "test",
12
- "version" : "0.0.1",
13
- "command" : "purge",
14
- "subCommand" : [],
15
- "example" : "",
16
- "author" : "Dario Passariello",
17
- "active" : true
18
- };
19
-
20
- dphelper._list.scripts.push( description );
21
-
22
- /***********************************************************************/
23
-
24
- dphelper.purge = ( d = body, time = 10000 ) => {
25
-
26
- setTimeout(() => {
27
- if( d === undefined ) return null;
28
-
29
- let a = d.attributes, i, l, n;
30
-
31
- if (a) {
32
- l = a.length;
33
- for( i = 0; i < l; i += 1 ) {
34
- n = a[i].name;
35
- if( typeof d[n] === 'function' ) { d[n] = null; }
36
- if( typeof d[n] === 'undefined' ) { d[n] = null; }
37
- }
38
-
39
- }
40
-
41
- a = d.childNodes;
42
-
43
- if (a) {
44
- l = a.length;
45
- for( i = 0; i < l; i += 1 ) {
46
- Purge( d.childNodes[i] );
47
- }
48
- }
49
- }, time );
50
-
51
- };
52
-
53
- // purge()
@@ -1,27 +0,0 @@
1
- /*!
2
- * dpHelper <https://github.com/passariello/dpHelper>
3
- * Copyright (c) 2021, Dario Passariello.
4
- * Licensed under the Apache-2.0 License.
5
- */
6
-
7
- /***********************************************************************/
8
-
9
- var description = {
10
- "name" : "String",
11
- "description" : "test",
12
- "version" : "0.0.1",
13
- "command" : "parseBool",
14
- "subCommand" : [],
15
- "example" : "",
16
- "author" : "Dario Passariello",
17
- "active" : true
18
- };
19
-
20
- dphelper._list.scripts.push( description );
21
-
22
- /***********************************************************************/
23
-
24
- dphelper.parseBool = ( val ) => {
25
- if ( !val || val.length == null ) return true;
26
- return val != 0 ? true : false;
27
- };
package/scripts/anchor.js DELETED
@@ -1,73 +0,0 @@
1
- /*!
2
- dpHelper
3
- Copyright (c) 2021 Dario Passariello <dariopassariello@gmail.com>
4
- Licensed under the Apache-2.0, see
5
- https://dario.passariello.ca
6
- */
7
-
8
- /***********************************************************************/
9
-
10
- var description = {
11
- "name" : "Anchor",
12
- "type" : "function",
13
- "version" : "0.0.1",
14
- "command" : "anchor",
15
- "example" : "",
16
- "author" : "Dario Passariello",
17
- "creationDate" : "20110101",
18
- "lastMod" : "20110101",
19
- "active" : true,
20
- "description" : `
21
- This tools allows you to convert all links in an element to 'onclick'.
22
- It allows you to avoid the message with the path relative to the requested address
23
- and it is very useful when you work with SPA but you want to keep even older browsers.`,
24
- "subCommand" : [
25
- {
26
- "name":"toOnClick",
27
- "version" : "0.0.1",
28
- "example" : "dphelper.anchor.toOnClick('nav') or ('.foo') or ('#foo')",
29
- "type" : "function",
30
- "active": true,
31
- "description":"test",
32
- "subCommand" : []
33
- }
34
- ],
35
- };
36
-
37
- dphelper._list.scripts.push( description );
38
-
39
- /***********************************************************************/
40
-
41
- dphelper.anchor ={
42
-
43
- toOnClick: ( el ) => {
44
-
45
- $( el + ' a' ).each( function( index ) {
46
- let elem = $( this );
47
- let href = elem.attr( 'href' );
48
-
49
- if( href ){
50
- elem
51
- .on( 'mouseup', function(){
52
- Loader( 'body' , null );
53
- })
54
- .css('cursor','pointer')
55
- .addClass( dphelper.pathRail()[3].replace(/\//g, '') )
56
- .removeAttr( 'href' )
57
- .on( 'click', function(){
58
- dphelper.browser.href( href );
59
- dphelper.browser.push( '', '', href );
60
- });
61
- }
62
- });
63
-
64
- }
65
-
66
- };
67
-
68
- Object.defineProperty( dphelper, 'anchor', {
69
- writable: false,
70
- configurable: false
71
- });
72
-
73
- //console.log( Object.getOwnPropertyDescriptor( dphelper, 'socket' ) )