Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions packages/vue/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@
const path = require('path');

module.exports = {
extends: [
'plugin:@wso2/typescript',
// 'plugin:@wso2/vue',
'plugin:@wso2/strict',
'plugin:@wso2/internal',
'plugin:@wso2/prettier',
],
extends: ['plugin:@wso2/typescript', 'plugin:@wso2/strict', 'plugin:@wso2/internal', 'plugin:@wso2/prettier'],
parserOptions: {
project: [path.resolve(__dirname, 'tsconfig.json'), path.resolve(__dirname, 'tsconfig.eslint.json')],
},
Expand Down
13 changes: 6 additions & 7 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@
"dev": "rollup -c -w",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
"lint:fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"type-check": "vue-tsc --noEmit",
"test": "vitest --config src/vitest.config.ts --environment=jsdom --run --passWithNoTests",
"prepublishOnly": "npm run build"
"typecheck": "vue-tsc --noEmit",
"test": "vitest --config src/vitest.config.ts --environment=jsdom --run --passWithNoTests"
},
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -70,19 +69,19 @@
"stylelint": "15.1.0",
"tslib": "^2.6.2",
"typescript": "5.1.6",
"vue-tsc": "^2.2.2",
"vitest": "^3.0.8"
"vitest": "^3.0.8",
"vue-tsc": "^2.2.2"
},
"dependencies": {
"@asgardeo/auth-spa": "^3.1.4",
"@asgardeo/js": "*",
"@vitejs/plugin-vue": "^5.0.0",
"base64url": "^3.0.1",
"buffer": "^6.0.3",
"clsx": "^2.1.1",
"fast-sha256": "^1.3.0",
"jose": "^5.3.0",
"randombytes": "^2.1.0",
"@vitejs/plugin-vue": "^5.0.0"
"randombytes": "^2.1.0"
},
"peerDependencies": {
"vue": ">=3.5.13"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/vue/src/plugins/AsgardeoPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from '@asgardeo/auth-spa';
import type {Plugin, Ref, App, Reactive} from 'vue';
import {reactive, ref} from 'vue';
import AuthAPI from '../api';
import AuthAPI from '../auth-api';
import type {AuthContextInterface, AuthParams, AuthStateInterface, AuthVueConfig} from '../types';

export type AsgardeoPluginOptions = AuthVueConfig;
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/tests/AsgardeoPlugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ import {
import {describe, it, expect, beforeEach, vi, Mock} from 'vitest';
import {createApp} from 'vue';
import {mockAuthAPI, mockState, mockConfig} from './mocks/mocks';
import AuthAPI from '../api';
import AuthAPI from '../auth-api';
import {asgardeoPlugin, ASGARDEO_INJECTION_KEY} from '../plugins/AsgardeoPlugin';
import {AuthContextInterface, AuthStateInterface} from '../types';

vi.mock('../api');
vi.mock('../auth-api');
vi.mock('@asgardeo/auth-spa');

vi.mocked(AuthAPI).mockImplementation(() => mockAuthAPI as unknown as AuthAPI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
} from '@asgardeo/auth-spa';
import {describe, it, expect, beforeEach, vi, Mock} from 'vitest';
import {MockAsgardeoAuthException, asgardeoAuthSPAMock} from './mocks/mocks';
import AuthAPI from '../api';
import AuthAPI from '../auth-api';
import {type AuthStateInterface, type AuthVueConfig} from '../types';

vi.doMock('@asgardeo/auth-spa', () => asgardeoAuthSPAMock);
Expand Down
44 changes: 22 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ packages:
- "recipes/*"

catalog:
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?21281faa4f8354491747075f40f58b497d0c4730"
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?21281faa4f8354491747075f40f58b497d0c4730"
"@wso2/stylelint-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/stylelint-config?21281faa4f8354491747075f40f58b497d0c4730"
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?4ee6f6be232d7631999d709a86b91612f1d34ce7"
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?4ee6f6be232d7631999d709a86b91612f1d34ce7"
"@wso2/stylelint-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/stylelint-config?4ee6f6be232d7631999d709a86b91612f1d34ce7"
"eslint": "~8.57.0"
Loading