diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fa0233..0287027 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,22 @@ jobs: steps: - uses: taiga-family/ci/actions/setup/checkout@v1.71.2 - uses: taiga-family/ci/actions/setup/node@v1.71.2 - - run: npm run prettier -- --check - - run: npm run lint + - run: | + if [[ "${{ env.SUPPORT_AUTO_PUSH }}" == "true" ]]; then + npm run prettier -- --write + npm run stylelint -- --fix + npm run lint -- --fix + else + npm run prettier -- --check + npm run stylelint + npm run lint + fi - run: npm run test - run: npm run build:library - run: npm run build:demo + - uses: taiga-family/ci/actions/auto/push@v1.71.2 + with: + token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} diff --git a/package-lock.json b/package-lock.json index fca5f90..c516cbc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,12 +35,12 @@ "@nx/workspace": "19.6.5", "@release-it-plugins/workspaces": "4.2.0", "@release-it/conventional-changelog": "8.0.1", - "@taiga-ui/browserslist-config": "0.157.1", - "@taiga-ui/commitlint-config": "0.157.1", - "@taiga-ui/eslint-plugin-experience": "0.157.1", - "@taiga-ui/prettier-config": "0.157.1", - "@taiga-ui/stylelint-config": "0.157.1", - "@taiga-ui/tsconfig": "0.157.1", + "@taiga-ui/browserslist-config": "0.158.0", + "@taiga-ui/commitlint-config": "0.158.0", + "@taiga-ui/eslint-plugin-experience": "0.158.0", + "@taiga-ui/prettier-config": "0.158.0", + "@taiga-ui/stylelint-config": "0.158.0", + "@taiga-ui/tsconfig": "0.158.0", "@types/express": "4.17.21", "@types/jest": "29.5.12", "@types/node": "22.5.4", @@ -9181,16 +9181,16 @@ } }, "node_modules/@taiga-ui/browserslist-config": { - "version": "0.157.1", - "resolved": "https://registry.npmjs.org/@taiga-ui/browserslist-config/-/browserslist-config-0.157.1.tgz", - "integrity": "sha512-9YTojOAo9Ktc3ikk7xYU4ddqFdCwd8JZan5P951b1WsDQr2cv9LqnekED5QZeNa2tLwj2gE+gDolU+HYQTZXZA==", + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/browserslist-config/-/browserslist-config-0.158.0.tgz", + "integrity": "sha512-TC/CEeCkPX4Y6tJ5KbUd3NIS8EUd+uy26ZCXVMvJVNLdhggCqtgJFIKY96UAIE+9TCkYh6MuWiAhhFc44e2H+w==", "dev": true, "license": "Apache-2.0" }, "node_modules/@taiga-ui/commitlint-config": { - "version": "0.157.1", - "resolved": "https://registry.npmjs.org/@taiga-ui/commitlint-config/-/commitlint-config-0.157.1.tgz", - "integrity": "sha512-owMl27FWoYpRbvMj38LAdcFJRkikEZRlXMy91bXeSpCCc2G2f/G/uHTvuR9c/Kn4GzjJt7oPZZRB8vCbHM7YTA==", + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/commitlint-config/-/commitlint-config-0.158.0.tgz", + "integrity": "sha512-nCcP0JqR21XEGulPAFi2iY9xG3KE0fg709xGpvijTFJb7mLkzM2LQhUt4QspBh92gPSUrIxYloyS2F5Ji14TTQ==", "dev": true, "license": "Apache-2.0", "peerDependencies": { @@ -9203,10 +9203,11 @@ "link": true }, "node_modules/@taiga-ui/eslint-plugin-experience": { - "version": "0.157.1", - "resolved": "https://registry.npmjs.org/@taiga-ui/eslint-plugin-experience/-/eslint-plugin-experience-0.157.1.tgz", - "integrity": "sha512-IwfjaVw+9yMFHcqjoH+tFqD9tJ3Ftqay3OIGg6BYcuZPq7mlb1KSFyL+BBrbdWHwq6zfLUjx7JoC76W0ccV4Dw==", + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/eslint-plugin-experience/-/eslint-plugin-experience-0.158.0.tgz", + "integrity": "sha512-f8mEdSdUqFVH5krnMp4nDFNIV8xThKhgxJPNLSfHOdajBZDCHuUDp1MiPDshPbUi9mQ7a2rDDhQJEDv361d4jw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "glob": "11.0.0" }, @@ -9237,6 +9238,7 @@ "eslint-plugin-import": "^2.30.0", "eslint-plugin-jest": "^28.8.3", "eslint-plugin-node-import": "^1.0.4", + "eslint-plugin-perfectionist": "^3.4.0", "eslint-plugin-playwright": "^1.6.2", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^7.1.0", @@ -9249,9 +9251,9 @@ } }, "node_modules/@taiga-ui/prettier-config": { - "version": "0.157.1", - "resolved": "https://registry.npmjs.org/@taiga-ui/prettier-config/-/prettier-config-0.157.1.tgz", - "integrity": "sha512-XbbUEuRB1nsiGZjCFMtNaaGnG7BgqKlUeSVZ/6hBF/5XKsvnfujBwhmKpMzyVTc4dNaBya64QV48QWEMBvwgLQ==", + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/prettier-config/-/prettier-config-0.158.0.tgz", + "integrity": "sha512-RVFBhQUyQ+B21nTFNMy8xSRn1uA0yrNn/qSxeNzBUJUwVfTK5NElADx0WKN8LoB9hLGYML97yhwP8l3GG/LR6A==", "dev": true, "license": "Apache-2.0", "peerDependencies": { @@ -9264,9 +9266,9 @@ } }, "node_modules/@taiga-ui/stylelint-config": { - "version": "0.157.1", - "resolved": "https://registry.npmjs.org/@taiga-ui/stylelint-config/-/stylelint-config-0.157.1.tgz", - "integrity": "sha512-gcIiUUks90+gW5reVUBRjkXdYgwKj//AzuNVPYD0R01YXmkJxz1ccdLwpOd27INQDGQ7NJZxaZAd9RkrA8kJoQ==", + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/stylelint-config/-/stylelint-config-0.158.0.tgz", + "integrity": "sha512-ZUPNZ2mvmTxWO7xmm7EIAYVYYSGqBezXIQaEWtqucAYrqbNzwhQ4zXSrnq80UgXvQyL6r7DsoF6PoLvPudI1JQ==", "dev": true, "license": "Apache-2.0", "peerDependencies": { @@ -9280,9 +9282,9 @@ } }, "node_modules/@taiga-ui/tsconfig": { - "version": "0.157.1", - "resolved": "https://registry.npmjs.org/@taiga-ui/tsconfig/-/tsconfig-0.157.1.tgz", - "integrity": "sha512-vU/wYGUckmNUwqtkFZbKYCtUA9o0lbloiBn2WICDV6Sz6SSkVXpYLH6Tn/2yAqnhyWlquFS5T0Z8L5nXRV/cvA==", + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/tsconfig/-/tsconfig-0.158.0.tgz", + "integrity": "sha512-jGDEong3Pm8scy5f2dc1zkj0WJ4wujf+HfbmFOQwGqZLfPsV+1lb3RSMkRXeShMYCF+xsBfOhf6hOUjkPM5sdQ==", "dev": true, "license": "Apache-2.0" }, @@ -17235,6 +17237,61 @@ "eslint": ">=7" } }, + "node_modules/eslint-plugin-perfectionist": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-perfectionist/-/eslint-plugin-perfectionist-3.4.0.tgz", + "integrity": "sha512-vXyd1sFg3H/7aKgBUie62bA6E0EN3Dh0LCD5r4vR/IYtTljxOnyckI1AV0Arw4eYjC/W9T1X04Pl2mdLsdWtMA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@typescript-eslint/types": "^8.4.0", + "@typescript-eslint/utils": "^8.4.0", + "minimatch": "^9.0.5", + "natural-compare-lite": "^1.4.0" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "astro-eslint-parser": "^1.0.2", + "eslint": ">=8.0.0", + "svelte": ">=3.0.0", + "svelte-eslint-parser": "^0.41.0", + "vue-eslint-parser": ">=9.0.0" + }, + "peerDependenciesMeta": { + "astro-eslint-parser": { + "optional": true + }, + "svelte": { + "optional": true + }, + "svelte-eslint-parser": { + "optional": true + }, + "vue-eslint-parser": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-perfectionist/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/eslint-plugin-playwright": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/eslint-plugin-playwright/-/eslint-plugin-playwright-1.6.2.tgz", @@ -27530,6 +27587,14 @@ "dev": true, "license": "MIT" }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/needle": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz", diff --git a/package.json b/package.json index e276f82..4a5695a 100644 --- a/package.json +++ b/package.json @@ -106,12 +106,12 @@ "@nx/workspace": "19.6.5", "@release-it-plugins/workspaces": "4.2.0", "@release-it/conventional-changelog": "8.0.1", - "@taiga-ui/browserslist-config": "0.157.1", - "@taiga-ui/commitlint-config": "0.157.1", - "@taiga-ui/eslint-plugin-experience": "0.157.1", - "@taiga-ui/prettier-config": "0.157.1", - "@taiga-ui/stylelint-config": "0.157.1", - "@taiga-ui/tsconfig": "0.157.1", + "@taiga-ui/browserslist-config": "0.158.0", + "@taiga-ui/commitlint-config": "0.158.0", + "@taiga-ui/eslint-plugin-experience": "0.158.0", + "@taiga-ui/prettier-config": "0.158.0", + "@taiga-ui/stylelint-config": "0.158.0", + "@taiga-ui/tsconfig": "0.158.0", "@types/express": "4.17.21", "@types/jest": "29.5.12", "@types/node": "22.5.4", diff --git a/projects/ng-dompurify/lib/ng-dompurify.pipe.ts b/projects/ng-dompurify/lib/ng-dompurify.pipe.ts index 740abd9..3a61b54 100644 --- a/projects/ng-dompurify/lib/ng-dompurify.pipe.ts +++ b/projects/ng-dompurify/lib/ng-dompurify.pipe.ts @@ -36,12 +36,12 @@ export class NgDompurifyPipe implements PipeTransform { switch (context) { case SecurityContext.HTML: return this.domSanitizer.bypassSecurityTrustHtml(purifiedValue); + case SecurityContext.RESOURCE_URL: + return this.domSanitizer.bypassSecurityTrustResourceUrl(purifiedValue); case SecurityContext.STYLE: return this.domSanitizer.bypassSecurityTrustStyle(purifiedValue); case SecurityContext.URL: return this.domSanitizer.bypassSecurityTrustUrl(purifiedValue); - case SecurityContext.RESOURCE_URL: - return this.domSanitizer.bypassSecurityTrustResourceUrl(purifiedValue); default: return null; }