@rws-framework/client 2.10.14 → 2.10.16

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.
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -51,6 +51,12 @@ function getRWSLoaders(packageDir, nodeModulesPath, tsConfigPath, devDebug) {
51
51
  scssLoader,
52
52
  ],
53
53
  },
54
+ {
55
+ test: /\.css$/i,
56
+ use: [
57
+ 'css-loader'
58
+ ],
59
+ },
54
60
  ]
55
61
  }
56
62
 
File without changes
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/client",
3
3
  "private": false,
4
- "version": "2.10.14",
4
+ "version": "2.10.16",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@microsoft/fast-element": "^1.12.0",
30
30
  "@microsoft/fast-foundation": "^2.46.2",
31
- "@rws-framework/console": "^0.3.15",
31
+ "@rws-framework/console": "^0.3.16",
32
32
  "@types/moment": "^2.13.0",
33
33
  "deepmerge": "^4.3.1",
34
34
  "dragula": "^3.7.3",
@@ -68,11 +68,6 @@ const RWSWebpackWrapper = async (rwsFrontendConfig) => {
68
68
  let optimConfig = null;
69
69
  let aliases = rwsFrontendConfig.aliases || {};
70
70
 
71
- console.log({
72
- __filename,
73
- _packageDir
74
- });
75
-
76
71
  aliases = { ...aliases, ...loadAliases(__dirname, path.resolve(_MAIN_PACKAGE, 'node_modules'), executionDir) }
77
72
 
78
73
  // #SECTION PLUGIN STARTING HOOKS
@@ -80,6 +80,11 @@ class ApiService extends TheService {
80
80
  this.token = token;
81
81
  }
82
82
 
83
+ getToken(): string
84
+ {
85
+ return this.token;
86
+ }
87
+
83
88
  public async pureGet(url: string, options: IAPIOptions = {}): Promise<string> {
84
89
  try {
85
90
  const response = await fetch(url, {
@@ -193,6 +198,8 @@ class ApiService extends TheService {
193
198
  apiPath = apiPath.replace(`:${paramKey}`, paramValue);
194
199
  });
195
200
 
201
+ console.log('bck', this.config.get('backendUrl'));
202
+
196
203
  return `${this.config.get('backendUrl')}${this.config.get('apiPrefix') || ''}${apiPath}`;
197
204
  }
198
205
 
@@ -25,7 +25,7 @@ export default interface IRWSConfig {
25
25
  rwsDefines?: {[key: string]: any}
26
26
  partedFileDir?: string
27
27
  partedPrefix?: string
28
- plugins?: IStaticRWSPlugin[]
28
+ plugins?: IStaticRWSPlugin<DefaultRWSPluginOptionsType>[]
29
29
  routing_enabled?: boolean
30
30
  _noLoad?: boolean
31
31
  }