11import videojs from 'video.js' ;
2- import { assign } from 'utils/assign ' ;
2+ import omit from 'lodash/omit ' ;
33import { sliceAndUnsetProperties } from 'utils/slicing' ;
4- import { isString , isPlainObject } from 'utils/type-inference' ;
4+ import isObject from 'lodash/isObject' ;
5+ import isString from 'lodash/isString' ;
56import { URL_PATTERN } from './models/video-source/video-source.const' ;
67import { createCloudinaryLegacyURL } from '@cloudinary/url-gen/backwards/createCloudinaryLegacyURL' ;
78import Transformation from '@cloudinary/url-gen/backwards/transformation' ;
8- import { omit } from '../../utils/object' ;
99
1010const normalizeOptions = ( publicId , options , { tolerateMissingId = false } = { } ) => {
11- if ( isPlainObject ( publicId ) ) {
12- const _options = assign ( { } , publicId ) ;
11+ if ( isObject ( publicId ) ) {
12+ const _options = Object . assign ( { } , publicId ) ;
1313
1414 publicId = sliceAndUnsetProperties ( _options , 'publicId' ) . publicId ;
1515
@@ -18,7 +18,7 @@ const normalizeOptions = (publicId, options, { tolerateMissingId = false } = {})
1818 }
1919
2020 if ( options ) {
21- options = assign ( { } , _options , options ) ;
21+ options = Object . assign ( { } , _options , options ) ;
2222 }
2323 }
2424
0 commit comments