SHA256
1
0
forked from pool/bitwarden

Accepting request 1230749 from devel:languages:nodejs

OBS-URL: https://build.opensuse.org/request/show/1230749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bitwarden?expand=0&rev=38
This commit is contained in:
Ana Guerrero 2024-12-13 21:38:54 +00:00 committed by Git OBS Bridge
commit 518ee7f49f
9 changed files with 96 additions and 76 deletions

View File

@ -2,8 +2,8 @@
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/bitwarden/clients.git</param>
<param name="revision">desktop-v2024.11.2</param>
<param name="version">2024.11.2</param>
<param name="revision">desktop-v2024.12.0</param>
<param name="version">2024.12.0</param>
<param name="filename">bitwarden</param>
<param name="exclude">bitwarden_license/*</param>
<!-- The code in bitwarden_license MUST NOT be included in published tarballs as it is non-redistributable! -->

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db27dca02155fc984e5664cc12b1c65f0415b14e7dc9fdd755a6c8b2adb76e02
size 45144077

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b09328059ac14cdb496a3dd33921456c00a0d32ab9e598dd6e786f90c68503bd
size 45497869

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Dec 12 18:40:10 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 2024.12.0
* Added new SSH agent
* Added new item type for SSH keys
* Added new import options
* fix: Add new item should set item type
* Desktop edit folder button visibility
* Import TOTP with ZohoVault CSV importer
* fix BufferSource conversions
-------------------------------------------------------------------
Thu Nov 21 18:06:28 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>

View File

@ -1,4 +1,4 @@
name: bitwarden
version: 2024.11.2
mtime: 1732206977
commit: 9172f2d6c235d3c38af499a2bb15a5694d27557d
version: 2024.12.0
mtime: 1733524263
commit: e0c8f2ced997fc279c8ded903471ca3fa0fe5e94

View File

@ -22,11 +22,13 @@
Name: bitwarden
Version: 2024.11.2
Version: 2024.12.0
Release: 0
Summary: A secure and free password manager for all of your devices
Group: Productivity/Security
License: GPL-3.0-only and MIT and (Apache-2.0 or MIT)
License: GPL-3.0-only and MIT and (Apache-2.0 or MIT) and OFL-1.1
#TODO: This font should be submitted to openSUSE and Fedora and debundled from here
Provides: bundled(google-dm-fonts)
URL: https://github.com/bitwarden/clients
#x86 electron requires SSE2
@ -116,7 +118,6 @@ BuildRequires: dbus-1-daemon
%endif
%endif
Requires: (google-opensans-fonts or open-sans-fonts)
Requires: nodejs-electron%{_isa}
%global __requires_exclude ^npm(.*)|^nodejs(.*)
@ -137,9 +138,6 @@ sed -i 's[XXXLIBDIRXXX[%{_libdir}[g' apps/desktop/src/main/native-messaging.main
# Remove unused postinstall script (electron-rebuild)
sed -i '/"postinstall":/d' apps/desktop/package.json
#Remove bundled open sans
cp -v /dev/null libs/angular/src/scss/webfonts.css
rm -rvf libs/angular/src/scss/webfonts
@ -155,7 +153,7 @@ cd apps/desktop/desktop_native
rm -rf vendor/wayland-protocols/protocols
ln -svT /usr/share/wayland-protocols vendor/wayland-protocols/protocols
# https://blogs.gnome.org/mcatanzaro/2020/05/18/patching-vendored-rust-dependencies/
for i in wayland-protocols libloading system-deps; do
for i in wayland-protocols libloading system-deps pkcs5 aes-gcm; do
pushd vendor/$i
jq -cj '.files={}' .cargo-checksum.json >tmp && mv tmp .cargo-checksum.json && popd
done

View File

@ -91,12 +91,12 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
return Promise.reject(new Error("SDK not available"));
}
}
--- clients-desktop-v2024.11.0/libs/common/src/platform/services/sdk/default-sdk.service.ts.orig 2024-11-14 21:24:34.418710861 +0100
+++ clients-desktop-v2024.11.0/libs/common/src/platform/services/sdk/default-sdk.service.ts 2024-11-14 21:43:13.174498626 +0100
@@ -11,12 +11,6 @@ import {
--- clients/libs/common/src/platform/services/sdk/default-sdk.service.ts.orig 2024-12-12 18:52:12.448979879 +0100
+++ clients/libs/common/src/platform/services/sdk/default-sdk.service.ts 2024-12-12 19:08:41.399904218 +0100
@@ -12,12 +12,6 @@ import {
} from "rxjs";
import { KeyService } from "@bitwarden/key-management";
import { KeyService, KdfConfigService, KdfConfig, KdfType } from "@bitwarden/key-management";
-import {
- BitwardenClient,
- ClientSettings,
@ -106,9 +106,22 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
import { ApiService } from "../../../abstractions/api.service";
import { EncryptedOrganizationKeyData } from "../../../admin-console/models/data/encrypted-organization-key.data";
@@ -35,12 +29,12 @@ import { compareValues } from "../../mis
@@ -33,10 +27,10 @@ import { compareValues } from "../../mis
import { EncryptedString } from "../../models/domain/enc-string";
export class RecoverableSDKError extends Error {
- sdk: BitwardenClient;
+ sdk: any;
timeout: number;
- constructor(sdk: BitwardenClient, timeout: number) {
+ constructor(sdk: any, timeout: number) {
super(`SDK took ${timeout}s to initialize`);
this.sdk = sdk;
@@ -45,13 +39,13 @@ export class RecoverableSDKError extends
}
export class DefaultSdkService implements SdkService {
- private sdkClientCache = new Map<UserId, Observable<BitwardenClient>>();
+ private sdkClientCache = new Map<UserId, Observable<any>>();
@ -116,12 +129,13 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
client$ = this.environmentService.environment$.pipe(
concatMap(async (env) => {
const settings = this.toSettings(env);
- return await this.sdkClientFactory.createSdkClient(settings, LogLevel.Info);
+ return await this.sdkClientFactory.createSdkClient(settings, 'unused');
}),
shareReplay({ refCount: true, bufferSize: 1 }),
);
@@ -62,7 +56,7 @@ export class DefaultSdkService implement
try {
- return await this.sdkClientFactory.createSdkClient(settings, LogLevel.Info);
+ return await this.sdkClientFactory.createSdkClient(settings, 'unused');
} catch (e) {
if (e instanceof RecoverableSDKError) {
await this.failedToInitialize("sdk", e);
@@ -85,7 +79,7 @@ export class DefaultSdkService implement
private userAgent: string = null,
) {}
@ -130,7 +144,7 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
// TODO: Figure out what happens when the user logs out
if (this.sdkClientCache.has(userId)) {
return this.sdkClientCache.get(userId);
@@ -92,8 +86,8 @@ export class DefaultSdkService implement
@@ -115,8 +109,8 @@ export class DefaultSdkService implement
// switchMap is required to allow the clean-up logic to be executed when `combineLatest` emits a new value.
switchMap(([env, account, kdfParams, privateKey, userKey, orgKeys]) => {
// Create our own observable to be able to implement clean-up logic
@ -141,7 +155,7 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
const createAndInitializeClient = async () => {
if (privateKey == null || userKey == null) {
@@ -101,7 +95,7 @@ export class DefaultSdkService implement
@@ -124,7 +118,7 @@ export class DefaultSdkService implement
}
const settings = this.toSettings(env);
@ -150,7 +164,7 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
await this.initializeClient(client, account, kdfParams, privateKey, userKey, orgKeys);
@@ -156,7 +150,7 @@ export class DefaultSdkService implement
@@ -179,7 +173,7 @@ export class DefaultSdkService implement
}
private async initializeClient(
@ -159,7 +173,7 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
account: AccountInfo,
kdfParams: KdfConfig,
privateKey: EncryptedString,
@@ -192,7 +186,7 @@ export class DefaultSdkService implement
@@ -215,7 +209,7 @@ export class DefaultSdkService implement
});
}
@ -168,7 +182,7 @@ This patch will be removed once some _actual_ JS functionality gets migrated to
return {
apiUrl: env.getApiUrl(),
identityUrl: env.getIdentityUrl(),
@@ -201,7 +195,7 @@ export class DefaultSdkService implement
@@ -224,7 +218,7 @@ export class DefaultSdkService implement
};
}

View File

@ -1,7 +1,7 @@
@types/semver and path-browserify is normally included transitively by storybook which we delete, adding it here explicitely because it is needed for build
--- clients-desktop-v2024.11.0/package.json.orig 2024-11-14 21:24:39.344505956 +0100
+++ clients-desktop-v2024.11.0/package.json 2024-11-14 21:30:01.698941768 +0100
--- clients/package.json.orig 2024-12-12 18:52:12.488999880 +0100
+++ clients/package.json 2024-12-12 18:55:41.156621044 +0100
@@ -13,7 +13,6 @@
},
"homepage": "https://bitwarden.com",
@ -10,41 +10,42 @@
"lint": "eslint . --cache --cache-strategy content && prettier --check .",
"lint:fix": "eslint . --cache --cache-strategy content --fix",
"lint:clear": "rimraf .eslintcache",
@@ -27,7 +26,7 @@
@@ -26,8 +25,7 @@
"docs:json": "compodoc -p ./tsconfig.json -e json -d . --disableRoutesGraph",
"storybook": "ng run components:storybook",
"build-storybook": "ng run components:build-storybook",
"build-storybook:ci": "ng run components:build-storybook --webpack-stats-json",
- "postinstall": "patch-package && rimraf ./node_modules/@types/glob && rimraf ./node_modules/@types/minimatch"
+ "postinstall": "rimraf ./node_modules/@types/glob && rimraf ./node_modules/@types/minimatch"
- "build-storybook:ci": "ng run components:build-storybook --webpack-stats-json",
- "postinstall": "patch-package"
+ "build-storybook:ci": "ng run components:build-storybook --webpack-stats-json"
},
"workspaces": [
"apps/*",
@@ -36,117 +35,45 @@
@@ -36,112 +34,46 @@
],
"devDependencies": {
"@angular-devkit/build-angular": "17.3.9",
"@angular-devkit/build-angular": "17.3.11",
- "@angular-eslint/eslint-plugin": "17.5.3",
- "@angular-eslint/eslint-plugin-template": "17.5.3",
- "@angular-eslint/schematics": "17.5.3",
- "@angular-eslint/template-parser": "17.5.3",
- "@angular/cli": "17.3.9",
- "@angular/cli": "17.3.11",
"@angular/compiler-cli": "17.3.12",
- "@angular/elements": "17.3.12",
"@babel/core": "7.24.9",
"@babel/preset-env": "7.24.8",
- "@compodoc/compodoc": "1.1.25",
- "@compodoc/compodoc": "1.1.26",
- "@electron/notarize": "2.5.0",
- "@electron/rebuild": "3.7.0",
"@ngtools/webpack": "17.3.9",
- "@storybook/addon-a11y": "8.2.9",
- "@storybook/addon-actions": "8.2.9",
- "@storybook/addon-designs": "8.0.3",
- "@storybook/addon-essentials": "8.2.9",
- "@storybook/addon-interactions": "8.2.9",
- "@storybook/addon-links": "8.2.9",
- "@storybook/angular": "8.2.9",
- "@storybook/manager-api": "8.2.9",
- "@storybook/theming": "8.2.9",
- "@electron/rebuild": "3.7.1",
"@ngtools/webpack": "17.3.11",
- "@storybook/addon-a11y": "8.4.5",
- "@storybook/addon-actions": "8.4.5",
- "@storybook/addon-designs": "8.0.4",
- "@storybook/addon-essentials": "8.4.5",
- "@storybook/addon-interactions": "8.4.5",
- "@storybook/addon-links": "8.4.5",
- "@storybook/angular": "8.4.5",
- "@storybook/manager-api": "8.4.5",
- "@storybook/theming": "8.4.5",
- "@types/argon2-browser": "1.18.4",
- "@types/chrome": "0.0.280",
- "@types/firefox-webext-browser": "120.0.4",
@ -59,7 +60,7 @@
- "@types/koa-json": "2.0.23",
- "@types/lowdb": "1.0.15",
"@types/lunr": "2.3.7",
"@types/node": "20.17.1",
"@types/node": "22.9.3",
- "@types/node-fetch": "2.6.4",
"@types/node-forge": "1.3.11",
"@types/node-ipc": "9.2.3",
@ -73,17 +74,17 @@
- "@webcomponents/custom-elements": "1.6.0",
- "@yao-pkg/pkg": "5.16.1",
"autoprefixer": "10.4.20",
- "babel-loader": "9.1.3",
"babel-loader": "9.2.1",
- "base64-loader": "1.0.0",
- "browserslist": "4.23.2",
- "chromatic": "11.10.2",
"concurrently": "9.0.1",
- "chromatic": "11.19.0",
"concurrently": "9.1.0",
"copy-webpack-plugin": "12.0.2",
"cross-env": "7.0.3",
"css-loader": "7.1.2",
"electron": "32.1.1",
- "electron-builder": "24.13.3",
"electron-log": "5.0.1",
"electron-log": "5.2.2",
- "electron-reload": "2.0.0-alpha.1",
"electron-store": "8.2.0",
"electron-updater": "6.3.9",
@ -95,16 +96,11 @@
- "eslint-plugin-rxjs-angular": "2.0.1",
- "eslint-plugin-storybook": "0.8.0",
- "eslint-plugin-tailwindcss": "3.17.4",
- "gulp": "4.0.2",
- "gulp-if": "3.0.0",
- "gulp-json-editor": "2.6.0",
- "gulp-replace": "1.1.4",
- "gulp-zip": "6.0.0",
"html-loader": "5.0.0",
"html-loader": "5.1.0",
- "html-webpack-injector": "1.1.4",
"html-webpack-plugin": "5.6.3",
- "husky": "9.1.4",
"jest-extended": "^4.0.2",
"jest-extended": "4.0.2",
- "jest-junit": "16.0.0",
"jest-mock-extended": "3.0.7",
- "jest-preset-angular": "14.1.1",
@ -112,18 +108,18 @@
"mini-css-extract-plugin": "2.9.1",
"node-ipc": "9.2.1",
+ "path-browserify": "^1.0.1",
"postcss": "8.4.38",
"postcss": "8.4.47",
"postcss-loader": "8.1.1",
- "prettier": "3.3.3",
- "prettier-plugin-tailwindcss": "0.6.8",
- "prettier-plugin-tailwindcss": "0.6.9",
- "process": "0.11.10",
- "remark-gfm": "4.0.0",
"rimraf": "6.0.1",
"sass": "1.74.1",
"sass": "1.81.0",
"sass-loader": "16.0.1",
- "storybook": "8.2.9",
- "storybook": "8.4.5",
- "style-loader": "3.3.4",
- "tailwindcss": "3.4.14",
- "tailwindcss": "3.4.15",
- "ts-jest": "29.2.2",
"ts-loader": "9.5.1",
"tsconfig-paths-webpack-plugin": "4.1.0",
@ -132,7 +128,7 @@
"url": "0.11.4",
- "util": "0.12.5",
- "wait-on": "8.0.1",
"webpack": "5.94.0",
"webpack": "5.96.1",
- "webpack-cli": "5.1.4",
- "webpack-dev-server": "5.0.4",
- "webpack-node-externals": "3.0.0"
@ -140,7 +136,7 @@
},
"dependencies": {
"@angular/animations": "17.3.12",
@@ -158,57 +84,28 @@
@@ -153,57 +84,28 @@
"@angular/platform-browser": "17.3.12",
"@angular/platform-browser-dynamic": "17.3.12",
"@angular/router": "17.3.12",
@ -160,7 +156,7 @@
- "bufferutil": "4.0.8",
- "chalk": "4.1.2",
"commander": "11.1.0",
- "core-js": "3.36.1",
- "core-js": "3.39.0",
- "form-data": "4.0.0",
- "https-proxy-agent": "7.0.5",
- "inquirer": "8.2.6",
@ -188,8 +184,8 @@
- "qrious": "4.0.2",
"rxjs": "7.8.1",
- "tabbable": "6.2.0",
"tldts": "6.1.58",
"utf-8-validate": "6.0.4",
"tldts": "6.1.64",
"utf-8-validate": "6.0.5",
"zone.js": "0.14.10",
"zxcvbn": "4.4.2"
},

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37592e18d8e62e38132e348da23bbeb4346dc4d5532d9f989849c205401ff643
size 41172785
oid sha256:fa99d8a6c05618faa63eb986ada138674a873a980b323b9260ff6e7946ea2160
size 44239967