@keycloakify/angular 0.2.19 → 0.2.20

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.
package/bin/187.index.js CHANGED
@@ -162,7 +162,7 @@ async function command(params) {
162
162
 
163
163
  const __dirname = path__WEBPACK_IMPORTED_MODULE_1__.dirname(url__WEBPACK_IMPORTED_MODULE_2__.fileURLToPath(import.meta.url));
164
164
  function getThisCodebaseRootDirPath_rec(dirPath) {
165
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'package.json'))) {
165
+ if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'LICENSE'))) {
166
166
  return dirPath;
167
167
  }
168
168
  return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, '..'));
@@ -248,7 +248,7 @@ function readThisNpmPackageVersion() {
248
248
  /***/ }),
249
249
 
250
250
  /***/ 915:
251
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
251
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
252
252
 
253
253
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
254
254
  /* harmony export */ JS: () => (/* binding */ runPrettier),
@@ -268,6 +268,7 @@ function readThisNpmPackageVersion() {
268
268
  /* harmony import */ var tsafe_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(289);
269
269
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(886);
270
270
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(972);
271
+ /* module decorator */ module = __webpack_require__.hmd(module);
271
272
 
272
273
 
273
274
 
@@ -304,7 +305,16 @@ async function getPrettier() {
304
305
  // So we do a sketchy eval to bypass ncc.
305
306
  // We make sure to only do that when linking, otherwise we import properly.
306
307
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__/* .readThisNpmPackageVersion */ .M)().startsWith('0.0.0')) {
307
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'))}")`);
308
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'));
309
+ const isCJS = true && module.exports;
310
+ if (isCJS) {
311
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${prettierDirPath}")`);
312
+ }
313
+ else {
314
+ prettier = await new Promise(_resolve => {
315
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_0__.join)(prettierDirPath, 'index.mjs').replace(/\\/g, '/')}").then(prettier => _resolve(prettier))`);
316
+ });
317
+ }
308
318
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_2__/* .assert */ .v)(!(0,tsafe_is__WEBPACK_IMPORTED_MODULE_4__.is)(prettier));
309
319
  break import_prettier;
310
320
  }
package/bin/476.index.js CHANGED
@@ -19,7 +19,7 @@ export const modules = {
19
19
 
20
20
  const __dirname = path__WEBPACK_IMPORTED_MODULE_1__.dirname(url__WEBPACK_IMPORTED_MODULE_2__.fileURLToPath(import.meta.url));
21
21
  function getThisCodebaseRootDirPath_rec(dirPath) {
22
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'package.json'))) {
22
+ if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'LICENSE'))) {
23
23
  return dirPath;
24
24
  }
25
25
  return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, '..'));
@@ -105,7 +105,7 @@ function readThisNpmPackageVersion() {
105
105
  /***/ }),
106
106
 
107
107
  /***/ 915:
108
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
108
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
109
109
 
110
110
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
111
111
  /* harmony export */ JS: () => (/* binding */ runPrettier),
@@ -125,6 +125,7 @@ function readThisNpmPackageVersion() {
125
125
  /* harmony import */ var tsafe_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(289);
126
126
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(886);
127
127
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(972);
128
+ /* module decorator */ module = __webpack_require__.hmd(module);
128
129
 
129
130
 
130
131
 
@@ -161,7 +162,16 @@ async function getPrettier() {
161
162
  // So we do a sketchy eval to bypass ncc.
162
163
  // We make sure to only do that when linking, otherwise we import properly.
163
164
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__/* .readThisNpmPackageVersion */ .M)().startsWith('0.0.0')) {
164
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'))}")`);
165
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'));
166
+ const isCJS = true && module.exports;
167
+ if (isCJS) {
168
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${prettierDirPath}")`);
169
+ }
170
+ else {
171
+ prettier = await new Promise(_resolve => {
172
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_0__.join)(prettierDirPath, 'index.mjs').replace(/\\/g, '/')}").then(prettier => _resolve(prettier))`);
173
+ });
174
+ }
165
175
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_2__/* .assert */ .v)(!(0,tsafe_is__WEBPACK_IMPORTED_MODULE_4__.is)(prettier));
166
176
  break import_prettier;
