angular-slickgrid 4.2.0 → 4.2.3
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/LICENSE +20 -20
- package/{dist/app → app}/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +2 -2
- package/{dist/app → app}/modules/angular-slickgrid/constants.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/extensions/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/extensions/slickRowDetailView.d.ts +0 -2
- package/{dist/app → app}/modules/angular-slickgrid/global-grid-options.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/angularComponentOutput.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/angularGridInstance.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/externalTestingDependencies.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/gridOption.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/rowDetailView.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/models/slickGrid.interface.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/modules/angular-slickgrid.module.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/angularUtil.service.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/bsDropdown.service.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/container.service.d.ts +1 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/index.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/translater.service.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/services/utilities.d.ts +0 -0
- package/{dist/app → app}/modules/angular-slickgrid/slickgrid-config.d.ts +0 -0
- package/docs/assets/lib/multiple-select/README.md +17 -0
- package/{dist/esm2020 → esm2020}/angular-slickgrid.mjs +0 -0
- package/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +1170 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/constants.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/extensions/index.mjs +1 -1
- package/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +298 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/index.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs +1 -1
- package/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +2 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/models/index.mjs +1 -1
- package/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +2 -0
- package/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +43 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/angularUtil.service.mjs +4 -4
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/bsDropdown.service.mjs +4 -4
- package/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +29 -0
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/index.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/translater.service.mjs +4 -4
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/services/utilities.mjs +1 -1
- package/{dist/esm2020 → esm2020}/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
- package/{dist/esm2020 → esm2020}/public_api.mjs +1 -1
- package/{dist/fesm2015 → fesm2015}/angular-slickgrid.mjs +48 -51
- package/fesm2015/angular-slickgrid.mjs.map +1 -0
- package/{dist/fesm2020 → fesm2020}/angular-slickgrid.mjs +48 -51
- package/fesm2020/angular-slickgrid.mjs.map +1 -0
- package/{dist/i18n → i18n}/en.json +89 -89
- package/{dist/i18n → i18n}/fr.json +90 -90
- package/{dist/angular-slickgrid.d.ts → index.d.ts} +0 -0
- package/package.json +33 -118
- package/{dist/public_api.d.ts → public_api.d.ts} +0 -0
- package/test/cypress/node_modules/@cypress/request/README.md +1038 -0
- package/test/cypress/node_modules/@cypress/xvfb/README.md +48 -0
- package/test/cypress/node_modules/@cypress/xvfb/node_modules/debug/README.md +437 -0
- package/test/cypress/node_modules/@types/node/README.md +16 -0
- package/test/cypress/node_modules/@types/sinonjs__fake-timers/README.md +16 -0
- package/test/cypress/node_modules/@types/sizzle/README.md +16 -0
- package/test/cypress/node_modules/@types/yauzl/README.md +16 -0
- package/test/cypress/node_modules/@types/yauzl/node_modules/@types/node/README.md +16 -0
- package/test/cypress/node_modules/aggregate-error/README.md +61 -0
- package/test/cypress/node_modules/ansi-colors/README.md +315 -0
- package/test/cypress/node_modules/ansi-escapes/README.md +245 -0
- package/test/cypress/node_modules/ansi-regex/README.md +78 -0
- package/test/cypress/node_modules/ansi-styles/README.md +152 -0
- package/test/cypress/node_modules/arch/README.md +71 -0
- package/test/cypress/node_modules/asn1/README.md +50 -0
- package/test/cypress/node_modules/assert-plus/README.md +162 -0
- package/test/cypress/node_modules/astral-regex/README.md +46 -0
- package/test/cypress/node_modules/async/README.md +60 -0
- package/test/cypress/node_modules/asynckit/README.md +233 -0
- package/test/cypress/node_modules/at-least-node/README.md +25 -0
- package/test/cypress/node_modules/aws-sign2/README.md +4 -0
- package/test/cypress/node_modules/aws4/README.md +183 -0
- package/test/cypress/node_modules/balanced-match/README.md +91 -0
- package/test/cypress/node_modules/base64-js/README.md +34 -0
- package/test/cypress/node_modules/bcrypt-pbkdf/README.md +45 -0
- package/test/cypress/node_modules/blob-util/README.md +623 -0
- package/test/cypress/node_modules/bluebird/README.md +57 -0
- package/test/cypress/node_modules/brace-expansion/README.md +129 -0
- package/test/cypress/node_modules/buffer/README.md +410 -0
- package/test/cypress/node_modules/buffer-crc32/README.md +47 -0
- package/test/cypress/node_modules/cachedir/README.md +27 -0
- package/test/cypress/node_modules/caseless/README.md +45 -0
- package/test/cypress/node_modules/chalk/README.md +293 -0
- package/test/cypress/node_modules/chalk/node_modules/supports-color/README.md +76 -0
- package/test/cypress/node_modules/check-more-types/README.md +952 -0
- package/test/cypress/node_modules/ci-info/README.md +114 -0
- package/test/cypress/node_modules/clean-stack/README.md +76 -0
- package/test/cypress/node_modules/cli-cursor/README.md +55 -0
- package/test/cypress/node_modules/cli-table3/README.md +218 -0
- package/test/cypress/node_modules/cli-truncate/README.md +139 -0
- package/test/cypress/node_modules/color-convert/README.md +68 -0
- package/test/cypress/node_modules/color-name/README.md +11 -0
- package/test/cypress/node_modules/colorette/README.md +102 -0
- package/test/cypress/node_modules/colors/README.md +221 -0
- package/test/cypress/node_modules/combined-stream/README.md +138 -0
- package/test/cypress/node_modules/commander/README.md +737 -0
- package/test/cypress/node_modules/common-tags/README.md +687 -0
- package/test/cypress/node_modules/core-util-is/README.md +3 -0
- package/test/cypress/node_modules/cross-spawn/README.md +96 -0
- package/test/cypress/node_modules/cypress/README.md +25 -0
- package/test/cypress/node_modules/cypress/mount-utils/README.md +14 -0
- package/test/cypress/node_modules/cypress/react/README.md +414 -0
- package/test/cypress/node_modules/cypress/vue/README.md +678 -0
- package/test/cypress/node_modules/cypress/vue2/README.md +693 -0
- package/test/cypress/node_modules/dashdash/README.md +574 -0
- package/test/cypress/node_modules/dayjs/README.md +128 -0
- package/test/cypress/node_modules/debug/README.md +455 -0
- package/test/cypress/node_modules/delayed-stream/README.md +141 -0
- package/test/cypress/node_modules/ecc-jsbn/README.md +8 -0
- package/test/cypress/node_modules/emoji-regex/README.md +73 -0
- package/test/cypress/node_modules/end-of-stream/README.md +54 -0
- package/test/cypress/node_modules/enquirer/README.md +1752 -0
- package/test/cypress/node_modules/escape-string-regexp/README.md +27 -0
- package/test/cypress/node_modules/eventemitter2/README.md +809 -0
- package/test/cypress/node_modules/execa/README.md +656 -0
- package/test/cypress/node_modules/executable/README.md +64 -0
- package/test/cypress/node_modules/extend/README.md +81 -0
- package/test/cypress/node_modules/extract-zip/README.md +57 -0
- package/test/cypress/node_modules/extract-zip/node_modules/debug/README.md +455 -0
- package/test/cypress/node_modules/extsprintf/README.md +46 -0
- package/test/cypress/node_modules/fd-slicer/README.md +199 -0
- package/test/cypress/node_modules/figures/README.md +139 -0
- package/test/cypress/node_modules/forever-agent/README.md +4 -0
- package/test/cypress/node_modules/form-data/README.md +234 -0
- package/test/cypress/node_modules/fs-extra/README.md +264 -0
- package/test/cypress/node_modules/fs.realpath/README.md +33 -0
- package/test/cypress/node_modules/get-stream/README.md +124 -0
- package/test/cypress/node_modules/getos/README.md +79 -0
- package/test/cypress/node_modules/getpass/README.md +32 -0
- package/test/cypress/node_modules/glob/README.md +375 -0
- package/test/cypress/node_modules/global-dirs/README.md +72 -0
- package/test/cypress/node_modules/graceful-fs/README.md +133 -0
- package/test/cypress/node_modules/has-flag/README.md +89 -0
- package/test/cypress/node_modules/http-signature/README.md +80 -0
- package/test/cypress/node_modules/human-signals/README.md +155 -0
- package/test/cypress/node_modules/ieee754/README.md +51 -0
- package/test/cypress/node_modules/indent-string/README.md +70 -0
- package/test/cypress/node_modules/inflight/README.md +37 -0
- package/test/cypress/node_modules/inherits/README.md +42 -0
- package/test/cypress/node_modules/ini/README.md +102 -0
- package/test/cypress/node_modules/is-ci/README.md +50 -0
- package/test/cypress/node_modules/is-fullwidth-code-point/README.md +39 -0
- package/test/cypress/node_modules/is-installed-globally/README.md +31 -0
- package/test/cypress/node_modules/is-path-inside/README.md +63 -0
- package/test/cypress/node_modules/is-stream/README.md +57 -0
- package/test/cypress/node_modules/is-typedarray/README.md +16 -0
- package/test/cypress/node_modules/isexe/README.md +51 -0
- package/test/cypress/node_modules/isstream/README.md +66 -0
- package/test/cypress/node_modules/jsbn/README.md +175 -0
- package/test/cypress/node_modules/json-schema/README.md +3 -0
- package/test/cypress/node_modules/json-stringify-safe/README.md +52 -0
- package/test/cypress/node_modules/jsonfile/README.md +205 -0
- package/test/cypress/node_modules/jsonfile/node_modules/universalify/README.md +76 -0
- package/test/cypress/node_modules/jsprim/README.md +287 -0
- package/test/cypress/node_modules/lazy-ass/README.md +269 -0
- package/test/cypress/node_modules/listr2/README.md +17 -0
- package/test/cypress/node_modules/lodash/README.md +39 -0
- package/test/cypress/node_modules/lodash.once/README.md +18 -0
- package/test/cypress/node_modules/log-symbols/README.md +51 -0
- package/test/cypress/node_modules/log-update/README.md +97 -0
- package/test/cypress/node_modules/log-update/node_modules/slice-ansi/README.md +66 -0
- package/test/cypress/node_modules/log-update/node_modules/wrap-ansi/README.md +97 -0
- package/test/cypress/node_modules/lru-cache/README.md +166 -0
- package/test/cypress/node_modules/merge-stream/README.md +78 -0
- package/test/cypress/node_modules/mime-db/README.md +102 -0
- package/test/cypress/node_modules/mime-types/README.md +123 -0
- package/test/cypress/node_modules/mimic-fn/README.md +69 -0
- package/test/cypress/node_modules/minimatch/README.md +209 -0
- package/test/cypress/node_modules/ms/README.md +60 -0
- package/test/cypress/node_modules/npm-run-path/README.md +115 -0
- package/test/cypress/node_modules/once/README.md +79 -0
- package/test/cypress/node_modules/onetime/README.md +94 -0
- package/test/cypress/node_modules/ospath/README.md +53 -0
- package/test/cypress/node_modules/p-map/README.md +89 -0
- package/test/cypress/node_modules/path-is-absolute/README.md +59 -0
- package/test/cypress/node_modules/path-key/README.md +61 -0
- package/test/cypress/node_modules/pend/README.md +41 -0
- package/test/cypress/node_modules/performance-now/README.md +30 -0
- package/test/cypress/node_modules/pify/README.md +119 -0
- package/test/cypress/node_modules/pretty-bytes/README.md +131 -0
- package/test/cypress/node_modules/proxy-from-env/README.md +131 -0
- package/test/cypress/node_modules/psl/README.md +215 -0
- package/test/cypress/node_modules/pump/README.md +65 -0
- package/test/cypress/node_modules/punycode/README.md +122 -0
- package/test/cypress/node_modules/qs/README.md +475 -0
- package/test/cypress/node_modules/request-progress/README.md +78 -0
- package/test/cypress/node_modules/restore-cursor/README.md +26 -0
- package/test/cypress/node_modules/rimraf/README.md +101 -0
- package/test/cypress/node_modules/rxjs/README.md +147 -0
- package/test/cypress/node_modules/rxjs/_esm2015/README.md +147 -0
- package/test/cypress/node_modules/rxjs/_esm5/README.md +147 -0
- package/test/cypress/node_modules/rxjs/src/README.md +147 -0
- package/test/cypress/node_modules/safe-buffer/README.md +584 -0
- package/test/cypress/node_modules/safer-buffer/README.md +156 -0
- package/test/cypress/node_modules/semver/README.md +566 -0
- package/test/cypress/node_modules/shebang-command/README.md +34 -0
- package/test/cypress/node_modules/shebang-regex/README.md +33 -0
- package/test/cypress/node_modules/signal-exit/README.md +39 -0
- package/test/cypress/node_modules/slice-ansi/README.md +72 -0
- package/test/cypress/node_modules/sshpk/README.md +804 -0
- package/test/cypress/node_modules/string-width/README.md +50 -0
- package/test/cypress/node_modules/strip-ansi/README.md +46 -0
- package/test/cypress/node_modules/strip-final-newline/README.md +30 -0
- package/test/cypress/node_modules/supports-color/README.md +77 -0
- package/test/cypress/node_modules/throttleit/README.md +32 -0
- package/test/cypress/node_modules/tmp/README.md +365 -0
- package/test/cypress/node_modules/tough-cookie/README.md +527 -0
- package/test/cypress/node_modules/tslib/README.md +142 -0
- package/test/cypress/node_modules/tunnel-agent/README.md +4 -0
- package/test/cypress/node_modules/tweetnacl/README.md +459 -0
- package/test/cypress/node_modules/type-fest/README.md +760 -0
- package/test/cypress/node_modules/universalify/README.md +76 -0
- package/test/cypress/node_modules/untildify/README.md +30 -0
- package/test/cypress/node_modules/uuid/README.md +505 -0
- package/test/cypress/node_modules/verror/README.md +528 -0
- package/test/cypress/node_modules/verror/node_modules/extsprintf/README.md +46 -0
- package/test/cypress/node_modules/which/README.md +54 -0
- package/test/cypress/node_modules/wrap-ansi/README.md +91 -0
- package/test/cypress/node_modules/wrappy/README.md +36 -0
- package/test/cypress/node_modules/yallist/README.md +204 -0
- package/test/cypress/node_modules/yauzl/README.md +658 -0
- package/.browserslistrc +0 -12
- package/.codecov.yml +0 -17
- package/.editorconfig +0 -18
- package/.eslintrc.json +0 -50
- package/.github/CODE_OF_CONDUCT.md +0 -76
- package/.github/FUNDING.yml +0 -8
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -54
- package/.github/ISSUE_TEMPLATE/config.yml +0 -5
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -44
- package/.github/renovate.json5 +0 -26
- package/.github/stale.yml +0 -7
- package/.github/workflows/main.yml +0 -83
- package/.vscode/extensions.json +0 -9
- package/.vscode/launch.json +0 -72
- package/.vscode/settings.json +0 -7
- package/.vscode/tasks.json +0 -77
- package/CHANGELOG.md +0 -1172
- package/angular.json +0 -148
- package/dist/LICENSE +0 -20
- package/dist/README.md +0 -182
- package/dist/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +0 -1171
- package/dist/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +0 -300
- package/dist/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +0 -2
- package/dist/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +0 -46
- package/dist/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +0 -26
- package/dist/fesm2015/angular-slickgrid.mjs.map +0 -1
- package/dist/fesm2020/angular-slickgrid.mjs.map +0 -1
- package/dist/package.json +0 -79
- package/global.d.ts +0 -1
- package/ngcc.config.js +0 -13
- package/screenshots/column-picker.png +0 -0
- package/screenshots/composite-editor.png +0 -0
- package/screenshots/draggable-grouping.png +0 -0
- package/screenshots/editors.png +0 -0
- package/screenshots/export-to-file.png +0 -0
- package/screenshots/filter_and_sort.png +0 -0
- package/screenshots/formatters.png +0 -0
- package/screenshots/frozen.png +0 -0
- package/screenshots/multipleSelectFilter.png +0 -0
- package/screenshots/pagination.png +0 -0
- package/screenshots/selectFilter.png +0 -0
- package/screenshots/singleFilter.png +0 -0
- package/src/app/app-routing.module.ts +0 -83
- package/src/app/app.component.html +0 -160
- package/src/app/app.component.scss +0 -65
- package/src/app/app.component.ts +0 -10
- package/src/app/app.module.ts +0 -175
- package/src/app/examples/custom-angularComponentEditor.ts +0 -184
- package/src/app/examples/custom-angularComponentFilter.ts +0 -126
- package/src/app/examples/custom-inputEditor.ts +0 -124
- package/src/app/examples/custom-inputFilter.ts +0 -142
- package/src/app/examples/custom-titleFormatter.component.ts +0 -8
- package/src/app/examples/editor-ng-select.component.ts +0 -37
- package/src/app/examples/filter-ng-select.component.ts +0 -32
- package/src/app/examples/grid-additem.component.html +0 -48
- package/src/app/examples/grid-additem.component.ts +0 -272
- package/src/app/examples/grid-angular.component.html +0 -79
- package/src/app/examples/grid-angular.component.scss +0 -28
- package/src/app/examples/grid-angular.component.ts +0 -370
- package/src/app/examples/grid-autoheight.component.html +0 -52
- package/src/app/examples/grid-autoheight.component.ts +0 -147
- package/src/app/examples/grid-basic.component.html +0 -29
- package/src/app/examples/grid-basic.component.ts +0 -82
- package/src/app/examples/grid-clientside.component.html +0 -51
- package/src/app/examples/grid-clientside.component.ts +0 -293
- package/src/app/examples/grid-colspan.component.html +0 -39
- package/src/app/examples/grid-colspan.component.scss +0 -11
- package/src/app/examples/grid-colspan.component.ts +0 -155
- package/src/app/examples/grid-composite-editor.component.html +0 -79
- package/src/app/examples/grid-composite-editor.component.scss +0 -19
- package/src/app/examples/grid-composite-editor.component.ts +0 -948
- package/src/app/examples/grid-contextmenu.component.html +0 -62
- package/src/app/examples/grid-contextmenu.component.scss +0 -44
- package/src/app/examples/grid-contextmenu.component.ts +0 -473
- package/src/app/examples/grid-custom-tooltip.component.html +0 -25
- package/src/app/examples/grid-custom-tooltip.component.scss +0 -77
- package/src/app/examples/grid-custom-tooltip.component.ts +0 -483
- package/src/app/examples/grid-draggrouping.component.html +0 -93
- package/src/app/examples/grid-draggrouping.component.ts +0 -397
- package/src/app/examples/grid-editor.component.html +0 -88
- package/src/app/examples/grid-editor.component.ts +0 -699
- package/src/app/examples/grid-formatter.component.html +0 -26
- package/src/app/examples/grid-formatter.component.ts +0 -162
- package/src/app/examples/grid-frozen.component.html +0 -65
- package/src/app/examples/grid-frozen.component.scss +0 -11
- package/src/app/examples/grid-frozen.component.ts +0 -303
- package/src/app/examples/grid-graphql-nopage.component.html +0 -33
- package/src/app/examples/grid-graphql-nopage.component.scss +0 -9
- package/src/app/examples/grid-graphql-nopage.component.ts +0 -242
- package/src/app/examples/grid-graphql.component.html +0 -87
- package/src/app/examples/grid-graphql.component.ts +0 -304
- package/src/app/examples/grid-grouping.component.html +0 -80
- package/src/app/examples/grid-grouping.component.ts +0 -313
- package/src/app/examples/grid-headerbutton.component.html +0 -31
- package/src/app/examples/grid-headerbutton.component.scss +0 -10
- package/src/app/examples/grid-headerbutton.component.ts +0 -233
- package/src/app/examples/grid-headermenu.component.html +0 -31
- package/src/app/examples/grid-headermenu.component.scss +0 -25
- package/src/app/examples/grid-headermenu.component.ts +0 -159
- package/src/app/examples/grid-localization.component.html +0 -54
- package/src/app/examples/grid-localization.component.ts +0 -293
- package/src/app/examples/grid-menu.component.html +0 -37
- package/src/app/examples/grid-menu.component.scss +0 -28
- package/src/app/examples/grid-menu.component.ts +0 -229
- package/src/app/examples/grid-odata.component.html +0 -116
- package/src/app/examples/grid-odata.component.ts +0 -441
- package/src/app/examples/grid-range.component.html +0 -74
- package/src/app/examples/grid-range.component.ts +0 -291
- package/src/app/examples/grid-remote.component.html +0 -37
- package/src/app/examples/grid-remote.component.ts +0 -153
- package/src/app/examples/grid-resize-by-content.component.html +0 -62
- package/src/app/examples/grid-resize-by-content.component.scss +0 -19
- package/src/app/examples/grid-resize-by-content.component.ts +0 -780
- package/src/app/examples/grid-rowdetail.component.html +0 -35
- package/src/app/examples/grid-rowdetail.component.ts +0 -205
- package/src/app/examples/grid-rowmove.component.html +0 -49
- package/src/app/examples/grid-rowmove.component.ts +0 -234
- package/src/app/examples/grid-rowselection.component.html +0 -76
- package/src/app/examples/grid-rowselection.component.ts +0 -267
- package/src/app/examples/grid-state.component.html +0 -36
- package/src/app/examples/grid-state.component.ts +0 -259
- package/src/app/examples/grid-tabs.component.html +0 -35
- package/src/app/examples/grid-tabs.component.ts +0 -115
- package/src/app/examples/grid-trading.component.html +0 -58
- package/src/app/examples/grid-trading.component.scss +0 -49
- package/src/app/examples/grid-trading.component.ts +0 -319
- package/src/app/examples/grid-tree-data-hierarchical.component.html +0 -79
- package/src/app/examples/grid-tree-data-hierarchical.component.scss +0 -47
- package/src/app/examples/grid-tree-data-hierarchical.component.ts +0 -311
- package/src/app/examples/grid-tree-data-parent-child.component.html +0 -108
- package/src/app/examples/grid-tree-data-parent-child.component.scss +0 -10
- package/src/app/examples/grid-tree-data-parent-child.component.ts +0 -351
- package/src/app/examples/home.component.html +0 -41
- package/src/app/examples/home.component.ts +0 -9
- package/src/app/examples/rowdetail-preload.component.ts +0 -10
- package/src/app/examples/rowdetail-view.component.html +0 -36
- package/src/app/examples/rowdetail-view.component.ts +0 -54
- package/src/app/examples/swt-common-grid-pagination.component.ts +0 -156
- package/src/app/examples/swt-common-grid-test.component.html +0 -30
- package/src/app/examples/swt-common-grid-test.component.ts +0 -219
- package/src/app/examples/swt-common-grid.component.ts +0 -436
- package/src/app/examples/swt-logger.service.ts +0 -165
- package/src/app/modules/angular-slickgrid/components/angular-slickgrid.component.html +0 -4
- package/src/app/modules/angular-slickgrid/components/angular-slickgrid.component.ts +0 -1395
- package/src/app/modules/angular-slickgrid/constants.ts +0 -97
- package/src/app/modules/angular-slickgrid/extensions/index.ts +0 -1
- package/src/app/modules/angular-slickgrid/extensions/slickRowDetailView.ts +0 -375
- package/src/app/modules/angular-slickgrid/global-grid-options.ts +0 -245
- package/src/app/modules/angular-slickgrid/index.ts +0 -11
- package/src/app/modules/angular-slickgrid/models/angularComponentOutput.interface.ts +0 -6
- package/src/app/modules/angular-slickgrid/models/angularGridInstance.interface.ts +0 -68
- package/src/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.ts +0 -37
- package/src/app/modules/angular-slickgrid/models/gridOption.interface.ts +0 -12
- package/src/app/modules/angular-slickgrid/models/index.ts +0 -6
- package/src/app/modules/angular-slickgrid/models/rowDetailView.interface.ts +0 -33
- package/src/app/modules/angular-slickgrid/models/slickGrid.interface.ts +0 -7
- package/src/app/modules/angular-slickgrid/modules/angular-slickgrid.module.ts +0 -37
- package/src/app/modules/angular-slickgrid/services/angularUtil.service.ts +0 -48
- package/src/app/modules/angular-slickgrid/services/bsDropdown.service.ts +0 -142
- package/src/app/modules/angular-slickgrid/services/container.service.ts +0 -24
- package/src/app/modules/angular-slickgrid/services/index.ts +0 -5
- package/src/app/modules/angular-slickgrid/services/translater.service.ts +0 -38
- package/src/app/modules/angular-slickgrid/services/utilities.ts +0 -19
- package/src/app/modules/angular-slickgrid/slickgrid-config.ts +0 -10
- package/src/app/slickgrid-custom-variables.scss +0 -10
- package/src/assets/.gitkeep +0 -0
- package/src/assets/data/collection_100_numbers.json +0 -12
- package/src/assets/data/collection_500_numbers.json +0 -52
- package/src/assets/data/countries.json +0 -245
- package/src/assets/data/country_names.json +0 -245
- package/src/assets/data/customers_100.json +0 -102
- package/src/assets/i18n/en.json +0 -90
- package/src/assets/i18n/fr.json +0 -91
- package/src/environments/environment.prod.ts +0 -3
- package/src/environments/environment.ts +0 -8
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -18
- package/src/main.ts +0 -13
- package/src/polyfills.ts +0 -52
- package/src/public_api.ts +0 -1
- package/src/styles.scss +0 -66
- package/src/typings.d.ts +0 -10
- package/tsconfig.app.json +0 -25
- package/tsconfig.json +0 -40
- package/tsconfig.spec.json +0 -23
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# node-http-signature
|
|
2
|
+
|
|
3
|
+
node-http-signature is a node.js library that has client and server components
|
|
4
|
+
for Joyent's [HTTP Signature Scheme](http_signing.md).
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
Note the example below signs a request with the same key/cert used to start an
|
|
9
|
+
HTTP server. This is almost certainly not what you actually want, but is just
|
|
10
|
+
used to illustrate the API calls; you will need to provide your own key
|
|
11
|
+
management in addition to this library.
|
|
12
|
+
|
|
13
|
+
### Client
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var fs = require('fs');
|
|
17
|
+
var https = require('https');
|
|
18
|
+
var httpSignature = require('http-signature');
|
|
19
|
+
|
|
20
|
+
var key = fs.readFileSync('./key.pem', 'ascii');
|
|
21
|
+
|
|
22
|
+
var options = {
|
|
23
|
+
host: 'localhost',
|
|
24
|
+
port: 8443,
|
|
25
|
+
path: '/',
|
|
26
|
+
method: 'GET',
|
|
27
|
+
headers: {}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Adds a 'Date' header in, signs it, and adds the
|
|
31
|
+
// 'Authorization' header in.
|
|
32
|
+
var req = https.request(options, function(res) {
|
|
33
|
+
console.log(res.statusCode);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
httpSignature.sign(req, {
|
|
38
|
+
key: key,
|
|
39
|
+
keyId: './cert.pem',
|
|
40
|
+
keyPassphrase: 'secret' // (optional)
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
req.end();
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Server
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
var fs = require('fs');
|
|
50
|
+
var https = require('https');
|
|
51
|
+
var httpSignature = require('http-signature');
|
|
52
|
+
|
|
53
|
+
var options = {
|
|
54
|
+
key: fs.readFileSync('./key.pem'),
|
|
55
|
+
cert: fs.readFileSync('./cert.pem')
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
https.createServer(options, function (req, res) {
|
|
59
|
+
var rc = 200;
|
|
60
|
+
var parsed = httpSignature.parseRequest(req);
|
|
61
|
+
var pub = fs.readFileSync(parsed.keyId, 'ascii');
|
|
62
|
+
if (!httpSignature.verifySignature(parsed, pub))
|
|
63
|
+
rc = 401;
|
|
64
|
+
|
|
65
|
+
res.writeHead(rc);
|
|
66
|
+
res.end();
|
|
67
|
+
}).listen(8443);
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Installation
|
|
71
|
+
|
|
72
|
+
npm install http-signature
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT.
|
|
77
|
+
|
|
78
|
+
## Bugs
|
|
79
|
+
|
|
80
|
+
See <https://github.com/joyent/node-http-signature/issues>.
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
[](https://codecov.io/gh/ehmicky/human-signals)
|
|
2
|
+
[](https://travis-ci.org/ehmicky/human-signals)
|
|
3
|
+
[](https://www.npmjs.com/package/human-signals)
|
|
4
|
+
[](https://gitter.im/ehmicky/human-signals)
|
|
5
|
+
[](https://twitter.com/intent/follow?screen_name=ehmicky)
|
|
6
|
+
[](https://medium.com/@ehmicky)
|
|
7
|
+
|
|
8
|
+
Human-friendly process signals.
|
|
9
|
+
|
|
10
|
+
This is a map of known process signals with some information about each signal.
|
|
11
|
+
|
|
12
|
+
Unlike
|
|
13
|
+
[`os.constants.signals`](https://nodejs.org/api/os.html#os_signal_constants)
|
|
14
|
+
this includes:
|
|
15
|
+
|
|
16
|
+
- human-friendly [descriptions](#description)
|
|
17
|
+
- [default actions](#action), including whether they [can be prevented](#forced)
|
|
18
|
+
- whether the signal is [supported](#supported) by the current OS
|
|
19
|
+
|
|
20
|
+
# Example
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
const { signalsByName, signalsByNumber } = require('human-signals')
|
|
24
|
+
|
|
25
|
+
console.log(signalsByName.SIGINT)
|
|
26
|
+
// {
|
|
27
|
+
// name: 'SIGINT',
|
|
28
|
+
// number: 2,
|
|
29
|
+
// description: 'User interruption with CTRL-C',
|
|
30
|
+
// supported: true,
|
|
31
|
+
// action: 'terminate',
|
|
32
|
+
// forced: false,
|
|
33
|
+
// standard: 'ansi'
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
console.log(signalsByNumber[8])
|
|
37
|
+
// {
|
|
38
|
+
// name: 'SIGFPE',
|
|
39
|
+
// number: 8,
|
|
40
|
+
// description: 'Floating point arithmetic error',
|
|
41
|
+
// supported: true,
|
|
42
|
+
// action: 'core',
|
|
43
|
+
// forced: false,
|
|
44
|
+
// standard: 'ansi'
|
|
45
|
+
// }
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
# Install
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm install human-signals
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
# Usage
|
|
55
|
+
|
|
56
|
+
## signalsByName
|
|
57
|
+
|
|
58
|
+
_Type_: `object`
|
|
59
|
+
|
|
60
|
+
Object whose keys are signal [names](#name) and values are
|
|
61
|
+
[signal objects](#signal).
|
|
62
|
+
|
|
63
|
+
## signalsByNumber
|
|
64
|
+
|
|
65
|
+
_Type_: `object`
|
|
66
|
+
|
|
67
|
+
Object whose keys are signal [numbers](#number) and values are
|
|
68
|
+
[signal objects](#signal).
|
|
69
|
+
|
|
70
|
+
## signal
|
|
71
|
+
|
|
72
|
+
_Type_: `object`
|
|
73
|
+
|
|
74
|
+
Signal object with the following properties.
|
|
75
|
+
|
|
76
|
+
### name
|
|
77
|
+
|
|
78
|
+
_Type_: `string`
|
|
79
|
+
|
|
80
|
+
Standard name of the signal, for example `'SIGINT'`.
|
|
81
|
+
|
|
82
|
+
### number
|
|
83
|
+
|
|
84
|
+
_Type_: `number`
|
|
85
|
+
|
|
86
|
+
Code number of the signal, for example `2`. While most `number` are
|
|
87
|
+
cross-platform, some are different between different OS.
|
|
88
|
+
|
|
89
|
+
### description
|
|
90
|
+
|
|
91
|
+
_Type_: `string`
|
|
92
|
+
|
|
93
|
+
Human-friendly description for the signal, for example
|
|
94
|
+
`'User interruption with CTRL-C'`.
|
|
95
|
+
|
|
96
|
+
### supported
|
|
97
|
+
|
|
98
|
+
_Type_: `boolean`
|
|
99
|
+
|
|
100
|
+
Whether the current OS can handle this signal in Node.js using
|
|
101
|
+
[`process.on(name, handler)`](https://nodejs.org/api/process.html#process_signal_events).
|
|
102
|
+
|
|
103
|
+
The list of supported signals
|
|
104
|
+
[is OS-specific](https://github.com/ehmicky/cross-platform-node-guide/blob/master/docs/6_networking_ipc/signals.md#cross-platform-signals).
|
|
105
|
+
|
|
106
|
+
### action
|
|
107
|
+
|
|
108
|
+
_Type_: `string`<br>_Enum_: `'terminate'`, `'core'`, `'ignore'`, `'pause'`,
|
|
109
|
+
`'unpause'`
|
|
110
|
+
|
|
111
|
+
What is the default action for this signal when it is not handled.
|
|
112
|
+
|
|
113
|
+
### forced
|
|
114
|
+
|
|
115
|
+
_Type_: `boolean`
|
|
116
|
+
|
|
117
|
+
Whether the signal's default action cannot be prevented. This is `true` for
|
|
118
|
+
`SIGTERM`, `SIGKILL` and `SIGSTOP`.
|
|
119
|
+
|
|
120
|
+
### standard
|
|
121
|
+
|
|
122
|
+
_Type_: `string`<br>_Enum_: `'ansi'`, `'posix'`, `'bsd'`, `'systemv'`, `'other'`
|
|
123
|
+
|
|
124
|
+
Which standard defined that signal.
|
|
125
|
+
|
|
126
|
+
# Support
|
|
127
|
+
|
|
128
|
+
If you found a bug or would like a new feature, _don't hesitate_ to
|
|
129
|
+
[submit an issue on GitHub](../../issues).
|
|
130
|
+
|
|
131
|
+
For other questions, feel free to
|
|
132
|
+
[chat with us on Gitter](https://gitter.im/ehmicky/human-signals).
|
|
133
|
+
|
|
134
|
+
Everyone is welcome regardless of personal background. We enforce a
|
|
135
|
+
[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and
|
|
136
|
+
inclusive environment.
|
|
137
|
+
|
|
138
|
+
# Contributing
|
|
139
|
+
|
|
140
|
+
This project was made with ❤️. The simplest way to give back is by starring and
|
|
141
|
+
sharing it online.
|
|
142
|
+
|
|
143
|
+
If the documentation is unclear or has a typo, please click on the page's `Edit`
|
|
144
|
+
button (pencil icon) and suggest a correction.
|
|
145
|
+
|
|
146
|
+
If you would like to help us fix a bug or add a new feature, please check our
|
|
147
|
+
[guidelines](CONTRIBUTING.md). Pull requests are welcome!
|
|
148
|
+
|
|
149
|
+
<!-- Thanks go to our wonderful contributors: -->
|
|
150
|
+
|
|
151
|
+
<!-- ALL-CONTRIBUTORS-LIST:START -->
|
|
152
|
+
<!-- prettier-ignore -->
|
|
153
|
+
<table><tr><td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt="ehmicky"/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Documentation">📖</a></td></tr></table>
|
|
154
|
+
|
|
155
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# ieee754 [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
|
|
2
|
+
|
|
3
|
+
[travis-image]: https://img.shields.io/travis/feross/ieee754/master.svg
|
|
4
|
+
[travis-url]: https://travis-ci.org/feross/ieee754
|
|
5
|
+
[npm-image]: https://img.shields.io/npm/v/ieee754.svg
|
|
6
|
+
[npm-url]: https://npmjs.org/package/ieee754
|
|
7
|
+
[downloads-image]: https://img.shields.io/npm/dm/ieee754.svg
|
|
8
|
+
[downloads-url]: https://npmjs.org/package/ieee754
|
|
9
|
+
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
|
|
10
|
+
[standard-url]: https://standardjs.com
|
|
11
|
+
|
|
12
|
+
[![saucelabs][saucelabs-image]][saucelabs-url]
|
|
13
|
+
|
|
14
|
+
[saucelabs-image]: https://saucelabs.com/browser-matrix/ieee754.svg
|
|
15
|
+
[saucelabs-url]: https://saucelabs.com/u/ieee754
|
|
16
|
+
|
|
17
|
+
### Read/write IEEE754 floating point numbers from/to a Buffer or array-like object.
|
|
18
|
+
|
|
19
|
+
## install
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
npm install ieee754
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## methods
|
|
26
|
+
|
|
27
|
+
`var ieee754 = require('ieee754')`
|
|
28
|
+
|
|
29
|
+
The `ieee754` object has the following functions:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
ieee754.read = function (buffer, offset, isLE, mLen, nBytes)
|
|
33
|
+
ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The arguments mean the following:
|
|
37
|
+
|
|
38
|
+
- buffer = the buffer
|
|
39
|
+
- offset = offset into the buffer
|
|
40
|
+
- value = value to set (only for `write`)
|
|
41
|
+
- isLe = is little endian?
|
|
42
|
+
- mLen = mantissa length
|
|
43
|
+
- nBytes = number of bytes
|
|
44
|
+
|
|
45
|
+
## what is ieee754?
|
|
46
|
+
|
|
47
|
+
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation. [Read more](http://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
48
|
+
|
|
49
|
+
## license
|
|
50
|
+
|
|
51
|
+
BSD 3 Clause. Copyright (c) 2008, Fair Oaks Labs, Inc.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# indent-string [](https://travis-ci.org/sindresorhus/indent-string)
|
|
2
|
+
|
|
3
|
+
> Indent each line in a string
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install indent-string
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const indentString = require('indent-string');
|
|
17
|
+
|
|
18
|
+
indentString('Unicorns\nRainbows', 4);
|
|
19
|
+
//=> ' Unicorns\n Rainbows'
|
|
20
|
+
|
|
21
|
+
indentString('Unicorns\nRainbows', 4, {indent: '♥'});
|
|
22
|
+
//=> '♥♥♥♥Unicorns\n♥♥♥♥Rainbows'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## API
|
|
27
|
+
|
|
28
|
+
### indentString(string, [count], [options])
|
|
29
|
+
|
|
30
|
+
#### string
|
|
31
|
+
|
|
32
|
+
Type: `string`
|
|
33
|
+
|
|
34
|
+
The string to indent.
|
|
35
|
+
|
|
36
|
+
#### count
|
|
37
|
+
|
|
38
|
+
Type: `number`<br>
|
|
39
|
+
Default: `1`
|
|
40
|
+
|
|
41
|
+
How many times you want `options.indent` repeated.
|
|
42
|
+
|
|
43
|
+
#### options
|
|
44
|
+
|
|
45
|
+
Type: `object`
|
|
46
|
+
|
|
47
|
+
##### indent
|
|
48
|
+
|
|
49
|
+
Type: `string`<br>
|
|
50
|
+
Default: `' '`
|
|
51
|
+
|
|
52
|
+
The string to use for the indent.
|
|
53
|
+
|
|
54
|
+
##### includeEmptyLines
|
|
55
|
+
|
|
56
|
+
Type: `boolean`<br>
|
|
57
|
+
Default: `false`
|
|
58
|
+
|
|
59
|
+
Also indent empty lines.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## Related
|
|
63
|
+
|
|
64
|
+
- [indent-string-cli](https://github.com/sindresorhus/indent-string-cli) - CLI for this module
|
|
65
|
+
- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# inflight
|
|
2
|
+
|
|
3
|
+
Add callbacks to requests in flight to avoid async duplication
|
|
4
|
+
|
|
5
|
+
## USAGE
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
var inflight = require('inflight')
|
|
9
|
+
|
|
10
|
+
// some request that does some stuff
|
|
11
|
+
function req(key, callback) {
|
|
12
|
+
// key is any random string. like a url or filename or whatever.
|
|
13
|
+
//
|
|
14
|
+
// will return either a falsey value, indicating that the
|
|
15
|
+
// request for this key is already in flight, or a new callback
|
|
16
|
+
// which when called will call all callbacks passed to inflightk
|
|
17
|
+
// with the same key
|
|
18
|
+
callback = inflight(key, callback)
|
|
19
|
+
|
|
20
|
+
// If we got a falsey value back, then there's already a req going
|
|
21
|
+
if (!callback) return
|
|
22
|
+
|
|
23
|
+
// this is where you'd fetch the url or whatever
|
|
24
|
+
// callback is also once()-ified, so it can safely be assigned
|
|
25
|
+
// to multiple events etc. First call wins.
|
|
26
|
+
setTimeout(function() {
|
|
27
|
+
callback(null, key)
|
|
28
|
+
}, 100)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// only assigns a single setTimeout
|
|
32
|
+
// when it dings, all cbs get called
|
|
33
|
+
req('foo', cb1)
|
|
34
|
+
req('foo', cb2)
|
|
35
|
+
req('foo', cb3)
|
|
36
|
+
req('foo', cb4)
|
|
37
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Browser-friendly inheritance fully compatible with standard node.js
|
|
2
|
+
[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
|
|
3
|
+
|
|
4
|
+
This package exports standard `inherits` from node.js `util` module in
|
|
5
|
+
node environment, but also provides alternative browser-friendly
|
|
6
|
+
implementation through [browser
|
|
7
|
+
field](https://gist.github.com/shtylman/4339901). Alternative
|
|
8
|
+
implementation is a literal copy of standard one located in standalone
|
|
9
|
+
module to avoid requiring of `util`. It also has a shim for old
|
|
10
|
+
browsers with no `Object.create` support.
|
|
11
|
+
|
|
12
|
+
While keeping you sure you are using standard `inherits`
|
|
13
|
+
implementation in node.js environment, it allows bundlers such as
|
|
14
|
+
[browserify](https://github.com/substack/node-browserify) to not
|
|
15
|
+
include full `util` package to your client code if all you need is
|
|
16
|
+
just `inherits` function. It worth, because browser shim for `util`
|
|
17
|
+
package is large and `inherits` is often the single function you need
|
|
18
|
+
from it.
|
|
19
|
+
|
|
20
|
+
It's recommended to use this package instead of
|
|
21
|
+
`require('util').inherits` for any code that has chances to be used
|
|
22
|
+
not only in node.js but in browser too.
|
|
23
|
+
|
|
24
|
+
## usage
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
var inherits = require('inherits');
|
|
28
|
+
// then use exactly as the standard one
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## note on version ~1.0
|
|
32
|
+
|
|
33
|
+
Version ~1.0 had completely different motivation and is not compatible
|
|
34
|
+
neither with 2.0 nor with standard node.js `inherits`.
|
|
35
|
+
|
|
36
|
+
If you are using version ~1.0 and planning to switch to ~2.0, be
|
|
37
|
+
careful:
|
|
38
|
+
|
|
39
|
+
* new version uses `super_` instead of `super` for referencing
|
|
40
|
+
superclass
|
|
41
|
+
* new version overwrites current prototype while old one preserves any
|
|
42
|
+
existing fields on it
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
An ini format parser and serializer for node.
|
|
2
|
+
|
|
3
|
+
Sections are treated as nested objects. Items before the first
|
|
4
|
+
heading are saved on the object directly.
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
Consider an ini-file `config.ini` that looks like this:
|
|
9
|
+
|
|
10
|
+
; this comment is being ignored
|
|
11
|
+
scope = global
|
|
12
|
+
|
|
13
|
+
[database]
|
|
14
|
+
user = dbuser
|
|
15
|
+
password = dbpassword
|
|
16
|
+
database = use_this_database
|
|
17
|
+
|
|
18
|
+
[paths.default]
|
|
19
|
+
datadir = /var/lib/data
|
|
20
|
+
array[] = first value
|
|
21
|
+
array[] = second value
|
|
22
|
+
array[] = third value
|
|
23
|
+
|
|
24
|
+
You can read, manipulate and write the ini-file like so:
|
|
25
|
+
|
|
26
|
+
var fs = require('fs')
|
|
27
|
+
, ini = require('ini')
|
|
28
|
+
|
|
29
|
+
var config = ini.parse(fs.readFileSync('./config.ini', 'utf-8'))
|
|
30
|
+
|
|
31
|
+
config.scope = 'local'
|
|
32
|
+
config.database.database = 'use_another_database'
|
|
33
|
+
config.paths.default.tmpdir = '/tmp'
|
|
34
|
+
delete config.paths.default.datadir
|
|
35
|
+
config.paths.default.array.push('fourth value')
|
|
36
|
+
|
|
37
|
+
fs.writeFileSync('./config_modified.ini', ini.stringify(config, { section: 'section' }))
|
|
38
|
+
|
|
39
|
+
This will result in a file called `config_modified.ini` being written
|
|
40
|
+
to the filesystem with the following content:
|
|
41
|
+
|
|
42
|
+
[section]
|
|
43
|
+
scope=local
|
|
44
|
+
[section.database]
|
|
45
|
+
user=dbuser
|
|
46
|
+
password=dbpassword
|
|
47
|
+
database=use_another_database
|
|
48
|
+
[section.paths.default]
|
|
49
|
+
tmpdir=/tmp
|
|
50
|
+
array[]=first value
|
|
51
|
+
array[]=second value
|
|
52
|
+
array[]=third value
|
|
53
|
+
array[]=fourth value
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## API
|
|
57
|
+
|
|
58
|
+
### decode(inistring)
|
|
59
|
+
|
|
60
|
+
Decode the ini-style formatted `inistring` into a nested object.
|
|
61
|
+
|
|
62
|
+
### parse(inistring)
|
|
63
|
+
|
|
64
|
+
Alias for `decode(inistring)`
|
|
65
|
+
|
|
66
|
+
### encode(object, [options])
|
|
67
|
+
|
|
68
|
+
Encode the object `object` into an ini-style formatted string. If the
|
|
69
|
+
optional parameter `section` is given, then all top-level properties
|
|
70
|
+
of the object are put into this section and the `section`-string is
|
|
71
|
+
prepended to all sub-sections, see the usage example above.
|
|
72
|
+
|
|
73
|
+
The `options` object may contain the following:
|
|
74
|
+
|
|
75
|
+
* `section` A string which will be the first `section` in the encoded
|
|
76
|
+
ini data. Defaults to none.
|
|
77
|
+
* `whitespace` Boolean to specify whether to put whitespace around the
|
|
78
|
+
`=` character. By default, whitespace is omitted, to be friendly to
|
|
79
|
+
some persnickety old parsers that don't tolerate it well. But some
|
|
80
|
+
find that it's more human-readable and pretty with the whitespace.
|
|
81
|
+
|
|
82
|
+
For backwards compatibility reasons, if a `string` options is passed
|
|
83
|
+
in, then it is assumed to be the `section` value.
|
|
84
|
+
|
|
85
|
+
### stringify(object, [options])
|
|
86
|
+
|
|
87
|
+
Alias for `encode(object, [options])`
|
|
88
|
+
|
|
89
|
+
### safe(val)
|
|
90
|
+
|
|
91
|
+
Escapes the string `val` such that it is safe to be used as a key or
|
|
92
|
+
value in an ini-file. Basically escapes quotes. For example
|
|
93
|
+
|
|
94
|
+
ini.safe('"unsafe string"')
|
|
95
|
+
|
|
96
|
+
would result in
|
|
97
|
+
|
|
98
|
+
"\"unsafe string\""
|
|
99
|
+
|
|
100
|
+
### unsafe(val)
|
|
101
|
+
|
|
102
|
+
Unescapes the string `val`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# is-ci
|
|
2
|
+
|
|
3
|
+
Returns `true` if the current environment is a Continuous Integration
|
|
4
|
+
server.
|
|
5
|
+
|
|
6
|
+
Please [open an issue](https://github.com/watson/is-ci/issues) if your
|
|
7
|
+
CI server isn't properly detected :)
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/is-ci)
|
|
10
|
+
[](https://github.com/watson/is-ci/actions)
|
|
11
|
+
[](https://github.com/feross/standard)
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install is-ci --save
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Programmatic Usage
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
const isCI = require('is-ci')
|
|
23
|
+
|
|
24
|
+
if (isCI) {
|
|
25
|
+
console.log('The code is running on a CI server')
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## CLI Usage
|
|
30
|
+
|
|
31
|
+
For CLI usage you need to have the `is-ci` executable in your `PATH`.
|
|
32
|
+
There's a few ways to do that:
|
|
33
|
+
|
|
34
|
+
- Either install the module globally using `npm install is-ci -g`
|
|
35
|
+
- Or add the module as a dependency to your app in which case it can be
|
|
36
|
+
used inside your package.json scripts as is
|
|
37
|
+
- Or provide the full path to the executable, e.g.
|
|
38
|
+
`./node_modules/.bin/is-ci`
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
is-ci && echo "This is a CI server"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Supported CI tools
|
|
45
|
+
|
|
46
|
+
Refer to [ci-info](https://github.com/watson/ci-info#supported-ci-tools) docs for all supported CI's
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# is-fullwidth-code-point [](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
|
|
2
|
+
|
|
3
|
+
> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install is-fullwidth-code-point
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const isFullwidthCodePoint = require('is-fullwidth-code-point');
|
|
17
|
+
|
|
18
|
+
isFullwidthCodePoint('谢'.codePointAt(0));
|
|
19
|
+
//=> true
|
|
20
|
+
|
|
21
|
+
isFullwidthCodePoint('a'.codePointAt(0));
|
|
22
|
+
//=> false
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## API
|
|
27
|
+
|
|
28
|
+
### isFullwidthCodePoint(codePoint)
|
|
29
|
+
|
|
30
|
+
#### codePoint
|
|
31
|
+
|
|
32
|
+
Type: `number`
|
|
33
|
+
|
|
34
|
+
The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# is-installed-globally
|
|
2
|
+
|
|
3
|
+
> Check if your package was installed globally
|
|
4
|
+
|
|
5
|
+
Can be useful if your CLI needs different behavior when installed globally and locally.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ npm install is-installed-globally
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const isInstalledGlobally = require('is-installed-globally');
|
|
17
|
+
|
|
18
|
+
// With `npm install your-package`
|
|
19
|
+
console.log(isInstalledGlobally);
|
|
20
|
+
//=> false
|
|
21
|
+
|
|
22
|
+
// With `npm install --global your-package`
|
|
23
|
+
console.log(isInstalledGlobally);
|
|
24
|
+
//=> true
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Related
|
|
28
|
+
|
|
29
|
+
- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module
|
|
30
|
+
- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module
|
|
31
|
+
- [global-dirs](https://github.com/sindresorhus/global-dirs) - Get the directory of globally installed packages and binaries
|