@alfresco/js-api 9.4.0-22958058135 → 9.4.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.4.0-22958058135",
3
+ "version": "9.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "JavaScript client library for the Alfresco REST API",
6
6
  "author": "Hyland Software, Inc. and its affiliates",
@@ -15,5 +15,6 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export * from './is-browser';
18
+ export * from './lazy-api';
18
19
  export * from './param-to-string';
19
20
  //# sourceMappingURL=../../../../../../lib/js-api/src/utils/index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './is-browser';\nexport * from './param-to-string';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './is-browser';\nexport * from './lazy-api';\nexport * from './param-to-string';\n"]}
@@ -0,0 +1,32 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export function LazyApi(factory) {
18
+ return function (target, propertyKey) {
19
+ const cacheKey = `_${propertyKey}`;
20
+ Object.defineProperty(target, propertyKey, {
21
+ get() {
22
+ if (!this[cacheKey]) {
23
+ this[cacheKey] = factory(this);
24
+ }
25
+ return this[cacheKey];
26
+ },
27
+ enumerable: true,
28
+ configurable: true
29
+ });
30
+ };
31
+ }
32
+ //# sourceMappingURL=../../../../../../lib/js-api/src/utils/lazy-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-api.js","sourceRoot":"","sources":["lazy-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,MAAM,UAAU,OAAO,CAAI,OAAyB;IAChD,OAAO,UAAU,MAAW,EAAE,WAAmB;QAC7C,MAAM,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;QACnC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE;YACvC,GAAG;gBACC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnC,CAAC;gBACD,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC1B,CAAC;YACD,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,IAAI;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * LazyApi is a decorator that creates a lazy-loaded API instance.\n * @param factory - A function that creates the API instance.\n * @returns A decorator function that can be used to decorate a class property.\n */\nexport function LazyApi<T>(factory: (self: any) => T) {\n return function (target: any, propertyKey: string) {\n const cacheKey = `_${propertyKey}`;\n Object.defineProperty(target, propertyKey, {\n get() {\n if (!this[cacheKey]) {\n this[cacheKey] = factory(this);\n }\n return this[cacheKey];\n },\n enumerable: true,\n configurable: true\n });\n };\n}\n"]}
package/esm5/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.4.0-22958058135",
3
+ "version": "9.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "JavaScript client library for the Alfresco REST API",
6
6
  "author": "Hyland Software, Inc. and its affiliates",
@@ -15,5 +15,6 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export * from './is-browser';
18
+ export * from './lazy-api';
18
19
  export * from './param-to-string';
19
20
  //# sourceMappingURL=../../../../../../lib/js-api/src/utils/index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './is-browser';\nexport * from './param-to-string';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './is-browser';\nexport * from './lazy-api';\nexport * from './param-to-string';\n"]}
@@ -0,0 +1,32 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export function LazyApi(factory) {
18
+ return function (target, propertyKey) {
19
+ const cacheKey = `_${propertyKey}`;
20
+ Object.defineProperty(target, propertyKey, {
21
+ get() {
22
+ if (!this[cacheKey]) {
23
+ this[cacheKey] = factory(this);
24
+ }
25
+ return this[cacheKey];
26
+ },
27
+ enumerable: true,
28
+ configurable: true
29
+ });
30
+ };
31
+ }
32
+ //# sourceMappingURL=../../../../../../lib/js-api/src/utils/lazy-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-api.js","sourceRoot":"","sources":["lazy-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,MAAM,UAAU,OAAO,CAAI,OAAyB;IAChD,OAAO,UAAU,MAAW,EAAE,WAAmB;QAC7C,MAAM,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;QACnC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE;YACvC,GAAG;gBACC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnC,CAAC;gBACD,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC1B,CAAC;YACD,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,IAAI;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * LazyApi is a decorator that creates a lazy-loaded API instance.\n * @param factory - A function that creates the API instance.\n * @returns A decorator function that can be used to decorate a class property.\n */\nexport function LazyApi<T>(factory: (self: any) => T) {\n return function (target: any, propertyKey: string) {\n const cacheKey = `_${propertyKey}`;\n Object.defineProperty(target, propertyKey, {\n get() {\n if (!this[cacheKey]) {\n this[cacheKey] = factory(this);\n }\n return this[cacheKey];\n },\n enumerable: true,\n configurable: true\n });\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.4.0-22958058135",
3
+ "version": "9.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "JavaScript client library for the Alfresco REST API",
6
6
  "author": "Hyland Software, Inc. and its affiliates",
@@ -18,5 +18,6 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  const tslib_1 = require("tslib");
20
20
  tslib_1.__exportStar(require("./is-browser"), exports);
21
+ tslib_1.__exportStar(require("./lazy-api"), exports);
21
22
  tslib_1.__exportStar(require("./param-to-string"), exports);
22
23
  //# sourceMappingURL=../../../../../lib/js-api/src/utils/index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,uDAA6B;AAC7B,4DAAkC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './is-browser';\nexport * from './param-to-string';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,uDAA6B;AAC7B,qDAA2B;AAC3B,4DAAkC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './is-browser';\nexport * from './lazy-api';\nexport * from './param-to-string';\n"]}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /*!
3
+ * @license
4
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.LazyApi = LazyApi;
20
+ function LazyApi(factory) {
21
+ return function (target, propertyKey) {
22
+ const cacheKey = `_${propertyKey}`;
23
+ Object.defineProperty(target, propertyKey, {
24
+ get() {
25
+ if (!this[cacheKey]) {
26
+ this[cacheKey] = factory(this);
27
+ }
28
+ return this[cacheKey];
29
+ },
30
+ enumerable: true,
31
+ configurable: true
32
+ });
33
+ };
34
+ }
35
+ //# sourceMappingURL=../../../../../lib/js-api/src/utils/lazy-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-api.js","sourceRoot":"","sources":["lazy-api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAOH,0BAcC;AAdD,SAAgB,OAAO,CAAI,OAAyB;IAChD,OAAO,UAAU,MAAW,EAAE,WAAmB;QAC7C,MAAM,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;QACnC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE;YACvC,GAAG;gBACC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnC,CAAC;gBACD,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC1B,CAAC;YACD,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,IAAI;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * LazyApi is a decorator that creates a lazy-loaded API instance.\n * @param factory - A function that creates the API instance.\n * @returns A decorator function that can be used to decorate a class property.\n */\nexport function LazyApi<T>(factory: (self: any) => T) {\n return function (target: any, propertyKey: string) {\n const cacheKey = `_${propertyKey}`;\n Object.defineProperty(target, propertyKey, {\n get() {\n if (!this[cacheKey]) {\n this[cacheKey] = factory(this);\n }\n return this[cacheKey];\n },\n enumerable: true,\n configurable: true\n });\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "9.4.0-22958058135",
3
+ "version": "9.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "JavaScript client library for the Alfresco REST API",
6
6
  "author": "Hyland Software, Inc. and its affiliates",
@@ -15,4 +15,5 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export * from './is-browser';
18
+ export * from './lazy-api';
18
19
  export * from './param-to-string';
@@ -0,0 +1,22 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * LazyApi is a decorator that creates a lazy-loaded API instance.
19
+ * @param factory - A function that creates the API instance.
20
+ * @returns A decorator function that can be used to decorate a class property.
21
+ */
22
+ export declare function LazyApi<T>(factory: (self: any) => T): (target: any, propertyKey: string) => void;