Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
esbanarango committed Nov 21, 2024
1 parent 456dc70 commit 28717af
Show file tree
Hide file tree
Showing 4 changed files with 789 additions and 613 deletions.
6 changes: 5 additions & 1 deletion addon/decorators/core-validator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { get, set } from '@ember/object';
import { getOwner } from '@ember/application';
import { capitalize } from '@ember/string';
import { isEmpty, isBlank, isPresent, typeOf, isEqual } from '@ember/utils';
import { A, isArray } from '@ember/array';

Expand Down Expand Up @@ -28,6 +27,11 @@ const Messages = {
'sr-cyrl': MessagesSrCyrl,
};

function capitalize(str) {
if (typeof str !== 'string' || !str.length) return '';
return str.charAt(0).toUpperCase() + str.slice(1);
}

function coreValidator(constructor) {
return class CoreValidator extends constructor {
validationErrors = {};
Expand Down
36 changes: 20 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,23 @@
"ember-cli-typescript": "^5.3.0"
},
"devDependencies": {
"@babel/core": "7.26.0",
"@babel/eslint-parser": "7.25.9",
"@babel/plugin-proposal-decorators": "7.25.9",
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
"@ember/optional-features": "^2.0.0",
"@ember/string": "4.0.0",
"@ember/test-helpers": "^2.8.1",
"@ember/test-helpers": "4.0.4",
"@embroider/test-setup": "^3.0.1",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"@tsconfig/ember": "^2.0.0",
"@types/ember": "^4.0.3",
"@types/ember-data": "4.4.7",
"@types/ember-data__adapter": "4.0.2",
"@types/ember-data__model": "^4.0.0",
"@types/ember-data__serializer": "^4.0.1",
"@types/ember-data__store": "^4.0.2",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.5",
"@types/ember__array": "^4.0.3",
"@types/ember__component": "^4.0.11",
Expand All @@ -65,36 +74,28 @@
"@types/ember__test": "^4.0.6",
"@types/ember__test-helpers": "^2.9.1",
"@types/ember__utils": "^4.0.7",
"@types/ember-data": "4.4.7",
"@types/ember-data__adapter": "4.0.2",
"@types/ember-data__model": "^4.0.0",
"@types/ember-data__serializer": "^4.0.1",
"@types/ember-data__store": "^4.0.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/qunit": "^2.19.3",
"@types/qunit": "^2.19.12",
"@types/rsvp": "^4.0.4",
"@typescript-eslint/eslint-plugin": "5.54.0",
"@typescript-eslint/parser": "5.57.0",
"auto-changelog": "^2.4.0",
"broccoli-asset-rev": "^3.0.0",
"concurrently": "^8.0.1",
"ember-auto-import": "^2.5.0",
"ember-cli": "~4.9.2",
"ember-auto-import": "2.10.0",
"ember-cli": "6.0.1",
"ember-cli-dependency-checker": "^3.3.1",
"ember-cli-htmlbars": "6.3.0",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-data": "^5.3.0",
"ember-load-initializers": "^2.1.2",
"ember-page-title": "^7.0.0",
"ember-qunit": "^6.0.0",
"ember-qunit": "8.1.1",
"ember-resolver": "^11.0.1",
"ember-source": "4.12.3",
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^5.2.0",
"ember-try": "^2.0.0",
"ember-try": "3.0.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-ember": "^11.4.0",
Expand All @@ -104,11 +105,14 @@
"loader.js": "^4.7.0",
"prettier": "^2.8.1",
"qunit": "^2.19.3",
"qunit-dom": "^2.0.0",
"qunit-dom": "3.3.0",
"release-it": "^15.6.0",
"typescript": "^5.2.2",
"webpack": "^5.75.0"
},
"resolutions": {
"@babel/plugin-proposal-private-property-in-object": "7.21.11"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
Expand Down
2 changes: 1 addition & 1 deletion tests/test-helper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Application from 'dummy/app';
import QUnit from 'qunit';
import config from 'dummy/config/environment';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { setup } from 'qunit-dom';
import { start } from 'ember-qunit';
Expand Down
Loading

0 comments on commit 28717af

Please sign in to comment.