@vocollege/app 0.0.174 → 0.0.176

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.
@@ -52,8 +52,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var client_1 = require("@apollo/client");
54
54
  var error_1 = require("@apollo/client/link/error");
55
- // @ts-ignore
56
- var apollo_upload_client_1 = require("apollo-upload-client");
55
+ // @ts-ignore apollo-upload-client v18 publishes this as an exported ESM module without bundled declarations.
56
+ var createUploadLink_mjs_1 = __importDefault(require("apollo-upload-client/createUploadLink.mjs"));
57
57
  var VoAuth_1 = __importDefault(require("../VoAuth"));
58
58
  var VoRouter_1 = __importDefault(require("../VoRouter"));
59
59
  var VoGroups_1 = __importDefault(require("../VoGroups"));
@@ -85,7 +85,7 @@ var GraphClient = /** @class */ (function () {
85
85
  }
86
86
  else {
87
87
  // Create a Apollo Link capable of file uploads.
88
- httpLink = (0, apollo_upload_client_1.createUploadLink)({ uri: url });
88
+ httpLink = (0, createUploadLink_mjs_1.default)({ uri: url });
89
89
  }
90
90
  // Get other Apollo Links.
91
91
  // const links = this.getGraphClientLinks(getToken, refreshToken);
@@ -121,7 +121,7 @@ exports.regexPatterns = {
121
121
  username: /(^[a-z]{3,})([\.]|[\_]|[\-]|[a-z]|[0-9]?)+$/,
122
122
  email: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
123
123
  stringNonDigit: /^[^0-9]+$/,
124
- password: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/, // At least 8 characters, 1 uppercase, 1 lowercase and 1 digit.
124
+ password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&_-])[A-Za-z\d@$!%*?&_-]{12,}$/, // At least 12 characters, 1 uppercase, 1 lowercase, 1 digit and 1 special symbol.
125
125
  cleanName: /(^[a-z]{1,})(\w|-?)+$/,
126
126
  personalNumber: /^(\d{8})[-]\d{4}$/,
127
127
  orgnr: /^(\d{6})[-]\d{4}$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.174",
3
+ "version": "0.0.176",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "@apollo/client": "^3.10.5",
14
14
  "@casl/ability": "^6.7.1",
15
15
  "@casl/react": "^4.0.0",
16
- "apollo-upload-client": "^16.0.0",
16
+ "apollo-upload-client": "^18.0.1",
17
17
  "@types/crypto-js": "^4.2.2",
18
18
  "@types/he": "^1.2.3",
19
19
  "@types/js-cookie": "^3.0.6",
@@ -30,13 +30,13 @@
30
30
  "typescript": "^5.4.5"
31
31
  },
32
32
  "peerDependencies": {
33
- "@apollo/client": "^3.3.7",
33
+ "@apollo/client": "^3.8.0",
34
34
  "@casl/ability": "^6.2.0",
35
35
  "@casl/react": "^3.1.0",
36
36
  "apollo-upload-client": "^18.0.1",
37
37
  "axios": "^1.7.2",
38
38
  "crypto-js": "^4.0.0",
39
- "graphql": "^14.0.0 || ^15.0.0",
39
+ "graphql": "14 - 16",
40
40
  "he": "^1.2.0",
41
41
  "js-cookie": "^3.0.1",
42
42
  "react": "^18.3.1",
@@ -8,8 +8,8 @@ import {
8
8
  split,
9
9
  } from "@apollo/client";
10
10
  import { onError } from "@apollo/client/link/error";
11
- // @ts-ignore
12
- import { createUploadLink } from "apollo-upload-client";
11
+ // @ts-ignore apollo-upload-client v18 publishes this as an exported ESM module without bundled declarations.
12
+ import createUploadLink from "apollo-upload-client/createUploadLink.mjs";
13
13
  import VoAuth from "../VoAuth";
14
14
  import VoRouter from "../VoRouter";
15
15
  import VoGroups from "../VoGroups";
@@ -63,7 +63,7 @@ export const regexPatterns = {
63
63
  username: /(^[a-z]{3,})([\.]|[\_]|[\-]|[a-z]|[0-9]?)+$/,
64
64
  email: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
65
65
  stringNonDigit: /^[^0-9]+$/,
66
- password: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/, // At least 8 characters, 1 uppercase, 1 lowercase and 1 digit.
66
+ password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&_-])[A-Za-z\d@$!%*?&_-]{12,}$/, // At least 12 characters, 1 uppercase, 1 lowercase, 1 digit and 1 special symbol.
67
67
  cleanName: /(^[a-z]{1,})(\w|-?)+$/,
68
68
  personalNumber: /^(\d{8})[-]\d{4}$/,
69
69
  orgnr: /^(\d{6})[-]\d{4}$/,