Compare commits

...

4 Commits

Author SHA1 Message Date
dependabot[bot]
780c3628bb chore(deps): bump minimatch from 3.0.4 to 3.0.5
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.0.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 13:52:06 +00:00
SvetlanaMuravlova
4ee06384dd fix(chore): updated publish yml file 2022-12-08 15:51:12 +02:00
SvetlanaMuravlova
ad01e31cf8 feat(core): updated version up to angular 14 and nx 14 (#1205)
* feat(chore): updated version up to angular 13 and nx 13

* version fixies

* chore(bump): updated version up to angular, nx 14

* check key

* fix(ci): fixed yml files

* fix(ci): fix build commands

* fix(ci): fix build commands

* fix(ci): fix build commands

* fix(ci): fix build commands

* fix(chore): fixed peerdependencies

* fix(test): deleted ts-ignore from .spec files

* fix(test): little cleaning

* fix(chore): deleted unnecessery command
2022-09-28 02:05:37 -07:00
Rick van Lieshout
6608960cec feat(package): Added support for Angular 13. fixes #1193 (#1201)
* updated versioning, added changelog docs

* update to angular 12

* update of eslint

* update of angular 13

* updated nx to 13
2022-07-19 23:53:57 +03:00
29 changed files with 10375 additions and 20219 deletions

View File

@@ -8,12 +8,7 @@
], ],
"overrides": [ "overrides": [
{ {
"files": [ "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"*.ts",
"*.tsx",
"*.js",
"*.jsx"
],
"rules": { "rules": {
"@nrwl/nx/enforce-module-boundaries": [ "@nrwl/nx/enforce-module-boundaries": [
"error", "error",
@@ -21,39 +16,25 @@
"enforceBuildableLibDependency": true, "enforceBuildableLibDependency": true,
"allow": [], "allow": [],
"depConstraints": [ "depConstraints": [
{ { "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
"sourceTag": "*",
"onlyDependOnLibsWithTags": [
"*"
]
}
] ]
} }
] ]
} }
}, },
{ {
"files": [ "files": ["*.ts", "*.tsx"],
"*.ts", "extends": ["plugin:@nrwl/nx/typescript"],
"*.tsx"
],
"extends": [
"plugin:@nrwl/nx/typescript"
],
"parserOptions": { "project": "./tsconfig.*?.json" }, "parserOptions": { "project": "./tsconfig.*?.json" },
"rules": { "rules": {
"semi": "off", "semi": "off",
"@typescript-eslint/semi": ["error"] "@typescript-eslint/semi": ["error"],
"@typescript-eslint/ban-ts-comment": "off"
} }
}, },
{ {
"files": [ "files": ["*.js", "*.jsx"],
"*.js", "extends": ["plugin:@nrwl/nx/javascript"],
"*.jsx"
],
"extends": [
"plugin:@nrwl/nx/javascript"
],
"rules": {} "rules": {}
} }
] ]

View File

@@ -26,8 +26,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: one_run needs: one_run
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v3
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
id: cache id: cache
with: with:
path: node_modules path: node_modules
@@ -40,25 +40,27 @@ jobs:
needs: install needs: install
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v3
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }} key: node_modules-${{ hashFiles('**/package-lock.json') }}
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
with: with:
path: | path: |
dist dist
key: dist-${{ github.run_id }} key: dist-${{ github.run_id }}
- run: npx ng build --prod - run: |
npx nx run ng2-file-upload:build
npx nx run ng2-file-upload-demo:build
# update release notes in github # update release notes in github
update_release_draft: update_release_draft:
needs: install needs: install
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v3
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }} key: node_modules-${{ hashFiles('**/package-lock.json') }}
@@ -69,17 +71,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v3
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v3
with: with:
ref: 'gh-pages' ref: 'gh-pages'
path: 'gh-pages' path: 'gh-pages'
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }} key: node_modules-${{ hashFiles('**/package-lock.json') }}
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
with: with:
path: | path: |
dist dist
@@ -104,12 +106,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v3
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }} key: node_modules-${{ hashFiles('**/package-lock.json') }}
- uses: actions/cache@v2.1.4 - uses: actions/cache@v3
with: with:
path: | path: |
dist dist

View File

@@ -59,7 +59,7 @@ jobs:
with: with:
path: ${{ env.CACHE_DIST_PATH }} path: ${{ env.CACHE_DIST_PATH }}
key: dist-${{ github.run_id }} key: dist-${{ github.run_id }}
- run: npx ng build --prod - run: npx nx run ng2-file-upload-demo:build
# run unit tests # run unit tests
unit_tests_with_coverage: unit_tests_with_coverage:

1
.gitignore vendored
View File