167
177
  }
package/bin/671.index.js CHANGED
@@ -1113,7 +1113,7 @@ async function command(params) {
1113
1113
 
1114
1114
  const __dirname = path__WEBPACK_IMPORTED_MODULE_1__.dirname(url__WEBPACK_IMPORTED_MODULE_2__.fileURLToPath(import.meta.url));
1115
1115
  function getThisCodebaseRootDirPath_rec(dirPath) {
1116
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'package.json'))) {
1116
+ if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'LICENSE'))) {
1117
1117
  return dirPath;
1118
1118
  }
1119
1119
  return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, '..'));
@@ -1199,7 +1199,7 @@ function readThisNpmPackageVersion() {
1199
1199
  /***/ }),
1200
1200
 
1201
1201
  /***/ 915:
1202
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1202
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
1203
1203
 
1204
1204
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1205
1205
  /* harmony export */ JS: () => (/* binding */ runPrettier),
@@ -1219,6 +1219,7 @@ function readThisNpmPackageVersion() {
1219
1219
  /* harmony import */ var tsafe_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(289);
1220
1220
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(886);
1221
1221
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(972);
1222
+ /* module decorator */ module = __webpack_require__.hmd(module);
1222
1223
 
1223
1224
 
1224
1225
 
@@ -1255,7 +1256,16 @@ async function getPrettier() {
1255
1256
  // So we do a sketchy eval to bypass ncc.
1256
1257
  // We make sure to only do that when linking, otherwise we import properly.
1257
1258
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__/* .readThisNpmPackageVersion */ .M)().startsWith('0.0.0')) {
1258
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'))}")`);
1259
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'));
1260
+ const isCJS = true && module.exports;
1261
+ if (isCJS) {
1262
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${prettierDirPath}")`);
1263
+ }
1264
+ else {
1265
+ prettier = await new Promise(_resolve => {
1266
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_0__.join)(prettierDirPath, 'index.mjs').replace(/\\/g, '/')}").then(prettier => _resolve(prettier))`);
1267
+ });
1268
+ }
1259
1269
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_2__/* .assert */ .v)(!(0,tsafe_is__WEBPACK_IMPORTED_MODULE_4__.is)(prettier));
1260
1270
  break import_prettier;
1261
1271
  }
package/bin/942.index.js CHANGED
@@ -691,7 +691,7 @@ async function command(params) {
691
691
 
692
692
  const __dirname = path__WEBPACK_IMPORTED_MODULE_1__.dirname(url__WEBPACK_IMPORTED_MODULE_2__.fileURLToPath(import.meta.url));
693
693
  function getThisCodebaseRootDirPath_rec(dirPath) {
694
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'package.json'))) {
694
+ if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'LICENSE'))) {
695
695
  return dirPath;
696
696
  }
697
697
  return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, '..'));
@@ -777,7 +777,7 @@ function readThisNpmPackageVersion() {
777
777
  /***/ }),
778
778
 
779
779
  /***/ 915:
780
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
780
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
781
781
 
782
782
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
783
783
  /* harmony export */ JS: () => (/* binding */ runPrettier),
@@ -797,6 +797,7 @@ function readThisNpmPackageVersion() {
797
797
  /* harmony import */ var tsafe_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(289);
798
798
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(886);
799
799
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(972);
800
+ /* module decorator */ module = __webpack_require__.hmd(module);
800
801
 
801
802
 
802
803
 
@@ -833,7 +834,16 @@ async function getPrettier() {
833
834
  // So we do a sketchy eval to bypass ncc.
834
835
  // We make sure to only do that when linking, otherwise we import properly.
835
836
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__/* .readThisNpmPackageVersion */ .M)().startsWith('0.0.0')) {
836
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'))}")`);
837
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_6__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'));
838
+ const isCJS = true && module.exports;
839
+ if (isCJS) {
840
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .I)({ prettier })} = require("${prettierDirPath}")`);
841
+ }
842
+ else {
843
+ prettier = await new Promise(_resolve => {
844
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_0__.join)(prettierDirPath, 'index.mjs').replace(/\\/g, '/')}").then(prettier => _resolve(prettier))`);
845
+ });
846
+ }
837
847
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_2__/* .assert */ .v)(!(0,tsafe_is__WEBPACK_IMPORTED_MODULE_4__.is)(prettier));
838
848
  break import_prettier;
