MCPcopy Create free account

hub / github.com/adopted-ember-addons/validated-changeset / functions

Functions232 in github.com/adopted-ember-addons/validated-changeset

↓ 312 callersMethodset
(key: string, value: T)
src/index.ts:1130
↓ 280 callersFunctionChangeset
( obj: object, validateFn?: ValidatorAction, validationMap?: ValidatorMap | null | undefined, options?
src/index.ts:1182
↓ 262 callersMethodget
(key: string)
src/index.ts:1029
↓ 101 callersFunctionget
()
test/index.test.ts:3017
↓ 78 callersFunctionlookupValidator
(validationMap: ValidatorMap)
src/utils/validator-lookup.ts:19
↓ 54 callersMethodvalidate
(_key: string, _newValue: unknown)
test/index.test.ts:3039
↓ 45 callersMethodexecute
* Executes the changeset if in a valid state. * * @method execute
src/index.ts:401
↓ 39 callersFunctionsetDeep
( target: any, path: string, value: unknown, options: Options = { safeSet: undefined, safeGet: undefin
src/utils/set-deep.ts:40
↓ 25 callersMethodunwrap
()
src/utils/object-tree-node.ts:106
↓ 24 callersMethodaddError
* Manually add an error to the changeset. If there is an existing * error or change for `key`, it will be overwritten. * * @method addError
src/index.ts:622
↓ 23 callersFunctionisChange
(maybeChange: unknown)
src/-private/change.ts:15
↓ 18 callersFunctionnormalizeObject
( target: T, isObj: (...args: unknown[]) => unknown = isObject )
src/utils/normalize-object.ts:25
↓ 18 callersMethodrollback
* Returns the changeset to its pristine state, and discards changes and * errors. * * @method rollback
src/index.ts:522
↓ 16 callersFunctiongetChangeValue
(maybeChange: Change | unknown)
src/-private/change.ts:18
↓ 15 callersFunctionisObject
(val: T)
src/utils/is-object.ts:1
↓ 15 callersFunctionmergeDeep
( target: any, source: any, options: Options = { safeGet: undefined, safeSet: undefined, pro
src/utils/merge-deep.ts:140
↓ 15 callersMethodsafeGet
* @property safeGet * @override
src/index.ts:208
↓ 12 callersMethodsave
* Executes the changeset and saves the underlying content. * * @method save * @param {Object} options optional object to pass to content save
src/index.ts:441
↓ 11 callersFunctionhasChanges
(changes: Record<string, any>)
src/utils/has-changes.ts:4
↓ 11 callersFunctionset
(targetBuffer, key, value /*, receiver*/)
src/index.ts:1196
↓ 10 callersFunctionkeyInObject
(obj: any, key: string)
src/utils/key-in-object.ts:1
↓ 9 callersFunctiongetSubObject
(root: T, path: string | string[])
src/utils/get-deep.ts:36
↓ 9 callersMethodon
(eventName: string, callback: (key: string) => unknown)
src/types/index.ts:29
↓ 9 callersMethodpushErrors
* Manually push multiple errors to the changeset as an array. * key maybe in form 'name.short' so need to go deep * * @method pushErrors
src/index.ts:682
↓ 9 callersMethodsafeSet
* @property safeSet * @override
src/index.ts:216
↓ 9 callersMethodtoString
* String representation for the changeset.
src/index.ts:348
↓ 8 callersMethod_deleteKey
* Deletes a key off an object and notifies observers.
src/index.ts:974
↓ 8 callersFunctiongetDeep
( root: T, path: string | string[] )
src/utils/get-deep.ts:8
↓ 8 callersFunctionpathInChanges
( record: Record<string, any>, path: string, safeGet: (obj: Record<string, any>, key: string) => any )
src/utils/has-key.ts:25
↓ 8 callersFunctionpureAssign
(...objects: object[])
src/utils/assign.ts:18
↓ 7 callersFunction_validator
()
test/index.test.ts:3441
↓ 7 callersFunctionhasKey
( record: Record<string, any>, path: string, safeGet: (obj: Record<string, any>, key: string) => any )
src/utils/has-key.ts:3
↓ 6 callersMethod_notifyVirtualProperties
* Notifies virtual properties set on the changeset of a change. * You can specify which keys are notified by passing in an array. * * @privat
src/index.ts:954
↓ 6 callersFunctionexecCommand
(command, force)
bin/test-external-changeset.js:47
↓ 6 callersFunctionflattenValidations
(validatorMap: Record<string, any>)
src/utils/flatten-validations.ts:40
↓ 6 callersFunctiongetKeyErrorValues
( obj: T, keysUpToValue: Array<string> = [] )
src/utils/get-key-values.ts:38
↓ 6 callersFunctiongetKeyValues
( obj: T, keysUpToValue: Array<string> = [] )
src/utils/get-key-values.ts:13
↓ 6 callersMethodmerge
* Merges 2 valid changesets and returns a new changeset. Both changesets * must point to the same underlying object. The changeset target is the
src/index.ts:489
↓ 6 callersFunctionnotifierForEvent
(object: any, eventName: string)
src/-private/evented.ts:3
↓ 6 callersMethodremoveError
* Manually remove an error from the changeset. * * @method removeError
src/index.ts:652
↓ 6 callersMethodrollbackInvalid
* Discards any errors, keeping only valid changes. * * @public * @chainable * @method rollbackInvalid * @param {String} key optional ke
src/index.ts:545
↓ 5 callersMethod_deleteKey
* Deletes a key off an object and notifies observers.
src/validated.ts:597
↓ 5 callersMethod_notifyVirtualProperties
* Notifies virtual properties set on the changeset of a change. * You can specify which keys are notified by passing in an array. * * @privat
src/validated.ts:577
↓ 5 callersFunctionassert
(msg: string, property: unknown)
src/index.ts:95
↓ 5 callersFunctionbuildOldValues
( content: any, changes: Record<string, any>[], getDeep: (obj: any, key: string) => any )
src/utils/build-old-values.ts:1
↓ 5 callersMethodsnapshot
* Creates a snapshot of the changeset's errors and changes. * * @method snapshot
src/index.ts:707
↓ 5 callersMethodtrigger
(eventName: string, ...args: any[])
src/index.ts:167
↓ 4 callersFunctionarrayToObject
(array: any[])
src/utils/array-object.ts:9
↓ 4 callersFunctionexecWithLog
(command, force)
bin/test-external-changeset.js:37
↓ 4 callersMethodisValidating
* Checks to see if async validator for a given key has not resolved. * If no key is provided it will check to see if any async validator is running
src/index.ts:802
↓ 4 callersFunctionobjectToArray
(obj: Record<string, any>)
src/utils/array-object.ts:16
↓ 4 callersMethodtrigger
(eventName: string, ...args: any[])
src/types/index.ts:31
↓ 3 callersMethod_handleValidation
* Takes resolved validation and adds an error or simply returns the value * * @method _handleValidation * @private
src/index.ts:865
↓ 3 callersFunctiondeepObj
(email: string)
test/index.test.ts:1087
↓ 3 callersFunctiondeepObj
(email: string)
test/validated.test.ts:809
↓ 3 callersFunctionisChangeset
(changeset: any)
src/utils/is-changeset.ts:3
↓ 3 callersFunctionisPromise
(obj: any)
src/utils/is-promise.ts:15
↓ 3 callersFunctionmergeNested
(...objects: Array<{ [key: string]: T }>)
src/utils/merge-nested.ts:9
↓ 3 callersFunctionobjectWithout
(excludedKeys: string[], ...sources: any[])
src/utils/object-without.ts:8
↓ 3 callersMethodprepare
(preparedChangedFn: PrepareChangesFn)
src/types/index.ts:144
↓ 3 callersMethodremoveErrors
* @method removeErrors
src/index.ts:670
↓ 3 callersMethodrollbackProperty
* Discards changes/errors for the specified properly only. * * @public * @chainable * @method rollbackProperty * @param {String} key ke
src/index.ts:579
↓ 3 callersFunctionsafeGet
(obj: any, key: string)
test/utils/has-key.test.ts:4
↓ 3 callersMethodtoString
* String representation for the changeset.
src/validated.ts:286
↓ 2 callersMethod_isValidResult
(result: ValidationResult)
src/index.ts:1025
↓ 2 callersMethod_rollbackKeys
* Gets the changes and error keys.
src/validated.ts:588
↓ 2 callersMethod_rollbackKeys
* Gets the changes and error keys.
src/index.ts:965
↓ 2 callersMethod_setProperty
* Sets property on the changeset.
src/index.ts:919
↓ 2 callersMethod_validate
()
test/index.test.ts:3036
↓ 2 callersMethod_validate
* runs the validator with the key and value * * @method _validate * @private
src/index.ts:888
↓ 2 callersMethod_validateKey
* Validates a specific key * * @method _validateKey * @private
src/index.ts:817
↓ 2 callersMethodaddListener
(callback: (...args: unknown[]) => unknown)
src/types/index.ts:23
↓ 2 callersFunctionassert
(msg: string, property: unknown)
src/validated.ts:45
↓ 2 callersMethodcast
* Unlike `Ecto.Changeset.cast`, `cast` will take allowed keys and * remove unwanted keys off of the changeset. For example, this method * can be
src/index.ts:781
↓ 2 callersFunctionchangeset
( obj: object, validateFn?: ValidatorAction, validationMap?: ValidatorMap | null | undefined, options?
src/index.ts:1142
↓ 2 callersFunctionisArrayObject
(obj: Record<string, any>)
src/utils/array-object.ts:1
↓ 2 callersFunctionmergeTargetAndSource
* `source` will always have a leaf key `value` with the property we want to set * * @method mergeTargetAndSource
src/utils/merge-deep.ts:87
↓ 2 callersFunctionpropertyIsOnObject
(object: any, property: any)
src/utils/merge-deep.ts:38
↓ 2 callersMethodremoveListener
(callback: (...args: unknown[]) => unknown)
src/types/index.ts:24
↓ 2 callersMethodrestore
* Restores a snapshot of changes and errors. This overrides existing * changes and errors. * * @method restore
src/index.ts:737
↓ 2 callersMethodsafeGet
* @property safeGet * @override
src/validated.ts:160
↓ 2 callersMethodset
(key: string, value: unknown)
src/utils/object-tree-node.ts:102
↓ 2 callersFunctiontake
( originalObj: { [key: string]: any } = {}, keysToTake: string[] = [] )
src/utils/take.ts:1
↓ 2 callersMethodtrigger
(eventName: string, ...args: any[])
src/validated.ts:119
↓ 2 callersMethodunexecute
()
src/index.ts:424
↓ 1 callersMethod_collectErrors
()
src/index.ts:1004
↓ 1 callersMethod_setIsValidating
* Increment or decrement the number of running validations for a * given key.
src/index.ts:941
↓ 1 callersMethod_setProperty
* Sets property on the changeset.
src/validated.ts:551
↓ 1 callersMethodbark
()
test/index.test.ts:678
↓ 1 callersMethodbark
()
test/validated.test.ts:425
↓ 1 callersFunctionbuildPathToValue
* DFS - traverse depth first until find object with `value`. Then go back up tree and try on next key * Need to exhaust all possible avenues. * *
src/utils/merge-deep.ts:61
↓ 1 callersFunctioncallback
()
test/index.test.ts:2194
↓ 1 callersFunctionchangeset
(obj: object, options?: Config)
src/validated.ts:740
↓ 1 callersFunctiondelay
(duration: number)
test/index.test.ts:3609
↓ 1 callersMethoderror
()
src/index.ts:260
↓ 1 callersFunctionfindSiblings
(target: any, keys: string[])
src/utils/set-deep.ts:16
↓ 1 callersFunctionflatten
( validatorMap: Record<string, any>, obj: Record<string, any>, keys: string[], keysUpToFunction: Array
src/utils/flatten-validations.ts:3
↓ 1 callersFunctiongenerateTarball
()
bin/test-external-changeset.js:52
↓ 1 callersFunctionget
* Priority of access - changes, content, then check node * @property get
src/utils/object-tree-node.ts:14
↓ 1 callersMethodget
(key: string)
src/validated.ts:627
next →1–100 of 232, ranked by callers