@@ -12,6 +12,7 @@
.settings/ .settings/
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@@ -1,207 +1,168 @@
# [2.0.0-3](https://github.com/valor-software/ng2-file-upload/compare/v2.0.0-2...v2.0.0-3) (2021-09-07) # [3.0.0]()
Updated the library and test project to Angular 13
# [2.0.0-3](https://github.com/valor-software/ng2-file-upload/compare/v2.0.0-2...v2.0.0-3) (2021-09-07)
### Features ### Features
* **demo:** updated up to bootstrap 5 ([#1186](https://github.com/valor-software/ng2-file-upload/issues/1186)) ([02a1b2a](https://github.com/valor-software/ng2-file-upload/commit/02a1b2a53c331e2088ea05d2202be6eb2b1d051f)) - **demo:** updated up to bootstrap 5 ([#1186](https://github.com/valor-software/ng2-file-upload/issues/1186)) ([02a1b2a](https://github.com/valor-software/ng2-file-upload/commit/02a1b2a53c331e2088ea05d2202be6eb2b1d051f))
# [2.0.0-2](https://github.com/valor-software/ng2-file-upload/compare/v2.0.0-1...v2.0.0-2) (2021-09-03) # [2.0.0-2](https://github.com/valor-software/ng2-file-upload/compare/v2.0.0-1...v2.0.0-2) (2021-09-03)
# [2.0.0-1](https://github.com/valor-software/ng2-file-upload/compare/v2.0.0-0...v2.0.0-1) (2021-09-03) # [2.0.0-1](https://github.com/valor-software/ng2-file-upload/compare/v2.0.0-0...v2.0.0-1) (2021-09-03)
### Features ### Features
* **version:** added npm versions ([#1183](https://github.com/valor-software/ng2-file-upload/issues/1183)) ([326e3ac](https://github.com/valor-software/ng2-file-upload/commit/326e3ac1a884f000f57b3fb6e30cd32f5ec4622c)) - **version:** added npm versions ([#1183](https://github.com/valor-software/ng2-file-upload/issues/1183)) ([326e3ac](https://github.com/valor-software/ng2-file-upload/commit/326e3ac1a884f000f57b3fb6e30cd32f5ec4622c))
# [2.0.0-0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v2.0.0-0) (2021-09-03) # [2.0.0-0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v2.0.0-0) (2021-09-03)
### Bug Fixes ### Bug Fixes
* **ci:** fix xvfb service issue ([33ac156](https://github.com/valor-software/ng2-file-upload/commit/33ac156208bfcf57851210f037719107e1ca9eb9)) - **ci:** fix xvfb service issue ([33ac156](https://github.com/valor-software/ng2-file-upload/commit/33ac156208bfcf57851210f037719107e1ca9eb9))
* **typo:** fix grammatical mistake in readme ([#1119](https://github.com/valor-software/ng2-file-upload/issues/1119)) ([8171bc8](https://github.com/valor-software/ng2-file-upload/commit/8171bc831b69692d04b650be19ff82f04ff56662)) - **typo:** fix grammatical mistake in readme ([#1119](https://github.com/valor-software/ng2-file-upload/issues/1119)) ([8171bc8](https://github.com/valor-software/ng2-file-upload/commit/8171bc831b69692d04b650be19ff82f04ff56662))
### Features ### Features
* **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e970276ebcd8bfefe34bf153f82108a11e)) - **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e970276ebcd8bfefe34bf153f82108a11e))
# [1.3.0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.3.0) (2021-08-31) # [1.3.0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.3.0) (2021-08-31)
### Bug Fixes ### Bug Fixes
* **ci:** fix xvfb service issue ([33ac156](https://github.com/valor-software/ng2-file-upload/commit/33ac156208bfcf57851210f037719107e1ca9eb9)) - **ci:** fix xvfb service issue ([33ac156](https://github.com/valor-software/ng2-file-upload/commit/33ac156208bfcf57851210f037719107e1ca9eb9))
* **style:** delete extra rule ([b5917b9](https://github.com/valor-software/ng2-file-upload/commit/b5917b9fa77e63c4c1b06598abc817b8033730c3)) - **style:** delete extra rule ([b5917b9](https://github.com/valor-software/ng2-file-upload/commit/b5917b9fa77e63c4c1b06598abc817b8033730c3))
* **typo:** fix grammatical mistake in readme ([#1119](https://github.com/valor-software/ng2-file-upload/issues/1119)) ([8171bc8](https://github.com/valor-software/ng2-file-upload/commit/8171bc831b69692d04b650be19ff82f04ff56662)) - **typo:** fix grammatical mistake in readme ([#1119](https://github.com/valor-software/ng2-file-upload/issues/1119)) ([8171bc8](https://github.com/valor-software/ng2-file-upload/commit/8171bc831b69692d04b650be19ff82f04ff56662))
### Features ### Features
* **bump:** added strict mode, doesn't build in dist, should be resolved ([69cd64d](https://github.com/valor-software/ng2-file-upload/commit/69cd64dc287c9bdd1c35af1062e27ce32a47e977)) - **bump:** added strict mode, doesn't build in dist, should be resolved ([69cd64d](https://github.com/valor-software/ng2-file-upload/commit/69cd64dc287c9bdd1c35af1062e27ce32a47e977))
* **core:** added nx ([de738f7](https://github.com/valor-software/ng2-file-upload/commit/de738f7c63d7f37e07019bc596c02e9f4320f563)) - **core:** added nx ([de738f7](https://github.com/valor-software/ng2-file-upload/commit/de738f7c63d7f37e07019bc596c02e9f4320f563))
* **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e970276ebcd8bfefe34bf153f82108a11e)) - **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e970276ebcd8bfefe34bf153f82108a11e))
* **upgrade:** updated up to angular 11 tests are failed ([ce9dc20](https://github.com/valor-software/ng2-file-upload/commit/ce9dc20056cc6c7cd58e502af05d7d97043c8f3a)) - **upgrade:** updated up to angular 11 tests are failed ([ce9dc20](https://github.com/valor-software/ng2-file-upload/commit/ce9dc20056cc6c7cd58e502af05d7d97043c8f3a))
# [1.3.0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.3.0) (2021-08-31) # [1.3.0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.3.0) (2021-08-31)
### Bug Fixes ### Bug Fixes
* **ci:** fix xvfb service issue ([33ac156](https://github.com/valor-software/ng2-file-upload/commit/33ac156208bfcf57851210f037719107e1ca9eb9)) - **ci:** fix xvfb service issue ([33ac156](https://github.com/valor-software/ng2-file-upload/commit/33ac156208bfcf57851210f037719107e1ca9eb9))
* **style:** delete extra rule ([b5917b9](https://github.com/valor-software/ng2-file-upload/commit/b5917b9fa77e63c4c1b06598abc817b8033730c3)) - **style:** delete extra rule ([b5917b9](https://github.com/valor-software/ng2-file-upload/commit/b5917b9fa77e63c4c1b06598abc817b8033730c3))
* **typo:** fix grammatical mistake in readme ([#1119](https://github.com/valor-software/ng2-file-upload/issues/1119)) ([8171bc8](https://github.com/valor-software/ng2-file-upload/commit/8171bc831b69692d04b650be19ff82f04ff56662)) - **typo:** fix grammatical mistake in readme ([#1119](https://github.com/valor-software/ng2-file-upload/issues/1119)) ([8171bc8](https://github.com/valor-software/ng2-file-upload/commit/8171bc831b69692d04b650be19ff82f04ff56662))
### Features ### Features
* **bump:** added strict mode, doesn't build in dist, should be resolved ([69cd64d](https://github.com/valor-software/ng2-file-upload/commit/69cd64dc287c9bdd1c35af1062e27ce32a47e977)) - **bump:** added strict mode, doesn't build in dist, should be resolved ([69cd64d](https://github.com/valor-software/ng2-file-upload/commit/69cd64dc287c9bdd1c35af1062e27ce32a47e977))
* **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e970276ebcd8bfefe34bf153f82108a11e)) - **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e970276ebcd8bfefe34bf153f82108a11e))
* **upgrade:** updated up to angular 11 tests are failed ([ce9dc20](https://github.com/valor-software/ng2-file-upload/commit/ce9dc20056cc6c7cd58e502af05d7d97043c8f3a)) - **upgrade:** updated up to angular 11 tests are failed ([ce9dc20](https://github.com/valor-software/ng2-file-upload/commit/ce9dc20056cc6c7cd58e502af05d7d97043c8f3a))
<a name="1.3.0"></a> <a name="1.3.0"></a>
# [1.3.0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.3.0) (2017-11-25) # [1.3.0](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.3.0) (2017-11-25)
### Features ### Features
* **file-upload:** Add response and function to modify the request body ([#901](https://github.com/valor-software/ng2-file-upload/pull/901)) - **file-upload:** Add response and function to modify the request body ([#901](https://github.com/valor-software/ng2-file-upload/pull/901))
* **file-upload** add file type .zip ([#911](https://github.com/valor-software/ng2-file-upload/pull/911)) - **file-upload** add file type .zip ([#911](https://github.com/valor-software/ng2-file-upload/pull/911))
### Bug Fixes ### Bug Fixes
* **file-uploader** Update: setOptions ([#904](https://github.com/valor-software/ng2-file-upload/pull/904))
* **docs** Fix correct path for isHTML5 option ([#844](https://github.com/valor-software/ng2-file-upload/pull/844))
* **docs** Added onFileDrop() event to documentation ([#857](https://github.com/valor-software/ng2-file-upload/pull/857))
- **file-uploader** Update: setOptions ([#904](https://github.com/valor-software/ng2-file-upload/pull/904))
- **docs** Fix correct path for isHTML5 option ([#844](https://github.com/valor-software/ng2-file-upload/pull/844))
- **docs** Added onFileDrop() event to documentation ([#857](https://github.com/valor-software/ng2-file-upload/pull/857))
<a name="1.2.1"></a> <a name="1.2.1"></a>
## [1.2.1](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.2.1) (2017-04-10) ## [1.2.1](https://github.com/valor-software/ng2-file-upload/compare/v1.2.0...v1.2.1) (2017-04-10)
### Features ### Features
* **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e)) - **package:** relaxed peer dependencies to allow ng v4 ([#713](https://github.com/valor-software/ng2-file-upload/issues/713)) ([7704e0e](https://github.com/valor-software/ng2-file-upload/commit/7704e0e))
<a name="1.2.0"></a> <a name="1.2.0"></a>
# [1.2.0](https://github.com/valor-software/ng2-file-upload/compare/v1.1.3-0...v1.2.0) (2017-01-17) # [1.2.0](https://github.com/valor-software/ng2-file-upload/compare/v1.1.3-0...v1.2.0) (2017-01-17)
### Bug Fixes ### Bug Fixes
* **headers:** Add FileItem headers to XHR ([#553](https://github.com/valor-software/ng2-file-upload/issues/553)) ([e4a7099](https://github.com/valor-software/ng2-file-upload/commit/e4a7099)), closes [#552](https://github.com/valor-software/ng2-file-upload/issues/552) - **headers:** Add FileItem headers to XHR ([#553](https://github.com/valor-software/ng2-file-upload/issues/553)) ([e4a7099](https://github.com/valor-software/ng2-file-upload/commit/e4a7099)), closes [#552](https://github.com/valor-software/ng2-file-upload/issues/552)
### Features ### Features
* **file-select:** Clear file select automatically ([#524](https://github.com/valor-software/ng2-file-upload/issues/524)) ([410efda](https://github.com/valor-software/ng2-file-upload/commit/410efda)) - **file-select:** Clear file select automatically ([#524](https://github.com/valor-software/ng2-file-upload/issues/524)) ([410efda](https://github.com/valor-software/ng2-file-upload/commit/410efda))
* **fileUpload:** added additionalParameter ([#565](https://github.com/valor-software/ng2-file-upload/issues/565)) ([397de09](https://github.com/valor-software/ng2-file-upload/commit/397de09)) - **fileUpload:** added additionalParameter ([#565](https://github.com/valor-software/ng2-file-upload/issues/565)) ([397de09](https://github.com/valor-software/ng2-file-upload/commit/397de09))
* **package:** upgrade to ng v2.3+ ([#574](https://github.com/valor-software/ng2-file-upload/issues/574)) ([3cc6a99](https://github.com/valor-software/ng2-file-upload/commit/3cc6a99)) - **package:** upgrade to ng v2.3+ ([#574](https://github.com/valor-software/ng2-file-upload/issues/574)) ([3cc6a99](https://github.com/valor-software/ng2-file-upload/commit/3cc6a99))
<a name="1.1.3-0"></a> <a name="1.1.3-0"></a>
## [1.1.3-0](https://github.com/valor-software/ng2-file-upload/compare/v1.1.2...v1.1.3-0) (2016-10-19) ## [1.1.3-0](https://github.com/valor-software/ng2-file-upload/compare/v1.1.2...v1.1.3-0) (2016-10-19)
### Bug Fixes ### Bug Fixes
* **typing:** added authTokenHeader property to options and file upload class ([b55c852](https://github.com/valor-software/ng2-file-upload/commit/b55c852)) - **typing:** added authTokenHeader property to options and file upload class ([b55c852](https://github.com/valor-software/ng2-file-upload/commit/b55c852))
### Features ### Features
* **build:** added support for AoT and ng-cli ([f0b2879](https://github.com/valor-software/ng2-file-upload/commit/f0b2879)), closes [#436](https://github.com/valor-software/ng2-file-upload/issues/436) - **build:** added support for AoT and ng-cli ([f0b2879](https://github.com/valor-software/ng2-file-upload/commit/f0b2879)), closes [#436](https://github.com/valor-software/ng2-file-upload/issues/436)
* **file-upload:** Add the possibility of set the token header ([#213](https://github.com/valor-software/ng2-file-upload/issues/213)) ([282295c](https://github.com/valor-software/ng2-file-upload/commit/282295c)) - **file-upload:** Add the possibility of set the token header ([#213](https://github.com/valor-software/ng2-file-upload/issues/213)) ([282295c](https://github.com/valor-software/ng2-file-upload/commit/282295c))
<a name="1.1.2"></a> <a name="1.1.2"></a>
## [1.1.2](https://github.com/valor-software/ng2-file-upload/compare/v1.1.1...v1.1.2) (2016-10-17) ## [1.1.2](https://github.com/valor-software/ng2-file-upload/compare/v1.1.1...v1.1.2) (2016-10-17)
### Features ### Features
* **package:** allow of ng2 v2.0.* and v2.*.* ([87395e6](https://github.com/valor-software/ng2-file-upload/commit/87395e6)) - **package:** allow of ng2 v2.0._ and v2._.\* ([87395e6](https://github.com/valor-software/ng2-file-upload/commit/87395e6))
<a name="1.1.1"></a> <a name="1.1.1"></a>
## [1.1.1](https://github.com/valor-software/ng2-file-upload/compare/v1.0.3...v1.1.1) (2016-10-17) ## [1.1.1](https://github.com/valor-software/ng2-file-upload/compare/v1.0.3...v1.1.1) (2016-10-17)
### Bug Fixes ### Bug Fixes
* **uploader:** Add the ability to upload files via PUT instead of POST ([#239](https://github.com/valor-software/ng2-file-upload/issues/239)) ([e068511](https://github.com/valor-software/ng2-file-upload/commit/e068511)) - **uploader:** Add the ability to upload files via PUT instead of POST ([#239](https://github.com/valor-software/ng2-file-upload/issues/239)) ([e068511](https://github.com/valor-software/ng2-file-upload/commit/e068511))
* **zone.js:** error in Safari, Added Typings ([#221](https://github.com/valor-software/ng2-file-upload/issues/221)) ([db77e89](https://github.com/valor-software/ng2-file-upload/commit/db77e89)) - **zone.js:** error in Safari, Added Typings ([#221](https://github.com/valor-software/ng2-file-upload/issues/221)) ([db77e89](https://github.com/valor-software/ng2-file-upload/commit/db77e89))
### Features ### Features
* **multipart:** Create disableMultipart option in FileUploader ([#224](https://github.com/valor-software/ng2-file-upload/issues/224)) ([22307d2](https://github.com/valor-software/ng2-file-upload/commit/22307d2)) - **multipart:** Create disableMultipart option in FileUploader ([#224](https://github.com/valor-software/ng2-file-upload/issues/224)) ([22307d2](https://github.com/valor-software/ng2-file-upload/commit/22307d2))
* **package:** angular ~2.0.1 stable release ([#425](https://github.com/valor-software/ng2-file-upload/issues/425)) ([3fec385](https://github.com/valor-software/ng2-file-upload/commit/3fec385)) - **package:** angular ~2.0.1 stable release ([#425](https://github.com/valor-software/ng2-file-upload/issues/425)) ([3fec385](https://github.com/valor-software/ng2-file-upload/commit/3fec385))
* **package:** updated to typescript 2 ([4fef496](https://github.com/valor-software/ng2-file-upload/commit/4fef496)) - **package:** updated to typescript 2 ([4fef496](https://github.com/valor-software/ng2-file-upload/commit/4fef496))
<a name="1.1.0"></a> <a name="1.1.0"></a>
# [1.1.0](https://github.com/valor-software/ng2-file-upload/compare/v1.0.3...v1.1.0) (2016-09-21)
# [1.1.0](https://github.com/valor-software/ng2-file-upload/compare/v1.0.3...v1.1.0) (2016-09-21)
### Bug Fixes ### Bug Fixes
* **uploader:** Add the ability to upload files via PUT instead of POST ([#239](https://github.com/valor-software/ng2-file-upload/issues/239)) ([e068511](https://github.com/valor-software/ng2-file-upload/commit/e068511)) - **uploader:** Add the ability to upload files via PUT instead of POST ([#239](https://github.com/valor-software/ng2-file-upload/issues/239)) ([e068511](https://github.com/valor-software/ng2-file-upload/commit/e068511))
* **zone.js:** error in Safari, Added Typings ([#221](https://github.com/valor-software/ng2-file-upload/issues/221)) ([db77e89](https://github.com/valor-software/ng2-file-upload/commit/db77e89)) - **zone.js:** error in Safari, Added Typings ([#221](https://github.com/valor-software/ng2-file-upload/issues/221)) ([db77e89](https://github.com/valor-software/ng2-file-upload/commit/db77e89))
### Features ### Features
* **multipart:** Create disableMultipart option in FileUploader ([#224](https://github.com/valor-software/ng2-file-upload/issues/224)) ([22307d2](https://github.com/valor-software/ng2-file-upload/commit/22307d2)) - **multipart:** Create disableMultipart option in FileUploader ([#224](https://github.com/valor-software/ng2-file-upload/issues/224)) ([22307d2](https://github.com/valor-software/ng2-file-upload/commit/22307d2))
* **package:** updated to typescript 2 ([4fef496](https://github.com/valor-software/ng2-file-upload/commit/4fef496)) - **package:** updated to typescript 2 ([4fef496](https://github.com/valor-software/ng2-file-upload/commit/4fef496))
<a name="1.0.3"></a> <a name="1.0.3"></a>
## [1.0.3](https://github.com/valor-software/ng2-file-upload/compare/v1.0.2...v1.0.3) (2016-05-12) ## [1.0.3](https://github.com/valor-software/ng2-file-upload/compare/v1.0.2...v1.0.3) (2016-05-12)
<a name="1.0.2"></a> <a name="1.0.2"></a>
## 1.0.2 (2016-05-12)
## 1.0.2 (2016-05-12)
### Bug Fixes ### Bug Fixes
* **upload:** merge fix and get filters fix ([ef6091c](https://github.com/valor-software/ng2-file-upload/commit/ef6091c)) - **upload:** merge fix and get filters fix ([ef6091c](https://github.com/valor-software/ng2-file-upload/commit/ef6091c))
### Chores ### Chores
* **build:** ng2 style guide applied ([aee69d8](https://github.com/valor-software/ng2-file-upload/commit/aee69d8)) - **build:** ng2 style guide applied ([aee69d8](https://github.com/valor-software/ng2-file-upload/commit/aee69d8))
### Features ### Features
* **package:** upgrade to angular 2.0.0-rc.1 ([#176](https://github.com/valor-software/ng2-file-upload/issues/176)) ([13c5c35](https://github.com/valor-software/ng2-file-upload/commit/13c5c35)), closes [#180](https://github.com/valor-software/ng2-file-upload/issues/180) - **package:** upgrade to angular 2.0.0-rc.1 ([#176](https://github.com/valor-software/ng2-file-upload/issues/176)) ([13c5c35](https://github.com/valor-software/ng2-file-upload/commit/13c5c35)), closes [#180](https://github.com/valor-software/ng2-file-upload/issues/180)
### BREAKING CHANGES ### BREAKING CHANGES
- directives and selectors renamed to ng2FileSelect and ng2FileDrop - directives and selectors renamed to ng2FileSelect and ng2FileDrop

View File

@@ -2,7 +2,6 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"defaultProject": "ng2-file-upload-demo",
"projects": { "projects": {
"ng2-file-upload": { "ng2-file-upload": {
"root": "libs/ng2-file-upload", "root": "libs/ng2-file-upload",
@@ -30,7 +29,10 @@
"lintFilePatterns": [ "lintFilePatterns": [
"libs/ng2-file-upload/**/*.ts" "libs/ng2-file-upload/**/*.ts"
] ]
} },
"outputs": [
"{options.outputFile}"
]
}, },
"test": { "test": {
"builder": "@nrwl/jest:jest", "builder": "@nrwl/jest:jest",
@@ -38,14 +40,13 @@
"coverage/libs/ng2-file-upload" "coverage/libs/ng2-file-upload"
], ],
"options": { "options": {
"jestConfig": "libs/ng2-file-upload/jest.config.js", "jestConfig": "libs/ng2-file-upload/jest.config.ts",
"passWithNoTests": true "passWithNoTests": true
} }
}, },
"version": { "version": {
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"outputs": [ "outputs": [],
],
"options": { "options": {
"commands": [ "commands": [
"ts-node ./scripts/set-version.ts", "ts-node ./scripts/set-version.ts",
@@ -59,7 +60,10 @@
"production": {} "production": {}
} }
} }
} },
"tags": [
"lib"
]
}, },
"ng2-file-upload-demo": { "ng2-file-upload-demo": {
"root": "apps/demo", "root": "apps/demo",
@@ -77,7 +81,14 @@
"apps/demo/src/assets" "apps/demo/src/assets"
], ],
"styles": [], "styles": [],
"scripts": [] "scripts": [],
"aot": false,
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"dependsOn": [ "dependsOn": [
{ {
@@ -90,7 +101,6 @@
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true, "aot": true,
"extractLicenses": true, "extractLicenses": true,
@@ -103,16 +113,17 @@
} }
] ]
} }
} },
"defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "ng2-file-upload-demo:build" "browserTarget": "ng2-file-upload-demo:build:production"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "ng2-file-upload-demo:build:production" "browserTarget": "ng2-file-upload-demo:build"
} }
} }
}, },
@@ -122,18 +133,16 @@
"lintFilePatterns": [ "lintFilePatterns": [
"apps/demo/**/*.ts" "apps/demo/**/*.ts"
] ]
} },
"outputs": [
"{options.outputFile}"
]
} }
} },
} "tags": [],
}, "implicitDependencies": [
"schematics": { "ng2-file-upload"
"@schematics/angular:component": { ]
"prefix": "",
"styleext": "css"
},
"@schematics/angular:directive": {
"prefix": ""
} }
} }
} }

View File

@@ -1,20 +1,28 @@
{ {
"extends": ["../../.eslintrc.json"], "extends": [
"ignorePatterns": ["!**/*"], "../../.eslintrc.json"
],
"ignorePatterns": [
"!**/*"
],
"overrides": [ "overrides": [
{ {
"files": ["*.ts"], "files": [
"*.ts"
],
"extends": [ "extends": [
"plugin:@nrwl/nx/angular", "plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates" "plugin:@angular-eslint/template/process-inline-templates"
], ],
"parserOptions": { "project": ["src/accordion/tsconfig.*?.json"] }, "rules": {}
"rules": {
}
}, },
{ {
"files": ["*.html"], "files": [
"extends": ["plugin:@nrwl/nx/angular-template"], "*.html"
],
"extends": [
"plugin:@nrwl/nx/angular-template"
],
"rules": {} "rules": {}
} }
] ]

View File

@@ -3,9 +3,7 @@
<tabset> <tabset>
<tab *ngFor="let desc of tabs" heading="{{desc.heading}}" (select)="select($event)"> <tab *ngFor="let desc of tabs" heading="{{desc.heading}}" (select)="select($event)">
<div class="card card-block p-3 border-top-0"> <div class="card card-block p-3 border-top-0">
<simple-demo></simple-demo> <simple-demo></simple-demo>
<br> <br>
<div class="container p-0"> <div class="container p-0">
<div class="row" style="margin: 0px;"> <div class="row" style="margin: 0px;">

View File

@@ -1,10 +1,12 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"files": [ "files": [
"./src/main.ts", "./src/main.ts",
"../../scripts/polyfills.ts" "../../scripts/polyfills.ts"
],
"include": [
"./src/typings.d.ts"
], ],
"include": ["./src/typings.d.ts"],
"references": [ "references": [
{ {
"path": "./tsconfig.app.json" "path": "./tsconfig.app.json"
@@ -16,5 +18,10 @@
"path": "./tsconfig.editor.json" "path": "./tsconfig.editor.json"
} }
], ],
"exclude": ["**/*.spec.ts"] "exclude": [
"**/*.spec.ts"
],
"compilerOptions": {
"target": "es2020"
}
} }

View File

@@ -1,5 +0,0 @@
module.exports = {
projects: [
'<rootDir>/libs/ng2-file-upload'
]
};

3
jest.config.ts Normal file
View File

@@ -0,0 +1,3 @@
const { getJestProjects } = require('@nrwl/jest');
export default {"projects": getJestProjects()};

View File

@@ -1,4 +1,4 @@
const nxPreset = require('@nrwl/jest/preset'); const nxPreset = require('@nrwl/jest/preset').default;
module.exports = { module.exports = {
...nxPreset, ...nxPreset,
...{ ...{

View File

@@ -1,20 +1,28 @@
{ {
"extends": ["../../.eslintrc.json"], "extends": [
"ignorePatterns": ["!**/*"], "../../.eslintrc.json"
],
"ignorePatterns": [
"!**/*"
],
"overrides": [ "overrides": [
{ {
"files": ["*.ts"], "files": [
"*.ts"
],
"extends": [ "extends": [
"plugin:@nrwl/nx/angular", "plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates" "plugin:@angular-eslint/template/process-inline-templates"
], ],
"parserOptions": { "project": ["src/accordion/tsconfig.*?.json"] }, "rules": {}
"rules": {
}
}, },
{ {
"files": ["*.html"], "files": [
"extends": ["plugin:@nrwl/nx/angular-template"], "*.html"
],
"extends": [
"plugin:@nrwl/nx/angular-template"
],
"rules": {} "rules": {}
} }
] ]

View File

@@ -3,6 +3,8 @@ import { NgModule } from '@angular/core';
import { FileDropDirective } from './file-drop.directive'; import { FileDropDirective } from './file-drop.directive';
import { FileSelectDirective } from './file-select.directive'; import { FileSelectDirective } from './file-select.directive';
export { FileDropDirective } from './file-drop.directive';
export { FileSelectDirective } from './file-select.directive';
@NgModule({ @NgModule({
imports: [ CommonModule ], imports: [ CommonModule ],

View File

@@ -1,26 +0,0 @@
module.exports = {
displayName: 'ng2-file-upload',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/testing/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
]
}
}
},
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/libs/ng2-file-upload',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
]
};

View File

@@ -0,0 +1,21 @@
/* eslint-disable */
export default {
displayName: 'ng2-file-upload',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/testing/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
}
},
coverageDirectory: '../../coverage/libs/ng2-file-upload',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment'
],
transform: { '^.+.(ts|mjs|js|html)$': 'jest-preset-angular' },
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
moduleFileExtensions: ['mjs', 'ts', 'js', 'html']
};

View File

@@ -1,12 +1,12 @@
{ {
"name": "ng2-file-upload", "name": "ng2-file-upload",
"version": "2.0.0-3", "version": "3.0.0",
"description": "Angular file uploader", "description": "Angular file uploader",
"author": "Dmitriy Shekhovtsov <valorkin@gmail.com>", "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
"license": "MIT", "license": "MIT",
"peerDependencies": { "peerDependencies": {
"@angular/core": "^11.0.0 || ^12.0.0", "@angular/core": "^14.0.0",
"@angular/common": "^11.0.0 || ^12.0.0" "@angular/common": "^14.0.0"
}, },
"sideEffects": false, "sideEffects": false,
"publishConfig": { "publishConfig": {

View File

@@ -1,6 +1,6 @@
import { Component, DebugElement } from '@angular/core'; import { Component, DebugElement } from '@angular/core';
import { By } from '@angular/platform-browser'; import { By } from '@angular/platform-browser';
import { inject, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FileUploader } from '../../file-upload/file-uploader.class'; import { FileUploader } from '../../file-upload/file-uploader.class';
import { FileUploadModule } from '../../file-upload/file-upload.module'; import { FileUploadModule } from '../../file-upload/file-upload.module';
@@ -28,7 +28,7 @@ describe('Directive: FileDropDirective', () => {
beforeEach(() => { beforeEach(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [ FileUploadModule ], imports: [ FileUploadModule ],
declarations: [ ContainerComponent ], declarations: [ ContainerComponent, FileDropDirective ],
providers: [ ContainerComponent ] providers: [ ContainerComponent ]
}); });
}); });
@@ -72,19 +72,21 @@ describe('Directive: FileDropDirective', () => {
const filters = fileDropDirective.getFilters(); const filters = fileDropDirective.getFilters();
// TODO: Update test once implemented // TODO: Update test once implemented
expect(filters).toEqual({}); expect(filters).toBeFalsy();
}); });
it('handles drop event', () => { it('handles drop event', () => {
spyOn(fileDropDirective, 'onDrop'); const drop = jest.spyOn(fileDropDirective, 'onDrop');
directiveElement.triggerEventHandler('drop', getFakeEventData()); directiveElement.triggerEventHandler('drop', getFakeEventData());
expect(fileDropDirective.onDrop).toHaveBeenCalled(); expect(drop).toHaveBeenCalled();
}); });
it('adds file to upload', () => { it('adds file to upload', () => {
spyOn(fileDropDirective.uploader, 'addToQueue'); let addToQueue;
if (fileDropDirective.uploader?.addToQueue) {
addToQueue = jest.spyOn(fileDropDirective.uploader, 'addToQueue');
}
let fileOverData; let fileOverData;
fileDropDirective.fileOver.subscribe((data: any) => fileOverData = data); fileDropDirective.fileOver.subscribe((data: any) => fileOverData = data);
@@ -96,13 +98,13 @@ describe('Directive: FileDropDirective', () => {
const uploadedFiles = getFakeEventData().dataTransfer.files; const uploadedFiles = getFakeEventData().dataTransfer.files;
expect(fileDropDirective.uploader.addToQueue).toHaveBeenCalledWith(uploadedFiles, fileDropDirective.getOptions(), fileDropDirective.getFilters()); expect(addToQueue).toHaveBeenCalledWith(uploadedFiles, fileDropDirective.getOptions(), fileDropDirective.getFilters());
expect(fileOverData).toBeFalsy(); expect(fileOverData).toBeFalsy();
expect(fileDropData).toEqual(uploadedFiles); expect(fileDropData).toEqual(uploadedFiles);
}); });
it('handles dragover event', () => { it('handles dragover event', () => {
spyOn(fileDropDirective, 'onDragOver'); jest.spyOn(fileDropDirective, 'onDragOver');
directiveElement.triggerEventHandler('dragover', getFakeEventData()); directiveElement.triggerEventHandler('dragover', getFakeEventData());
@@ -119,7 +121,7 @@ describe('Directive: FileDropDirective', () => {
}); });
it('handles dragleave event', () => { it('handles dragleave event', () => {
spyOn(fileDropDirective, 'onDragLeave'); jest.spyOn(fileDropDirective, 'onDragLeave');
directiveElement.triggerEventHandler('dragleave', getFakeEventData()); directiveElement.triggerEventHandler('dragleave', getFakeEventData());

View File

@@ -72,7 +72,7 @@ describe('Directive: FileSelectDirective', () => {
const filters = fileSelectDirective.getFilters(); const filters = fileSelectDirective.getFilters();
// TODO: Update test once implemented // TODO: Update test once implemented
expect(filters).toEqual({}); expect(filters).toEqual('');
}); });
it('can check if element is empty', () => { it('can check if element is empty', () => {
@@ -82,18 +82,20 @@ describe('Directive: FileSelectDirective', () => {
}); });
it('can listed on change event', () => { it('can listed on change event', () => {
spyOn(fileSelectDirective, 'onChange'); const change = jest.spyOn(fileSelectDirective, 'onChange');
directiveElement.triggerEventHandler('change', {}); directiveElement.triggerEventHandler('change', {});
expect(fileSelectDirective.onChange).toHaveBeenCalled(); expect(change).toHaveBeenCalled();
}); });
it('handles change event', () => { it('handles change event', () => {
spyOn(fileSelectDirective.uploader, 'addToQueue'); let addToQueue;
if (fileSelectDirective.uploader?.addToQueue) {
addToQueue = jest.spyOn(fileSelectDirective.uploader, 'addToQueue');
}
fileSelectDirective.onChange(); fileSelectDirective.onChange();
expect(fileSelectDirective.uploader.addToQueue).toHaveBeenCalledWith(directiveElement.nativeElement.files, fileSelectDirective.getOptions(), fileSelectDirective.getFilters()); expect(addToQueue).toHaveBeenCalledWith(directiveElement.nativeElement.files, fileSelectDirective.getOptions(), fileSelectDirective.getFilters());
}); });
}); });

View File

@@ -1 +1 @@
import 'jest-preset-angular'; import 'jest-preset-angular/setup-jest';

View File

@@ -17,7 +17,8 @@
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,
"noImplicitReturns": true, "noImplicitReturns": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true,
"target": "es2020"
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"strictInjectionParameters": true, "strictInjectionParameters": true,
@@ -25,4 +26,3 @@
"fullTemplateTypeCheck": true "fullTemplateTypeCheck": true
} }
} }

View File

@@ -2,12 +2,15 @@
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc", "outDir": "../../dist/out-tsc",
"target": "es2015", "target": "es2020",
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,
"inlineSources": true, "inlineSources": true,
"types": [], "types": [],
"lib": ["dom", "es2018"] "lib": [
"dom",
"es2018"
]
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"skipTemplateCodegen": true, "skipTemplateCodegen": true,
@@ -18,6 +21,8 @@
"**/*.ts" "**/*.ts"
], ],
"exclude": [ "exclude": [
"**/*.spec.ts" "**/*.spec.ts",
"**/*.test.ts",
"jest.config.ts"
] ]
} }

View File

@@ -1,10 +1,12 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{ {
"extends": "./tsconfig.lib.json", "extends": "./tsconfig.lib.json",
"compilerOptions": { "compilerOptions": {
"declarationMap": false "declarationMap": false
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false "compilationMode": "partial"
} },
"exclude": [
"jest.config.ts"
]
} }

View File

@@ -3,10 +3,18 @@
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc", "outDir": "../../dist/out-tsc",
"module": "commonjs", "module": "commonjs",
"types": ["jest", "node"] "types": [
"jest",
"node"
]
}, },
"files": [
"testing/test-setup.ts"
],
"include": [ "include": [
"**/*.spec.ts", "**/*.spec.ts",
"**/*.d.ts" "**/*.test.ts",
"**/*.d.ts",
"jest.config.ts"
] ]
} }

35
nx.json
View File

@@ -8,31 +8,32 @@
".eslintrc.json": "*", ".eslintrc.json": "*",
"nx.json": "*" "nx.json": "*"
}, },
"projects": {
"ng2-file-upload": {
"tags": [
"lib"
]
},
"ng2-file-upload-demo": {
"tags": [],
"implicitDependencies": [
"ng2-file-upload"
]
}
},
"tasksRunnerOptions": { "tasksRunnerOptions": {
"default": { "default": {
"runner": "@nrwl/workspace/tasks-runners/default", "runner": "nx/tasks-runners/default",
"options": { "options": {
"cacheableOperations": [ "cacheableOperations": [
"build", "build",
"lint", "lint",
"test", "test",
"e2e" "e2e"
] ],
"parallel": 1
} }
} }
} },
"affected": {
"defaultBase": "master"
},
"defaultProject": "ng2-file-upload-demo",
"generators": {
"@schematics/angular:component": {
"prefix": "",
"styleext": "css"
},
"@schematics/angular:directive": {
"prefix": ""
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"
} }

29977
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,17 +7,16 @@
"ng": "nx", "ng": "nx",
"start": "ng serve", "start": "ng serve",
"demo.build": "ng build", "demo.build": "ng build",
"demo.build-prod": "ng build --prod", "demo.build-prod": "ng build",
"build": "nx run ng2-file-upload:build", "build": "nx run ng2-file-upload:build",
"build-prod": "nx run ng2-file-upload:build:production", "build-prod": "nx run ng2-file-upload:build",
"build.watch": "nx run ng2-file-upload:build --watch", "lint": "nx run-many --target=lint --all",
"test": "nx run-many --all --target=test", "test": "nx run-many --target=test --all",
"version": "nx run ng2-file-upload:version", "version": "nx run ng2-file-upload:version",
"lint": "nx run-many --all --target=lint",
"pretest": "run-s lint build", "pretest": "run-s lint build",
"test-coverage": "nx run-many --all --target=test --codeCoverage", "test-coverage": "nx run-many --all --target=test --codeCoverage",
"demo.gh-pages": "run-s build demo.build demo.deploy", "demo.gh-pages": "run-s build demo.build demo.deploy",
"demo.deploy": "gh-pages -d dist/apps/ng2-file-upload", "demo.deploy": "gh-pages -d dist/apps/demo",
"postinstall": "node ./decorate-angular-cli.js", "postinstall": "node ./decorate-angular-cli.js",
"flow.github-release": "conventional-github-releaser -p angular" "flow.github-release": "conventional-github-releaser -p angular"
}, },
@@ -40,62 +39,63 @@
"homepage": "https://github.com/valor-software/ng2-file-upload#readme", "homepage": "https://github.com/valor-software/ng2-file-upload#readme",
"peerDependencies": {}, "peerDependencies": {},
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1102.13", "@angular-devkit/build-angular": "14.2.3",
"@angular-devkit/build-ng-packagr": "^0.1002.0", "@angular-eslint/eslint-plugin": "14.0.4",
"@angular/animations": "~11.2.14", "@angular-eslint/eslint-plugin-template": "14.0.4",
"@angular/cli": "~11.2.14", "@angular-eslint/template-parser": "14.0.4",
"@angular/common": "~11.2.14", "@angular/animations": "14.2.2",
"@angular/compiler": "~11.2.14", "@angular/cli": "~14.2.0",
"@angular/compiler-cli": "~11.2.14", "@angular/common": "14.2.2",
"@angular/core": "~11.2.14", "@angular/compiler": "14.2.2",
"@angular/forms": "~11.2.14", "@angular/compiler-cli": "14.2.2",
"@angular/platform-browser": "~11.2.14", "@angular/core": "14.2.2",
"@angular/platform-browser-dynamic": "~11.2.14", "@angular/forms": "14.2.2",
"@angular-eslint/eslint-plugin": "4.3.0", "@angular/platform-browser": "14.2.2",
"@angular-eslint/eslint-plugin-template": "4.3.0", "@angular/platform-browser-dynamic": "14.2.2",
"@angular-eslint/template-parser": "4.3.0", "@nrwl/angular": "14.7.5",
"@nrwl/angular": "11.2.12", "@nrwl/cli": "14.7.5",
"@nrwl/cli": "11.2.12", "@nrwl/eslint-plugin-nx": "14.7.5",
"@nrwl/node": "11.2.12", "@nrwl/jest": "14.7.5",
"@nrwl/eslint-plugin-nx": "11.2.12", "@nrwl/linter": "14.7.5",
"@nrwl/jest": "11.2.12", "@nrwl/node": "14.7.5",
"@nrwl/linter": "11.2.12",
"@types/fs-extra": "9.0.7", "@types/fs-extra": "9.0.7",
"@types/jest": "26.0.20", "@types/jest": "28.1.8",
"@types/node": "^12.11.1", "@types/node": "18.7.1",
"@types/webpack": "^5.0.0", "@types/webpack": "^5.0.0",
"@typescript-eslint/eslint-plugin": "~4.28.3", "@typescript-eslint/eslint-plugin": "5.33.1",
"@typescript-eslint/parser": "~4.28.3", "@typescript-eslint/parser": "5.33.1",
"bootstrap": "3.3.7", "bootstrap": "3.3.7",
"classlist-polyfill": "1.2.0", "classlist-polyfill": "1.2.0",
"codecov": "3.8.2", "codecov": "3.8.2",
"codelyzer": "^6.0.0",
"conventional-changelog-cli": "2.1.1", "conventional-changelog-cli": "2.1.1",
"conventional-github-releaser": "3.1.5", "conventional-github-releaser": "3.1.5",
"core-js": "^3.14.0", "core-js": "^3.14.0",
"eslint": "7.22.0", "eslint": "8.15.0",
"eslint-config-prettier": "7.2.0", "eslint-config-prettier": "8.1.0",
"fs-extra": "9.1.0", "fs-extra": "9.1.0",
"gh-pages": "3.2.2", "gh-pages": "3.2.2",
"google-code-prettify": "1.0.5", "google-code-prettify": "1.0.5",
"html-loader": "^1.3.2", "html-loader": "^1.3.2",
"jest": "26.6.3", "jest": "28.1.3",
"jest-createspyobj": "2.0.0", "jest-createspyobj": "2.0.0",
"jest-preset-angular": "8.3.2", "jest-environment-jsdom": "28.1.1",
"jest-preset-angular": "12.2.2",
"markdown-loader": "^6.0.0", "markdown-loader": "^6.0.0",
"ng-packagr": "^11.2.4", "ng-packagr": "14.2.1",
"ngx-bootstrap": "7.1.0", "ngx-bootstrap": "8.0.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"postcss": "^8.3.9",
"postcss-import": "14.1.0",
"postcss-preset-env": "7.5.0",
"postcss-url": "10.1.3",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"rxjs": "^6.6.0", "rxjs": "^6.6.0",
"ts-helpers": "^1.1.2", "ts-helpers": "^1.1.2",
"ts-jest": "26.5.1", "ts-jest": "28.0.8",
"ts-node": "8.3.0", "ts-node": "10.9.1",
"tslint": "^6.1.0", "typescript": "4.7.4",
"tslint-config-valorsoft": "^2.2.1", "zone.js": "0.11.5"
"typescript": "4.1.5",
"zone.js": "~0.11.3"
}, },
"contributors": [ "contributors": [
{ {
@@ -120,7 +120,8 @@
} }
], ],
"dependencies": { "dependencies": {
"@nrwl/workspace": "^12.8.0", "@nrwl/workspace": "14.7.5",
"nx": "14.7.5",
"tslib": "^2.0.0" "tslib": "^2.0.0"
} }
} }

View File

@@ -1,5 +1,5 @@
// This file includes polyfills needed by Angular 2 and is loaded before // This file includes polyfills needed by Angular 2 and is loaded before
// the app. You can add your own extra polyfills to this file. // the app. You can add your own extra polyfills to this file.
import 'ts-helpers'; import 'ts-helpers';
import 'zone.js/dist/zone'; import 'zone.js';
import 'classlist-polyfill'; import 'classlist-polyfill';

View File

@@ -1,12 +0,0 @@
{
"extends": "tslint-config-valorsoft",
"rulesDirectory": "./node_modules/codelyzer",
"rules": {
"no-forward-ref": false,
"no-null-keyword": false,
"only-arrow-functions": false,
"no-access-missing-member": false,
"directive-selector": false,
"component-selector": false
}
}