ember-inspector 4.13.1 → 4.15.0
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/.ember-cli +1 -9
- package/.github/workflows/build.yml +33 -112
- package/.github/workflows/plan-release.yml +26 -48
- package/.github/workflows/publish.yml +129 -31
- package/.prettierignore +2 -13
- package/.prettierrc.js +10 -4
- package/.release-plan.json +13 -4
- package/.stylelintignore +8 -0
- package/.stylelintrc.js +10 -1
- package/.template-lintrc.js +2 -1
- package/.tool-versions +2 -2
- package/.watchmanconfig +1 -1
- package/CHANGELOG.md +137 -0
- package/DEVELOPMENT.md +50 -0
- package/PRIVACY.md +3 -0
- package/README.md +14 -50
- package/RELEASE.md +15 -50
- package/app/components/app-picker.hbs +2 -2
- package/app/components/component-tree-item.hbs +14 -14
- package/app/components/component-tree-toolbar.hbs +17 -3
- package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
- package/app/components/deprecation-item-source.hbs +1 -1
- package/app/components/deprecation-item.hbs +1 -1
- package/app/components/deprecations-toolbar.hbs +1 -1
- package/app/components/item-types.hbs +7 -7
- package/app/components/list-cell.hbs +3 -3
- package/app/components/list-content.hbs +4 -3
- package/app/components/list-content.ts +96 -0
- package/app/components/list.hbs +3 -3
- package/app/components/list.js +7 -7
- package/app/components/model-types-toolbar.hbs +3 -3
- package/app/components/object-inspector/component-parents.hbs +33 -0
- package/app/components/object-inspector/component-parents.js +43 -0
- package/app/components/object-inspector/dependent-keys.hbs +4 -4
- package/app/components/object-inspector/errors.hbs +4 -4
- package/app/components/object-inspector/properties-all.hbs +1 -1
- package/app/components/object-inspector/properties-base.js +2 -0
- package/app/components/object-inspector/properties-grouped.hbs +5 -5
- package/app/components/object-inspector/property.hbs +36 -34
- package/app/components/object-inspector/property.ts +34 -17
- package/app/components/object-inspector/sort-properties.js +12 -4
- package/app/components/object-inspector/toggle.hbs +9 -0
- package/app/components/object-inspector/toggle.js +6 -0
- package/app/components/object-inspector.hbs +11 -9
- package/app/components/object-inspector.js +1 -1
- package/app/components/promise-item.hbs +11 -11
- package/app/components/promise-item.js +8 -6
- package/app/components/promise-tree-toolbar.hbs +5 -5
- package/app/components/records-toolbar.hbs +2 -2
- package/app/components/render-item.hbs +4 -4
- package/app/components/render-item.ts +12 -9
- package/app/components/render-tree-toolbar.hbs +1 -1
- package/app/components/route-cell-name.hbs +1 -1
- package/app/components/route-cell-name.js +3 -2
- package/app/components/route-tree-toolbar.hbs +2 -2
- package/app/components/scroll-container.js +2 -0
- package/app/components/side-nav.hbs +5 -5
- package/app/components/side-nav.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.hbs +4 -4
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.js +3 -1
- package/{lib/ui/addon/components → app/components/ui}/empty-message.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/error-page.hbs +3 -3
- package/{lib/ui/addon/components → app/components/ui}/resizable-column.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-clear-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-reload-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.hbs +2 -2
- package/app/computed/{debounce.js → debounce.ts} +7 -5
- package/app/config/environment.d.ts +5 -2
- package/app/controllers/app-config.js +1 -0
- package/app/controllers/application.js +36 -71
- package/app/controllers/component-tree.js +26 -7
- package/app/controllers/container-type.js +2 -1
- package/app/controllers/container-types/{index.js → index.ts} +5 -2
- package/app/controllers/container-types.js +3 -6
- package/app/controllers/deprecations.js +16 -11
- package/app/controllers/libraries.js +1 -0
- package/app/controllers/model-types.js +7 -13
- package/app/controllers/promise-tree.ts +149 -0
- package/app/controllers/records.js +18 -26
- package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
- package/app/controllers/route-tree.js +7 -5
- package/app/helpers/build-style.js +1 -1
- package/app/index.html +1 -19
- package/app/initializers/setup.js +1 -1
- package/app/libs/promise-assembler.ts +249 -0
- package/app/libs/resizable-columns.js +10 -10
- package/app/models/{promise.js → promise.ts} +72 -69
- package/app/{router.js → router.ts} +1 -1
- package/app/routes/app-detected.js +3 -5
- package/app/routes/application.js +9 -13
- package/app/routes/deprecations.js +7 -16
- package/app/routes/launch.js +2 -1
- package/app/routes/libraries.js +2 -1
- package/app/routes/model-type.js +2 -3
- package/app/routes/model-types.ts +57 -0
- package/app/routes/promise-tree.ts +63 -0
- package/app/routes/records.ts +78 -0
- package/app/routes/render-tree.ts +93 -0
- package/app/routes/route-tree.js +0 -1
- package/app/routes/{tab.js → tab.ts} +9 -2
- package/app/routes/whats-new.js +6 -4
- package/app/services/adapters/{basic.js → basic.ts} +36 -30
- package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
- package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
- package/app/services/adapters/{web-extension.js → web-extension.ts} +46 -46
- package/app/services/adapters/websocket.ts +40 -0
- package/app/services/layout.ts +124 -0
- package/app/services/port.ts +195 -0
- package/app/services/storage/{local.js → local.ts} +7 -20
- package/app/services/storage/{memory.js → memory.ts} +6 -21
- package/app/services/{storage.js → storage.ts} +25 -23
- package/app/styles/app.scss +1 -0
- package/app/styles/base.scss +6 -2
- package/app/styles/colors.scss +33 -31
- package/app/styles/component_tree.scss +56 -51
- package/app/styles/dropdown.scss +2 -2
- package/app/styles/ember-table.scss +3 -3
- package/app/styles/mixin.scss +26 -26
- package/app/styles/object_inspector.scss +30 -21
- package/{lib/ui/addon/styles → app/styles/ui}/_disclosure-triangle.scss +3 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_drag-handle.scss +7 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_empty-message.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_error-page.scss +8 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_list.scss +46 -45
- package/{lib/ui/addon/styles → app/styles/ui}/_nav.scss +29 -27
- package/app/styles/ui/_object-inspector-toggle.scss +4 -0
- package/{lib/ui/addon/styles → app/styles/ui}/_pill.scss +4 -4
- package/{lib/ui/addon/styles → app/styles/ui}/_send-to-console.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_split.scss +26 -20
- package/app/styles/ui/_ui.scss +13 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_checkbox.scss +5 -5
- package/app/styles/ui/toolbar/_icon-button.scss +80 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_index.scss +6 -5
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_radio.scss +10 -10
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_search.scss +5 -3
- package/app/styles/utils.scss +408 -122
- package/app/templates/application.hbs +22 -19
- package/app/templates/component-tree.hbs +4 -1
- package/app/templates/deprecations.hbs +2 -3
- package/app/templates/info.hbs +10 -10
- package/app/templates/promise-tree.hbs +1 -1
- package/app/templates/render-tree.hbs +1 -1
- package/app/templates/route-tree.hbs +1 -1
- package/app/utils/escape-reg-exp.ts +3 -2
- package/app/utils/nullish.ts +7 -0
- package/app/utils/parse-text.ts +4 -5
- package/app/utils/truncate.js +0 -1
- package/config/ember-cli-update.json +5 -3
- package/config/ember-try.js +117 -72
- package/config/environment.js +1 -1
- package/config/optional-features.json +2 -1
- package/dist/bookmarklet/load_inspector.js +31 -11
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +560 -613
- package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/bookmarklet/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/bookmarklet/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/bookmarklet/panes-3-16-0/basic-B1dkgN3d.js +149 -0
- package/dist/bookmarklet/panes-3-16-0/basic-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/ember.js +166 -0
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/bookmarklet/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/index.html +4 -23
- package/dist/bookmarklet/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/bookmarklet/panes-3-16-0/main.js +7669 -0
- package/dist/bookmarklet/panes-3-16-0/port.js +108 -0
- package/dist/bookmarklet/panes-3-16-0/profile-node.js +60 -0
- package/dist/bookmarklet/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/bookmarklet/panes-3-16-0/runloop-6_0lpzTA.js +1138 -0
- package/dist/bookmarklet/panes-3-16-0/start-inspector-BIYQArZn.js +334 -0
- package/dist/bookmarklet/panes-3-16-0/type-check.js +119 -0
- package/dist/bookmarklet/panes-3-16-0/version.js +90 -0
- package/dist/bookmarklet/panes-3-16-0/versions.js +4 -0
- package/dist/bookmarklet/panes-3-16-0/web-extension-OWnXJ_XK.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-debug.js +10 -0
- package/dist/chrome/background.js +26 -21
- package/dist/chrome/boot.js +1 -1
- package/dist/chrome/content-script.js +12 -11
- package/dist/chrome/devtools.js +12 -3
- package/dist/chrome/manifest.json +4 -2
- package/dist/chrome/options.js +17 -12
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +560 -613
- package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/chrome/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/chrome/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/chrome/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/chrome/panes-3-16-0/basic-B1dkgN3d.js +149 -0
- package/dist/chrome/panes-3-16-0/basic-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/chrome/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/ember.js +166 -0
- package/dist/chrome/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/chrome/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/chrome/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/chrome/panes-3-16-0/firefox-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/index.html +4 -23
- package/dist/chrome/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/chrome/panes-3-16-0/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/chrome/panes-3-16-0/main.js +7669 -0
- package/dist/chrome/panes-3-16-0/port.js +108 -0
- package/dist/chrome/panes-3-16-0/profile-node.js +60 -0
- package/dist/chrome/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/chrome/panes-3-16-0/runloop-6_0lpzTA.js +1138 -0
- package/dist/chrome/panes-3-16-0/start-inspector-BIYQArZn.js +334 -0
- package/dist/chrome/panes-3-16-0/type-check.js +119 -0
- package/dist/chrome/panes-3-16-0/version.js +90 -0
- package/dist/chrome/panes-3-16-0/versions.js +4 -0
- package/dist/chrome/panes-3-16-0/web-extension-OWnXJ_XK.js +144 -0
- package/dist/chrome/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/chrome/panes-3-16-0/websocket-debug.js +10 -0
- package/dist/chrome/scripts/in-page-script.js +19 -13
- package/dist/firefox/background.js +26 -21
- package/dist/firefox/boot.js +1 -1
- package/dist/firefox/content-script.js +12 -11
- package/dist/firefox/devtools.js +12 -3
- package/dist/firefox/manifest.json +4 -2
- package/dist/firefox/options.js +17 -12
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +560 -613
- package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/firefox/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/firefox/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/firefox/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/firefox/panes-3-16-0/basic-B1dkgN3d.js +149 -0
- package/dist/firefox/panes-3-16-0/basic-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/firefox/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/ember.js +166 -0
- package/dist/firefox/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/firefox/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/firefox/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/firefox/panes-3-16-0/firefox-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/index.html +4 -23
- package/dist/firefox/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/firefox/panes-3-16-0/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/firefox/panes-3-16-0/main.js +7669 -0
- package/dist/firefox/panes-3-16-0/port.js +108 -0
- package/dist/firefox/panes-3-16-0/profile-node.js +60 -0
- package/dist/firefox/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/firefox/panes-3-16-0/runloop-6_0lpzTA.js +1138 -0
- package/dist/firefox/panes-3-16-0/start-inspector-BIYQArZn.js +334 -0
- package/dist/firefox/panes-3-16-0/type-check.js +119 -0
- package/dist/firefox/panes-3-16-0/version.js +90 -0
- package/dist/firefox/panes-3-16-0/versions.js +4 -0
- package/dist/firefox/panes-3-16-0/web-extension-OWnXJ_XK.js +144 -0
- package/dist/firefox/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/firefox/panes-3-16-0/websocket-debug.js +10 -0
- package/dist/firefox/scripts/in-page-script.js +19 -13
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/websocket/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/websocket/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +997 -156
- package/dist/websocket/assets/ember-inspector.js +560 -613
- package/dist/websocket/assets/svg/ellipsis.svg +3 -3
- package/dist/websocket/assets/svg/focus-point-round.svg +9 -0
- package/dist/websocket/assets/svg/nav-bug.svg +1 -1
- package/dist/websocket/assets/svg/nav-components.svg +2 -2
- package/dist/websocket/assets/svg/nav-container.svg +1 -1
- package/dist/websocket/assets/svg/nav-data.svg +1 -1
- package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
- package/dist/websocket/assets/svg/nav-info.svg +3 -3
- package/dist/websocket/assets/svg/nav-promises.svg +2 -2
- package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
- package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
- package/dist/websocket/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/websocket/assets/vendor.css +4 -841
- package/dist/websocket/assets/vendor.js +4277 -5152
- package/dist/websocket/base-object-HAEdWjmg.js +59 -0
- package/dist/websocket/basic-B1dkgN3d.js +149 -0
- package/dist/websocket/basic-debug.js +10 -0
- package/dist/websocket/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/websocket/bookmarklet-debug.js +10 -0
- package/dist/websocket/chrome-P6FSEUf1.js +10 -0
- package/dist/websocket/chrome-debug.js +10 -0
- package/dist/websocket/ember.js +166 -0
- package/dist/websocket/ember_debug.js +7 -11018
- package/dist/websocket/evented-BCTya3yE.js +62 -0
- package/dist/websocket/firefox-8F84zphP.js +30 -0
- package/dist/websocket/firefox-debug.js +10 -0
- package/dist/websocket/index.html +4 -23
- package/dist/websocket/internals-CRmXMEzb.js +12 -0
- package/dist/websocket/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/websocket/main.js +7669 -0
- package/dist/websocket/port.js +108 -0
- package/dist/websocket/profile-node.js +60 -0
- package/dist/websocket/promise-assembler.js +218 -0
- package/dist/websocket/runloop-6_0lpzTA.js +1138 -0
- package/dist/websocket/start-inspector-BIYQArZn.js +334 -0
- package/dist/websocket/type-check.js +119 -0
- package/dist/websocket/version.js +90 -0
- package/dist/websocket/versions.js +4 -0
- package/dist/websocket/web-extension-OWnXJ_XK.js +144 -0
- package/dist/websocket/websocket-BSUvUqER.js +58 -0
- package/dist/websocket/websocket-debug.js +10 -0
- package/ember-cli-build.js +31 -140
- package/ember_debug/adapters/basic.js +10 -29
- package/ember_debug/adapters/bookmarklet.js +1 -0
- package/ember_debug/adapters/firefox.js +3 -3
- package/ember_debug/adapters/web-extension.js +6 -5
- package/ember_debug/adapters/websocket.js +2 -2
- package/ember_debug/babel.config.cjs +11 -0
- package/ember_debug/container-debug.js +1 -1
- package/ember_debug/data-debug.js +7 -8
- package/ember_debug/debug-port.js +1 -1
- package/ember_debug/deprecation-debug.js +14 -14
- package/ember_debug/entrypoints/basic-debug.js +10 -0
- package/ember_debug/entrypoints/bookmarklet-debug.js +10 -0
- package/ember_debug/entrypoints/chrome-debug.js +10 -0
- package/ember_debug/entrypoints/firefox-debug.js +10 -0
- package/ember_debug/entrypoints/websocket-debug.js +10 -0
- package/ember_debug/general-debug.js +4 -4
- package/ember_debug/lib/boot-ember-inspector.js +9 -0
- package/ember_debug/lib/get-applications.js +28 -0
- package/ember_debug/lib/load-ember-debug-in-webpage.js +32 -0
- package/ember_debug/lib/send-apps.js +14 -0
- package/ember_debug/lib/send-version-miss.js +38 -0
- package/ember_debug/lib/setup-instance-initializer.js +17 -0
- package/ember_debug/lib/start-inspector.js +195 -0
- package/ember_debug/lib/version-test.js +73 -0
- package/ember_debug/lib/versions.js +3 -0
- package/ember_debug/libs/capture-render-tree.js +1 -2
- package/ember_debug/libs/promise-assembler.js +5 -4
- package/ember_debug/libs/render-tree.js +37 -44
- package/ember_debug/libs/source-map.js +7 -6
- package/ember_debug/libs/view-inspection.js +25 -17
- package/ember_debug/main.js +18 -21
- package/ember_debug/models/profile-manager.js +6 -6
- package/ember_debug/models/profile-node.js +1 -1
- package/ember_debug/models/promise.js +2 -2
- package/ember_debug/object-inspector.js +74 -65
- package/ember_debug/package.json +27 -0
- package/ember_debug/port.js +5 -4
- package/ember_debug/promise-debug.js +5 -5
- package/ember_debug/render-debug.js +5 -5
- package/ember_debug/rollup.config.js +24 -0
- package/ember_debug/route-debug.js +10 -9
- package/ember_debug/services/session.js +2 -2
- package/ember_debug/utils/classify.js +1 -1
- package/ember_debug/utils/ember/object/internals.js +1 -11
- package/ember_debug/utils/ember/own-runloop.js +1 -1
- package/ember_debug/utils/ember/runloop.js +7 -10
- package/ember_debug/utils/ember-object-names.js +11 -9
- package/ember_debug/utils/ember.js +222 -40
- package/ember_debug/utils/evented.js +1 -1
- package/ember_debug/utils/get-object-name.js +3 -3
- package/ember_debug/utils/type-check.js +9 -5
- package/ember_debug/view-debug.js +12 -6
- package/eslint.config.mjs +173 -0
- package/gulpfile.js +1 -1
- package/package.json +97 -95
- package/patches/ember-cli-inject-live-reload.patch +16 -0
- package/pnpm-workspace.yaml +3 -0
- package/public/assets/svg/ellipsis.svg +3 -3
- package/public/assets/svg/focus-point-round.svg +9 -0
- package/public/assets/svg/nav-bug.svg +1 -1
- package/public/assets/svg/nav-components.svg +2 -2
- package/public/assets/svg/nav-container.svg +1 -1
- package/public/assets/svg/nav-data.svg +1 -1
- package/public/assets/svg/nav-deprecations.svg +3 -3
- package/public/assets/svg/nav-info.svg +3 -3
- package/public/assets/svg/nav-promises.svg +2 -2
- package/public/assets/svg/nav-render-performance.svg +2 -2
- package/public/assets/svg/nav-route-tree.svg +7 -7
- package/public/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/scripts/download-panes.js +1 -1
- package/skeletons/bookmarklet/load_inspector.js +31 -11
- package/skeletons/web-extension/background.js +26 -21
- package/skeletons/web-extension/boot.js +1 -1
- package/skeletons/web-extension/content-script.js +12 -11
- package/skeletons/web-extension/devtools.js +12 -3
- package/skeletons/web-extension/manifest.json +3 -1
- package/skeletons/web-extension/options.js +17 -12
- package/skeletons/web-extension/scripts/in-page-script.js +19 -13
- package/testem.js +0 -1
- package/tests/acceptance/app-picker-test.js +4 -4
- package/tests/acceptance/component-tree-test.js +96 -57
- package/tests/acceptance/container-test.js +0 -2
- package/tests/acceptance/data-test.js +14 -11
- package/tests/acceptance/deprecation-test.js +8 -12
- package/tests/acceptance/info-test.js +2 -2
- package/tests/acceptance/object-inspector-test.js +62 -110
- package/tests/acceptance/promise-test.js +1 -11
- package/tests/acceptance/render-tree-test.js +2 -2
- package/tests/acceptance/route-tree-test.js +12 -14
- package/tests/acceptance/whats-new-test.js +11 -11
- package/tests/ember_debug/container-debug-test.js +5 -14
- package/tests/ember_debug/deprecation-debug-test.js +15 -6
- package/tests/ember_debug/ember-data-test.js +7 -1
- package/tests/ember_debug/ember-debug-test.js +13 -13
- package/tests/ember_debug/object-inspector-test.js +115 -50
- package/tests/ember_debug/profile-manager-test.js +153 -170
- package/tests/ember_debug/profile-node-test.js +9 -5
- package/tests/ember_debug/promise-assembler-test.js +18 -10
- package/tests/ember_debug/promise-debug-test.js +19 -15
- package/tests/ember_debug/render-debug-test.js +8 -1
- package/tests/ember_debug/route-debug-test.js +14 -8
- package/tests/ember_debug/view-debug-test.js +267 -183
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +22 -2
- package/tests/index.html +1 -2
- package/tests/integration/injection-test.js +37 -81
- package/tests/test-adapter.js +15 -15
- package/tests/test-helper.js +6 -4
- package/tests/unit/check-current-route-test.js +0 -4
- package/tests/unit/resizable-columns-test.js +53 -51
- package/tests/unit/utils/parse-text-test.js +3 -3
- package/tests/unit/utils/search-match-test.js +5 -5
- package/tests/unit/utils/type-check-test.js +27 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/app/components/list-content.js +0 -130
- package/app/controllers/promise-tree.js +0 -130
- package/app/libs/promise-assembler.js +0 -169
- package/app/routes/model-types.js +0 -47
- package/app/routes/promise-tree.js +0 -48
- package/app/routes/records.js +0 -55
- package/app/routes/render-tree.js +0 -66
- package/app/services/adapters/websocket.js +0 -31
- package/app/services/layout.js +0 -39
- package/app/services/port.js +0 -90
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/websocket/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/websocket/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/websocket/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff2 +0 -0
- package/ember_debug/.eslintrc.js +0 -13
- package/ember_debug/utils/ember/debug.js +0 -20
- package/ember_debug/utils/ember/instrumentation.js +0 -11
- package/ember_debug/utils/ember/loader.js +0 -22
- package/ember_debug/utils/rsvp.js +0 -20
- package/ember_debug/vendor/loader.js +0 -54
- package/ember_debug/vendor/startup-wrapper.js +0 -399
- package/lib/ui/addon/styles/_object-inspector-toggle.scss +0 -12
- package/lib/ui/addon/styles/addon.scss +0 -13
- package/lib/ui/addon/styles/toolbar/_icon-button.scss +0 -61
- package/lib/ui/app/components/ui/disclosure-triangle.js +0 -1
- package/lib/ui/app/components/ui/disclosure.js +0 -1
- package/lib/ui/app/components/ui/drag-handle.js +0 -1
- package/lib/ui/app/components/ui/draggable-column.js +0 -1
- package/lib/ui/app/components/ui/empty-message.js +0 -1
- package/lib/ui/app/components/ui/error-page.js +0 -1
- package/lib/ui/app/components/ui/open-links-in-new-window.js +0 -1
- package/lib/ui/app/components/ui/resizable-column.js +0 -1
- package/lib/ui/app/components/ui/send-to-console.js +0 -1
- package/lib/ui/app/components/ui/toolbar-clear-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-divider.js +0 -1
- package/lib/ui/app/components/ui/toolbar-reload-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-search-field.js +0 -1
- package/lib/ui/app/components/ui/warning-message.js +0 -1
- package/lib/ui/index.js +0 -34
- package/lib/ui/package.json +0 -13
- package/public/assets/fonts/Inter-Bold.woff +0 -0
- package/public/assets/fonts/Inter-Bold.woff2 +0 -0
- package/public/assets/fonts/Inter-Regular.woff +0 -0
- package/public/assets/fonts/Inter-Regular.woff2 +0 -0
- package/tests/helpers/trigger-port.js +0 -6
- /package/app/{app.js → app.ts} +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure-triangle.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/resizable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/send-to-console.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-divider.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/warning-message.hbs +0 -0
- /package/app/controllers/{info.js → info.ts} +0 -0
- /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_goto-source.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_warning.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_divider.scss +0 -0
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
/* eslint-disable ember/avoid-leaking-state-in-ember-objects, ember/no-new-mixins */
|
|
1
|
+
/* eslint-disable ember/avoid-leaking-state-in-ember-objects, ember/no-classic-classes, ember/no-new-mixins, ember/no-runloop */
|
|
2
2
|
import { find, visit } from '@ember/test-helpers';
|
|
3
3
|
import Mixin from '@ember/object/mixin';
|
|
4
|
+
// eslint-disable-next-line ember/no-classic-components
|
|
4
5
|
import Component from '@ember/component';
|
|
5
6
|
import { inspect } from '@ember/debug';
|
|
6
7
|
import { run } from '@ember/runloop';
|
|
7
8
|
import { guidFor } from '@ember/object/internals';
|
|
9
|
+
// eslint-disable-next-line ember/no-computed-properties-in-native-classes
|
|
8
10
|
import EmberObject, { computed } from '@ember/object';
|
|
9
11
|
import MutableArray from '@ember/array/mutable';
|
|
10
12
|
import ArrayProxy from '@ember/array/proxy';
|
|
11
13
|
import ObjectProxy from '@ember/object/proxy';
|
|
12
|
-
import Service from '@ember/service';
|
|
14
|
+
import Service, { inject as service } from '@ember/service';
|
|
13
15
|
import { VERSION } from '@ember/version';
|
|
14
16
|
import { tracked } from '@glimmer/tracking';
|
|
15
17
|
import { module, skip, test } from 'qunit';
|
|
16
18
|
import { hbs } from 'ember-cli-htmlbars';
|
|
17
19
|
import require from 'require';
|
|
18
20
|
import hasEmberVersion from '@ember/test-helpers/has-ember-version';
|
|
19
|
-
import { compareVersion } from 'ember-debug/
|
|
20
|
-
import EmberDebug from 'ember-debug/main';
|
|
21
|
+
import { compareVersion } from 'ember-debug/version';
|
|
21
22
|
import setupEmberDebugTest from '../helpers/setup-ember-debug-test';
|
|
22
23
|
import EmberRoute from '@ember/routing/route';
|
|
23
24
|
import Controller from '@ember/controller';
|
|
25
|
+
import { setOwner } from '@ember/application';
|
|
26
|
+
|
|
27
|
+
import EmberDebugImport from 'ember-debug/main';
|
|
28
|
+
let EmberDebug = EmberDebugImport;
|
|
24
29
|
|
|
25
30
|
const GlimmerComponent = (function () {
|
|
26
31
|
try {
|
|
27
32
|
return require('@glimmer/component').default;
|
|
28
|
-
} catch
|
|
33
|
+
} catch {
|
|
29
34
|
// ignore, return undefined
|
|
30
35
|
}
|
|
31
36
|
})();
|
|
@@ -74,6 +79,10 @@ async function inspectObject(object) {
|
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
module('Ember Debug - Object Inspector', function (hooks) {
|
|
82
|
+
hooks.before(async function () {
|
|
83
|
+
EmberDebug = (await EmberDebugImport).default;
|
|
84
|
+
});
|
|
85
|
+
|
|
77
86
|
setupEmberDebugTest(hooks, {
|
|
78
87
|
routes() {
|
|
79
88
|
this.route('simple');
|
|
@@ -89,8 +98,8 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
89
98
|
'template:application',
|
|
90
99
|
hbs(
|
|
91
100
|
'<div class="application" style="line-height: normal;">{{outlet}}</div>',
|
|
92
|
-
{ moduleName: 'my-app/templates/application.hbs' }
|
|
93
|
-
)
|
|
101
|
+
{ moduleName: 'my-app/templates/application.hbs' },
|
|
102
|
+
),
|
|
94
103
|
);
|
|
95
104
|
this.owner.register('route:simple', EmberRoute);
|
|
96
105
|
this.owner.register('component:x-simple', Component);
|
|
@@ -99,7 +108,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
99
108
|
hbs`
|
|
100
109
|
{{! template-lint-disable}}
|
|
101
110
|
Simple <Input class="simple-input"/> {{x-simple class="simple-view"}}
|
|
102
|
-
|
|
111
|
+
`,
|
|
103
112
|
);
|
|
104
113
|
|
|
105
114
|
objectInspector = EmberDebug.objectInspector;
|
|
@@ -138,7 +147,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
138
147
|
assert.strictEqual(
|
|
139
148
|
firstDetail.properties.length,
|
|
140
149
|
4,
|
|
141
|
-
'methods are included'
|
|
150
|
+
'methods are included',
|
|
142
151
|
);
|
|
143
152
|
|
|
144
153
|
let idProperty = firstDetail.properties[0];
|
|
@@ -185,7 +194,6 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
185
194
|
}
|
|
186
195
|
|
|
187
196
|
class Parent {
|
|
188
|
-
// eslint-disable-next-line constructor-super
|
|
189
197
|
constructor(param) {
|
|
190
198
|
Object.assign(this, param);
|
|
191
199
|
}
|
|
@@ -236,7 +244,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
236
244
|
assert.strictEqual(
|
|
237
245
|
firstDetail.properties.length,
|
|
238
246
|
6,
|
|
239
|
-
'methods are included'
|
|
247
|
+
'methods are included',
|
|
240
248
|
);
|
|
241
249
|
|
|
242
250
|
let objectWithTrackedProperty = firstDetail.properties[0];
|
|
@@ -370,7 +378,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
370
378
|
expectedMixinNames.forEach((expectedMixinName, i) => {
|
|
371
379
|
assert.ok(
|
|
372
380
|
mixinNames[i].includes(expectedMixinName),
|
|
373
|
-
`${mixinNames[i]} : ${expectedMixinName}
|
|
381
|
+
`${mixinNames[i]} : ${expectedMixinName}`,
|
|
374
382
|
);
|
|
375
383
|
});
|
|
376
384
|
});
|
|
@@ -463,7 +471,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
463
471
|
assert.strictEqual(
|
|
464
472
|
details[0].properties.length,
|
|
465
473
|
1,
|
|
466
|
-
'should not show mixin properties'
|
|
474
|
+
'should not show mixin properties',
|
|
467
475
|
);
|
|
468
476
|
assert.strictEqual(details[0].properties[0].name, 'ownProp');
|
|
469
477
|
|
|
@@ -471,22 +479,22 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
471
479
|
assert.strictEqual(
|
|
472
480
|
details[2].properties.length,
|
|
473
481
|
1,
|
|
474
|
-
'should only show own mixin properties'
|
|
482
|
+
'should only show own mixin properties',
|
|
475
483
|
);
|
|
476
484
|
assert.strictEqual(
|
|
477
485
|
details[2].properties[0].value.inspect,
|
|
478
|
-
inspect('custom1')
|
|
486
|
+
inspect('custom1'),
|
|
479
487
|
);
|
|
480
488
|
|
|
481
489
|
assert.strictEqual(details[3].name, 'MyMixin2');
|
|
482
490
|
assert.strictEqual(
|
|
483
491
|
details[3].properties.length,
|
|
484
492
|
1,
|
|
485
|
-
'should only show own mixin properties'
|
|
493
|
+
'should only show own mixin properties',
|
|
486
494
|
);
|
|
487
495
|
assert.strictEqual(
|
|
488
496
|
details[3].properties[0].value.inspect,
|
|
489
|
-
inspect('custom2')
|
|
497
|
+
inspect('custom2'),
|
|
490
498
|
);
|
|
491
499
|
});
|
|
492
500
|
|
|
@@ -648,7 +656,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
648
656
|
});
|
|
649
657
|
});
|
|
650
658
|
|
|
651
|
-
assert.strictEqual(inspected.
|
|
659
|
+
assert.strictEqual(inspected.name, 'Alex');
|
|
652
660
|
|
|
653
661
|
assert.strictEqual(message.property, 'name');
|
|
654
662
|
assert.strictEqual(message.value.inspect, inspect('Alex'));
|
|
@@ -674,9 +682,9 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
674
682
|
});
|
|
675
683
|
});
|
|
676
684
|
|
|
677
|
-
assert.strictEqual(inspected.
|
|
678
|
-
assert.strictEqual(inspected.
|
|
679
|
-
assert.strictEqual(inspected.
|
|
685
|
+
assert.strictEqual(inspected.date.getFullYear(), 2015);
|
|
686
|
+
assert.strictEqual(inspected.date.getMonth(), 0);
|
|
687
|
+
assert.strictEqual(inspected.date.getDate(), 1);
|
|
680
688
|
|
|
681
689
|
assert.strictEqual(message.property, 'date');
|
|
682
690
|
assert.strictEqual(message.value.inspect, inspect(newDate));
|
|
@@ -746,42 +754,42 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
746
754
|
assert.strictEqual(
|
|
747
755
|
message.details[2].properties.length,
|
|
748
756
|
0,
|
|
749
|
-
'Correctly skips properties'
|
|
757
|
+
'Correctly skips properties',
|
|
750
758
|
);
|
|
751
759
|
|
|
752
760
|
assert.strictEqual(message.details[3].name, 'TestObject');
|
|
753
761
|
assert.strictEqual(
|
|
754
762
|
message.details[3].properties.length,
|
|
755
763
|
3,
|
|
756
|
-
'Correctly merges properties'
|
|
764
|
+
'Correctly merges properties',
|
|
757
765
|
);
|
|
758
766
|
|
|
759
767
|
const toString = message.details[3].properties.find(
|
|
760
|
-
(p) => p.name === 'toString'
|
|
768
|
+
(p) => p.name === 'toString',
|
|
761
769
|
);
|
|
762
770
|
const hasChildren = message.details[3].properties.find(
|
|
763
|
-
(p) => p.name === 'hasChildren'
|
|
771
|
+
(p) => p.name === 'hasChildren',
|
|
764
772
|
);
|
|
765
773
|
const expensiveProperty = message.details[3].properties.find(
|
|
766
|
-
(p) => p.name === 'expensiveProperty'
|
|
774
|
+
(p) => p.name === 'expensiveProperty',
|
|
767
775
|
);
|
|
768
776
|
assert.ok(toString, 'has toString');
|
|
769
777
|
assert.ok(hasChildren, 'has hasChildren');
|
|
770
778
|
assert.strictEqual(
|
|
771
779
|
expensiveProperty.name,
|
|
772
780
|
'expensiveProperty',
|
|
773
|
-
'property name is correct'
|
|
781
|
+
'property name is correct',
|
|
774
782
|
);
|
|
775
783
|
assert.strictEqual(
|
|
776
784
|
expensiveProperty.value.isCalculated,
|
|
777
785
|
undefined,
|
|
778
|
-
'Does not calculate expensive properties'
|
|
786
|
+
'Does not calculate expensive properties',
|
|
779
787
|
);
|
|
780
788
|
|
|
781
789
|
assert.notStrictEqual(
|
|
782
790
|
message.details[3].name,
|
|
783
791
|
'MixinToSkip',
|
|
784
|
-
'Correctly skips mixins'
|
|
792
|
+
'Correctly skips mixins',
|
|
785
793
|
);
|
|
786
794
|
});
|
|
787
795
|
|
|
@@ -846,7 +854,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
846
854
|
|
|
847
855
|
assert.ok(
|
|
848
856
|
message.name.includes('ObjectProxy'),
|
|
849
|
-
'object name should start with <ObjectProxy:'
|
|
857
|
+
'object name should start with <ObjectProxy:',
|
|
850
858
|
);
|
|
851
859
|
|
|
852
860
|
assert.strictEqual(message.details[0].name, 'Basic Info');
|
|
@@ -861,38 +869,38 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
861
869
|
assert.strictEqual(
|
|
862
870
|
message.details[2].properties.length,
|
|
863
871
|
0,
|
|
864
|
-
'Correctly skips properties'
|
|
872
|
+
'Correctly skips properties',
|
|
865
873
|
);
|
|
866
874
|
|
|
867
875
|
assert.strictEqual(message.details[3].name, 'TestObject');
|
|
868
876
|
assert.strictEqual(
|
|
869
877
|
message.details[3].properties.length,
|
|
870
878
|
3,
|
|
871
|
-
'Correctly merges properties'
|
|
879
|
+
'Correctly merges properties',
|
|
872
880
|
);
|
|
873
881
|
|
|
874
882
|
const hasChildren = message.details[3].properties.find(
|
|
875
|
-
(p) => p.name === 'hasChildren'
|
|
883
|
+
(p) => p.name === 'hasChildren',
|
|
876
884
|
);
|
|
877
885
|
const expensiveProperty = message.details[3].properties.find(
|
|
878
|
-
(p) => p.name === 'expensiveProperty'
|
|
886
|
+
(p) => p.name === 'expensiveProperty',
|
|
879
887
|
);
|
|
880
888
|
assert.strictEqual(hasChildren.name, 'hasChildren');
|
|
881
889
|
assert.strictEqual(
|
|
882
890
|
expensiveProperty.name,
|
|
883
891
|
'expensiveProperty',
|
|
884
|
-
'property name is correct'
|
|
892
|
+
'property name is correct',
|
|
885
893
|
);
|
|
886
894
|
assert.strictEqual(
|
|
887
895
|
expensiveProperty.value.isCalculated,
|
|
888
896
|
undefined,
|
|
889
|
-
'Does not calculate expensive properties'
|
|
897
|
+
'Does not calculate expensive properties',
|
|
890
898
|
);
|
|
891
899
|
|
|
892
900
|
assert.notStrictEqual(
|
|
893
901
|
message.details[3].name,
|
|
894
902
|
'MixinToSkip',
|
|
895
|
-
'Correctly skips mixins'
|
|
903
|
+
'Correctly skips mixins',
|
|
896
904
|
);
|
|
897
905
|
});
|
|
898
906
|
|
|
@@ -901,17 +909,22 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
901
909
|
fooBoo() {
|
|
902
910
|
return true;
|
|
903
911
|
},
|
|
904
|
-
})
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
this.owner.register('service:test-inspect-service', inspectedService);
|
|
905
915
|
|
|
906
916
|
let inspected = EmberObject.extend({
|
|
907
|
-
service: inspectedService,
|
|
908
|
-
|
|
917
|
+
service: inspectedService.create(),
|
|
918
|
+
service2: service('test-inspect-service'),
|
|
919
|
+
}).create(this);
|
|
909
920
|
|
|
910
921
|
let message = await inspectObject(inspected);
|
|
911
922
|
|
|
912
923
|
let serializedServiceProperty = message.details[1].properties[0];
|
|
924
|
+
let serializedService2Property = message.details[1].properties[1];
|
|
913
925
|
|
|
914
926
|
assert.true(serializedServiceProperty.isService);
|
|
927
|
+
assert.true(serializedService2Property.isService);
|
|
915
928
|
});
|
|
916
929
|
|
|
917
930
|
test('Proxy Service should be successfully tagged as service on serialization', async function (assert) {
|
|
@@ -962,7 +975,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
962
975
|
|
|
963
976
|
assert.ok(
|
|
964
977
|
objectInspector.sentObjects[objectId],
|
|
965
|
-
'Object successfully retained.'
|
|
978
|
+
'Object successfully retained.',
|
|
966
979
|
);
|
|
967
980
|
|
|
968
981
|
await visit('/');
|
|
@@ -985,7 +998,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
985
998
|
|
|
986
999
|
assert.ok(
|
|
987
1000
|
objectInspector.sentObjects[objectId],
|
|
988
|
-
'Object successfully retained.'
|
|
1001
|
+
'Object successfully retained.',
|
|
989
1002
|
);
|
|
990
1003
|
|
|
991
1004
|
message = await captureMessage('objectInspector:droppedObject', () => {
|
|
@@ -997,7 +1010,6 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
997
1010
|
assert.deepEqual(message, { objectId });
|
|
998
1011
|
});
|
|
999
1012
|
|
|
1000
|
-
// eslint-disable-next-line qunit/require-expect
|
|
1001
1013
|
test('Properties ending with `Binding` are skipped', async function (assert) {
|
|
1002
1014
|
let object = EmberObject.create({
|
|
1003
1015
|
bar: 'test',
|
|
@@ -1011,14 +1023,14 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
1011
1023
|
assert.strictEqual(
|
|
1012
1024
|
props.length,
|
|
1013
1025
|
2,
|
|
1014
|
-
'Props should be foo and bar without fooBinding'
|
|
1026
|
+
'Props should be foo and bar without fooBinding',
|
|
1015
1027
|
);
|
|
1016
1028
|
assert.strictEqual(props[1].name, 'foo');
|
|
1017
1029
|
} else {
|
|
1018
1030
|
assert.strictEqual(
|
|
1019
1031
|
props.length,
|
|
1020
1032
|
1,
|
|
1021
|
-
'Props should be only bar without fooBinding, in Ember 3.0+'
|
|
1033
|
+
'Props should be only bar without fooBinding, in Ember 3.0+',
|
|
1022
1034
|
);
|
|
1023
1035
|
}
|
|
1024
1036
|
assert.strictEqual(props[0].name, 'bar');
|
|
@@ -1058,7 +1070,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
1058
1070
|
}
|
|
1059
1071
|
return 'bar';
|
|
1060
1072
|
}),
|
|
1061
|
-
}).create()
|
|
1073
|
+
}).create(),
|
|
1062
1074
|
);
|
|
1063
1075
|
|
|
1064
1076
|
let message = await inspectObject(object);
|
|
@@ -1219,6 +1231,59 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
1219
1231
|
'inspector: updateProperty',
|
|
1220
1232
|
]);
|
|
1221
1233
|
});
|
|
1234
|
+
|
|
1235
|
+
test('Inspected objects pass along their owner they have one', async function (assert) {
|
|
1236
|
+
class Owner {}
|
|
1237
|
+
class Foo {
|
|
1238
|
+
bar = 'baz';
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
let owner = new Owner();
|
|
1242
|
+
let inspected = new Foo();
|
|
1243
|
+
let message = await inspectObject(inspected);
|
|
1244
|
+
let ownerId = guidFor(owner);
|
|
1245
|
+
|
|
1246
|
+
assert.false(
|
|
1247
|
+
message.details.some(({ name }) => name === 'Container'),
|
|
1248
|
+
"Objects without an owner don't report an undefined owner in their last details object",
|
|
1249
|
+
);
|
|
1250
|
+
assert.strictEqual(message.details.length, 2);
|
|
1251
|
+
|
|
1252
|
+
setOwner(inspected, owner);
|
|
1253
|
+
|
|
1254
|
+
message = await inspectObject(inspected);
|
|
1255
|
+
|
|
1256
|
+
assert.strictEqual(
|
|
1257
|
+
message.details.length,
|
|
1258
|
+
3,
|
|
1259
|
+
'Object with owner have an additional details object',
|
|
1260
|
+
);
|
|
1261
|
+
|
|
1262
|
+
assert.strictEqual(
|
|
1263
|
+
message.details.filter(({ name }) => name === 'Container').length,
|
|
1264
|
+
1,
|
|
1265
|
+
'Objects with an owner have exactly one container item in their details',
|
|
1266
|
+
);
|
|
1267
|
+
assert.deepEqual(
|
|
1268
|
+
message.details.at(-1),
|
|
1269
|
+
{
|
|
1270
|
+
id: ownerId,
|
|
1271
|
+
name: 'Container',
|
|
1272
|
+
expand: false,
|
|
1273
|
+
properties: [
|
|
1274
|
+
{
|
|
1275
|
+
name: '__owner__',
|
|
1276
|
+
value: {
|
|
1277
|
+
inspect: `<Owner:${ownerId}>`,
|
|
1278
|
+
objectId: ownerId,
|
|
1279
|
+
type: 'type-owner',
|
|
1280
|
+
},
|
|
1281
|
+
},
|
|
1282
|
+
],
|
|
1283
|
+
},
|
|
1284
|
+
'the container is the last mixin in the list',
|
|
1285
|
+
);
|
|
1286
|
+
});
|
|
1222
1287
|
}
|
|
1223
1288
|
|
|
1224
1289
|
// @glimmer/component 1.0 doesn't seem to support 3.4, even though it has the manager API
|
|
@@ -1253,7 +1318,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
1253
1318
|
`template:components/foo`,
|
|
1254
1319
|
hbs('text only', {
|
|
1255
1320
|
moduleName: 'my-app/templates/components/foo.hbs',
|
|
1256
|
-
})
|
|
1321
|
+
}),
|
|
1257
1322
|
);
|
|
1258
1323
|
await visit('/simple');
|
|
1259
1324
|
|
|
@@ -1280,17 +1345,17 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
|
1280
1345
|
assert.strictEqual(
|
|
1281
1346
|
properties.indexOf('bounds'),
|
|
1282
1347
|
-1,
|
|
1283
|
-
'does not contain bounds'
|
|
1348
|
+
'does not contain bounds',
|
|
1284
1349
|
);
|
|
1285
1350
|
assert.strictEqual(
|
|
1286
1351
|
properties.indexOf('element'),
|
|
1287
1352
|
-1,
|
|
1288
|
-
'does not contain element'
|
|
1353
|
+
'does not contain element',
|
|
1289
1354
|
);
|
|
1290
1355
|
assert.strictEqual(
|
|
1291
1356
|
properties.indexOf('debugName'),
|
|
1292
1357
|
-1,
|
|
1293
|
-
'does not contain debugName'
|
|
1358
|
+
'does not contain debugName',
|
|
1294
1359
|
);
|
|
1295
1360
|
});
|
|
1296
1361
|
}
|