@opra/common 1.0.0-alpha.33 → 1.0.0-alpha.35

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/browser/index.cjs CHANGED
@@ -2547,7 +2547,7 @@ var DataTypeMap = _DataTypeMap;
2547
2547
  // src/document/decorators/http-controller.decorator.ts
2548
2548
  var import_lodash3 = __toESM(require("lodash.omit"), 1);
2549
2549
  var import_putil_merge2 = __toESM(require("putil-merge"), 1);
2550
- var CLASS_NAME_PATTERN2 = /^(.*)(Collection|Singleton|Resource|Controller)$/;
2550
+ var CLASS_NAME_PATTERN2 = /^(.*)(Controller)$/;
2551
2551
  function HttpControllerDecoratorFactory(options) {
2552
2552
  const decoratorChain = [];
2553
2553
  const decorator = /* @__PURE__ */ __name(function(target) {
package/browser/index.mjs CHANGED
@@ -2407,7 +2407,7 @@ var DataTypeMap = _DataTypeMap;
2407
2407
  // src/document/decorators/http-controller.decorator.ts
2408
2408
  import omit3 from "lodash.omit";
2409
2409
  import merge2 from "putil-merge";
2410
- var CLASS_NAME_PATTERN2 = /^(.*)(Collection|Singleton|Resource|Controller)$/;
2410
+ var CLASS_NAME_PATTERN2 = /^(.*)(Controller)$/;
2411
2411
  function HttpControllerDecoratorFactory(options) {
2412
2412
  const decoratorChain = [];
2413
2413
  const decorator = /* @__PURE__ */ __name(function(target) {
@@ -6,7 +6,7 @@ const lodash_omit_1 = tslib_1.__importDefault(require("lodash.omit"));
6
6
  const putil_merge_1 = tslib_1.__importDefault(require("putil-merge"));
7
7
  const index_js_1 = require("../../schema/index.js");
8
8
  const constants_js_1 = require("../constants.js");
9
- const CLASS_NAME_PATTERN = /^(.*)(Collection|Singleton|Resource|Controller)$/;
9
+ const CLASS_NAME_PATTERN = /^(.*)(Controller)$/;
10
10
  function HttpControllerDecoratorFactory(options) {
11
11
  const decoratorChain = [];
12
12
  /**
@@ -2,7 +2,7 @@ import omit from 'lodash.omit';
2
2
  import merge from 'putil-merge';
3
3
  import { OpraSchema } from '../../schema/index.js';
4
4
  import { HTTP_CONTROLLER_METADATA } from '../constants.js';
5
- const CLASS_NAME_PATTERN = /^(.*)(Collection|Singleton|Resource|Controller)$/;
5
+ const CLASS_NAME_PATTERN = /^(.*)(Controller)$/;
6
6
  export function HttpControllerDecoratorFactory(options) {
7
7
  const decoratorChain = [];
8
8
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/common",
3
- "version": "1.0.0-alpha.33",
3
+ "version": "1.0.0-alpha.35",
4
4
  "description": "Opra common package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "@browsery/http-parser": "^0.5.9-r1",
11
11
  "@browsery/i18next": "^23.12.3-r1",
12
12
  "@browsery/type-is": "^1.6.18-r5",
13
- "fast-tokenizer": "^1.6.1",
13
+ "fast-tokenizer": "^1.7.0",
14
14
  "lodash.omit": "^4.5.0",
15
15
  "putil-isplainobject": "^1.1.5",
16
16
  "putil-merge": "^3.13.0",
@@ -20,7 +20,7 @@
20
20
  "super-fast-md5": "^1.0.3",
21
21
  "tslib": "^2.6.3",
22
22
  "uid": "^2.0.1",
23
- "valgen": "^5.8.2"
23
+ "valgen": "^5.9.0"
24
24
  },
25
25
  "type": "module",
26
26
  "exports": {
@@ -30,13 +30,18 @@
30
30
  "default": "./esm/index.js"
31
31
  },
32
32
  "require": {
33
- "types": "./types/index.d.ts",
33
+ "types": "./types/index.d.cts",
34
34
  "default": "./cjs/index.js"
35
35
  },
36
36
  "browser": {
37
- "types": "./types/index.d.ts",
38
- "import": "./browser/index.mjs",
39
- "require": "./browser/index.cjs",
37
+ "import": {
38
+ "types": "./types/index.d.ts",
39
+ "default": "./browser/index.mjs"
40
+ },
41
+ "require": {
42
+ "types": "./types/index.d.cts",
43
+ "default": "./browser/index.cjs"
44
+ },
40
45
  "default": "./browser/index.mjs"
41
46
  },
42
47
  "default": "./esm/index.js"
@@ -45,7 +50,6 @@
45
50
  },
46
51
  "main": "./cjs/index.js",
47
52
  "module": "./esm/index.js",
48
- "browser": "./browser/index.cjs",
49
53
  "types": "./types/index.d.ts",
50
54
  "repository": {
51
55
  "type": "git",
@@ -0,0 +1,9 @@
1
+ export * from './document/index.js';
2
+ export * from './exception/index.js';
3
+ export * from './filter/index.js';
4
+ export * from './helpers/index.js';
5
+ export * from './http/index.js';
6
+ export * from './i18n/index.js';
7
+ export * from './schema/index.js';
8
+ export * from './types.js';
9
+ export { uid } from 'uid';