Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adopted-ember-addons/validated-changeset
/ functions
Functions
232 in github.com/adopted-ember-addons/validated-changeset
⨍
Functions
232
◇
Types & classes
56
↓ 312 callers
Method
set
(key: string, value: T)
src/index.ts:1130
↓ 280 callers
Function
Changeset
( obj: object, validateFn?: ValidatorAction, validationMap?: ValidatorMap | null | undefined, options?
src/index.ts:1182
↓ 262 callers
Method
get
(key: string)
src/index.ts:1029
↓ 101 callers
Function
get
()
test/index.test.ts:3017
↓ 78 callers
Function
lookupValidator
(validationMap: ValidatorMap)
src/utils/validator-lookup.ts:19
↓ 54 callers
Method
validate
(_key: string, _newValue: unknown)
test/index.test.ts:3039
↓ 45 callers
Method
execute
* Executes the changeset if in a valid state. * * @method execute
src/index.ts:401
↓ 39 callers
Function
setDeep
( target: any, path: string, value: unknown, options: Options = { safeSet: undefined, safeGet: undefin
src/utils/set-deep.ts:40
↓ 25 callers
Method
unwrap
()
src/utils/object-tree-node.ts:106
↓ 24 callers
Method
addError
* 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 callers
Function
isChange
(maybeChange: unknown)
src/-private/change.ts:15
↓ 18 callers
Function
normalizeObject
( target: T, isObj: (...args: unknown[]) => unknown = isObject )
src/utils/normalize-object.ts:25
↓ 18 callers
Method
rollback
* Returns the changeset to its pristine state, and discards changes and * errors. * * @method rollback
src/index.ts:522
↓ 16 callers
Function
getChangeValue
(maybeChange: Change | unknown)
src/-private/change.ts:18
↓ 15 callers
Function
isObject
(val: T)
src/utils/is-object.ts:1
↓ 15 callers
Function
mergeDeep
( target: any, source: any, options: Options = { safeGet: undefined, safeSet: undefined, pro
src/utils/merge-deep.ts:140
↓ 15 callers
Method
safeGet
* @property safeGet * @override
src/index.ts:208
↓ 12 callers
Method
save
* 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 callers
Function
hasChanges
(changes: Record<string, any>)
src/utils/has-changes.ts:4
↓ 11 callers
Function
set
(targetBuffer, key, value /*, receiver*/)
src/index.ts:1196
↓ 10 callers
Function
keyInObject
(obj: any, key: string)
src/utils/key-in-object.ts:1
↓ 9 callers
Function
getSubObject
(root: T, path: string | string[])
src/utils/get-deep.ts:36
↓ 9 callers
Method
on
(eventName: string, callback: (key: string) => unknown)
src/types/index.ts:29
↓ 9 callers
Method
pushErrors
* 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 callers
Method
safeSet
* @property safeSet * @override
src/index.ts:216
↓ 9 callers
Method
toString
* String representation for the changeset.
src/index.ts:348
↓ 8 callers
Method
_deleteKey
* Deletes a key off an object and notifies observers.
src/index.ts:974
↓ 8 callers
Function
getDeep
( root: T, path: string | string[] )
src/utils/get-deep.ts:8
↓ 8 callers
Function
pathInChanges
( record: Record<string, any>, path: string, safeGet: (obj: Record<string, any>, key: string) => any )
src/utils/has-key.ts:25
↓ 8 callers
Function
pureAssign
(...objects: object[])
src/utils/assign.ts:18
↓ 7 callers
Function
_validator
()
test/index.test.ts:3441
↓ 7 callers
Function
hasKey
( record: Record<string, any>, path: string, safeGet: (obj: Record<string, any>, key: string) => any )
src/utils/has-key.ts:3
↓ 6 callers
Method
_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 callers
Function
execCommand
(command, force)
bin/test-external-changeset.js:47
↓ 6 callers
Function
flattenValidations
(validatorMap: Record<string, any>)
src/utils/flatten-validations.ts:40
↓ 6 callers
Function
getKeyErrorValues
( obj: T, keysUpToValue: Array<string> = [] )
src/utils/get-key-values.ts:38
↓ 6 callers
Function
getKeyValues
( obj: T, keysUpToValue: Array<string> = [] )
src/utils/get-key-values.ts:13
↓ 6 callers
Method
merge
* 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 callers
Function
notifierForEvent
(object: any, eventName: string)
src/-private/evented.ts:3
↓ 6 callers
Method
removeError
* Manually remove an error from the changeset. * * @method removeError
src/index.ts:652
↓ 6 callers
Method
rollbackInvalid
* Discards any errors, keeping only valid changes. * * @public * @chainable * @method rollbackInvalid * @param {String} key optional ke
src/index.ts:545
↓ 5 callers
Method
_deleteKey
* Deletes a key off an object and notifies observers.
src/validated.ts:597
↓ 5 callers
Method
_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 callers
Function
assert
(msg: string, property: unknown)
src/index.ts:95
↓ 5 callers
Function
buildOldValues
( content: any, changes: Record<string, any>[], getDeep: (obj: any, key: string) => any )
src/utils/build-old-values.ts:1
↓ 5 callers
Method
snapshot
* Creates a snapshot of the changeset's errors and changes. * * @method snapshot
src/index.ts:707
↓ 5 callers
Method
trigger
(eventName: string, ...args: any[])
src/index.ts:167
↓ 4 callers
Function
arrayToObject
(array: any[])
src/utils/array-object.ts:9
↓ 4 callers
Function
execWithLog
(command, force)
bin/test-external-changeset.js:37
↓ 4 callers
Method
isValidating
* 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 callers
Function
objectToArray
(obj: Record<string, any>)
src/utils/array-object.ts:16
↓ 4 callers
Method
trigger
(eventName: string, ...args: any[])
src/types/index.ts:31
↓ 3 callers
Method
_handleValidation
* Takes resolved validation and adds an error or simply returns the value * * @method _handleValidation * @private
src/index.ts:865
↓ 3 callers
Function
deepObj
(email: string)
test/index.test.ts:1087
↓ 3 callers
Function
deepObj
(email: string)
test/validated.test.ts:809
↓ 3 callers
Function
isChangeset
(changeset: any)
src/utils/is-changeset.ts:3
↓ 3 callers
Function
isPromise
(obj: any)
src/utils/is-promise.ts:15
↓ 3 callers
Function
mergeNested
(...objects: Array<{ [key: string]: T }>)
src/utils/merge-nested.ts:9
↓ 3 callers
Function
objectWithout
(excludedKeys: string[], ...sources: any[])
src/utils/object-without.ts:8
↓ 3 callers
Method
prepare
(preparedChangedFn: PrepareChangesFn)
src/types/index.ts:144
↓ 3 callers
Method
removeErrors
* @method removeErrors
src/index.ts:670
↓ 3 callers
Method
rollbackProperty
* Discards changes/errors for the specified properly only. * * @public * @chainable * @method rollbackProperty * @param {String} key ke
src/index.ts:579
↓ 3 callers
Function
safeGet
(obj: any, key: string)
test/utils/has-key.test.ts:4
↓ 3 callers
Method
toString
* String representation for the changeset.
src/validated.ts:286
↓ 2 callers
Method
_isValidResult
(result: ValidationResult)
src/index.ts:1025
↓ 2 callers
Method
_rollbackKeys
* Gets the changes and error keys.
src/validated.ts:588
↓ 2 callers
Method
_rollbackKeys
* Gets the changes and error keys.
src/index.ts:965
↓ 2 callers
Method
_setProperty
* Sets property on the changeset.
src/index.ts:919
↓ 2 callers
Method
_validate
()
test/index.test.ts:3036
↓ 2 callers
Method
_validate
* runs the validator with the key and value * * @method _validate * @private
src/index.ts:888
↓ 2 callers
Method
_validateKey
* Validates a specific key * * @method _validateKey * @private
src/index.ts:817
↓ 2 callers
Method
addListener
(callback: (...args: unknown[]) => unknown)
src/types/index.ts:23
↓ 2 callers
Function
assert
(msg: string, property: unknown)
src/validated.ts:45
↓ 2 callers
Method
cast
* 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 callers
Function
changeset
( obj: object, validateFn?: ValidatorAction, validationMap?: ValidatorMap | null | undefined, options?
src/index.ts:1142
↓ 2 callers
Function
isArrayObject
(obj: Record<string, any>)
src/utils/array-object.ts:1
↓ 2 callers
Function
mergeTargetAndSource
* `source` will always have a leaf key `value` with the property we want to set * * @method mergeTargetAndSource
src/utils/merge-deep.ts:87
↓ 2 callers
Function
propertyIsOnObject
(object: any, property: any)
src/utils/merge-deep.ts:38
↓ 2 callers
Method
removeListener
(callback: (...args: unknown[]) => unknown)
src/types/index.ts:24
↓ 2 callers
Method
restore
* Restores a snapshot of changes and errors. This overrides existing * changes and errors. * * @method restore
src/index.ts:737
↓ 2 callers
Method
safeGet
* @property safeGet * @override
src/validated.ts:160
↓ 2 callers
Method
set
(key: string, value: unknown)
src/utils/object-tree-node.ts:102
↓ 2 callers
Function
take
( originalObj: { [key: string]: any } = {}, keysToTake: string[] = [] )
src/utils/take.ts:1
↓ 2 callers
Method
trigger
(eventName: string, ...args: any[])
src/validated.ts:119
↓ 2 callers
Method
unexecute
()
src/index.ts:424
↓ 1 callers
Method
_collectErrors
()
src/index.ts:1004
↓ 1 callers
Method
_setIsValidating
* Increment or decrement the number of running validations for a * given key.
src/index.ts:941
↓ 1 callers
Method
_setProperty
* Sets property on the changeset.
src/validated.ts:551
↓ 1 callers
Method
bark
()
test/index.test.ts:678
↓ 1 callers
Method
bark
()
test/validated.test.ts:425
↓ 1 callers
Function
buildPathToValue
* 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 callers
Function
callback
()
test/index.test.ts:2194
↓ 1 callers
Function
changeset
(obj: object, options?: Config)
src/validated.ts:740
↓ 1 callers
Function
delay
(duration: number)
test/index.test.ts:3609
↓ 1 callers
Method
error
()
src/index.ts:260
↓ 1 callers
Function
findSiblings
(target: any, keys: string[])
src/utils/set-deep.ts:16
↓ 1 callers
Function
flatten
( validatorMap: Record<string, any>, obj: Record<string, any>, keys: string[], keysUpToFunction: Array
src/utils/flatten-validations.ts:3
↓ 1 callers
Function
generateTarball
()
bin/test-external-changeset.js:52
↓ 1 callers
Function
get
* Priority of access - changes, content, then check node * @property get
src/utils/object-tree-node.ts:14
↓ 1 callers
Method
get
(key: string)
src/validated.ts:627
next →
1–100 of 232, ranked by callers