839
849
  }
package/bin/index.js CHANGED
@@ -940,8 +940,8 @@ function is(value) {
940
940
  /******/ }
941
941
  /******/ // Create a new module (and put it into the cache)
942
942
  /******/ var module = __webpack_module_cache__[moduleId] = {
943
- /******/ // no module.id needed
944
- /******/ // no module.loaded needed
943
+ /******/ id: moduleId,
944
+ /******/ loaded: false,
945
945
  /******/ exports: {}
946
946
  /******/ };
947
947
  /******/
@@ -954,6 +954,9 @@ function is(value) {
954
954
  /******/ if(threw) delete __webpack_module_cache__[moduleId];
955
955
  /******/ }
956
956
  /******/
957
+ /******/ // Flag the module as loaded
958
+ /******/ module.loaded = true;
959
+ /******/
957
960
  /******/ // Return the exports of the module
958
961
  /******/ return module.exports;
959
962
  /******/ }
@@ -1008,6 +1011,21 @@ function is(value) {
1008
1011
  /******/ };
1009
1012
  /******/ })();
1010
1013
  /******/
1014
+ /******/ /* webpack/runtime/harmony module decorator */
1015
+ /******/ (() => {
1016
+ /******/ __nccwpck_require__.hmd = (module) => {
1017
+ /******/ module = Object.create(module);
1018
+ /******/ if (!module.children) module.children = [];
1019
+ /******/ Object.defineProperty(module, 'exports', {
1020
+ /******/ enumerable: true,
1021
+ /******/ set: () => {
1022
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1023
+ /******/ }
1024
+ /******/ });
1025
+ /******/ return module;
1026
+ /******/ };
1027
+ /******/ })();
1028
+ /******/
1011
1029
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1012
1030
  /******/ (() => {
1013
1031
  /******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@keycloakify/angular",
3
3
  "type": "module",
4
- "version": "0.2.19",
4
+ "version": "0.2.20",
5
5
  "peerDependencies": {
6
6
  "keycloakify": "^11.8.0",
7
7
  "@angular/core": "^19.0.0",
@@ -5,7 +5,7 @@ import * as url from 'url';
5
5
  const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
6
6
 
7
7
  function getThisCodebaseRootDirPath_rec(dirPath: string): string {
8
- if (fs.existsSync(path.join(dirPath, 'package.json'))) {
8
+ if (fs.existsSync(path.join(dirPath, 'LICENSE'))) {
9
9
  return dirPath;
10
10
  }
11
11
  return getThisCodebaseRootDirPath_rec(path.join(dirPath, '..'));
@@ -51,10 +51,22 @@ export async function getPrettier(): Promise<PrettierAndConfigHash> {
51
51
  // So we do a sketchy eval to bypass ncc.
52
52
  // We make sure to only do that when linking, otherwise we import properly.
53
53
  if (readThisNpmPackageVersion().startsWith('0.0.0')) {
54
- eval(
55
- `${symToStr({ prettier })} = require("${pathResolve(pathJoin(getNodeModulesBinDirPath(), '..', 'prettier'))}")`
54
+ const prettierDirPath = pathResolve(
55
+ pathJoin(getNodeModulesBinDirPath(), '..', 'prettier')
56
56
  );
57
57
 
58
+ const isCJS = typeof module !== 'undefined' && module.exports;
59
+
60
+ if (isCJS) {
61
+ eval(`${symToStr({ prettier })} = require("${prettierDirPath}")`);
62
+ } else {
63
+ prettier = await new Promise(_resolve => {
64
+ eval(
65
+ `import("file:///${pathJoin(prettierDirPath, 'index.mjs').replace(/\\/g, '/')}").then(prettier => _resolve(prettier))`
66
+ );
67
+ });
68
+ }
69
+
58
70
  assert(!is<undefined>(prettier));
59
71
 
60
72
  break import_prettier;