File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -41,23 +41,6 @@ export const MAX_JS_INT = Number.MAX_SAFE_INTEGER + 1;
41
41
42
42
export type AnyOptions = Document ;
43
43
44
- /**
45
- * Add a readonly enumerable property.
46
- * @internal
47
- */
48
- export function getSingleProperty (
49
- obj : AnyOptions ,
50
- name : string | number | symbol ,
51
- value : unknown
52
- ) : void {
53
- Object . defineProperty ( obj , name , {
54
- enumerable : true ,
55
- get ( ) {
56
- return value ;
57
- }
58
- } ) ;
59
- }
60
-
61
44
/**
62
45
* Throws if collectionName is not a valid mongodb collection namespace.
63
46
* @internal
@@ -185,17 +168,6 @@ export function isObject(arg: unknown): arg is object {
185
168
return '[object Object]' === Object . prototype . toString . call ( arg ) ;
186
169
}
187
170
188
- /** @internal */
189
- export function decorateCommand ( command : Document , options : Document , exclude : string [ ] ) : Document {
190
- for ( const name in options ) {
191
- if ( ! exclude . includes ( name ) ) {
192
- command [ name ] = options [ name ] ;
193
- }
194
- }
195
-
196
- return command ;
197
- }
198
-
199
171
/** @internal */
200
172
export function mergeOptions < T , S > ( target : T , source : S ) : T & S {
201
173
return { ...target , ...source } ;
@@ -657,11 +629,6 @@ export function databaseNamespace(ns: string): string {
657
629
return ns . split ( '.' ) [ 0 ] ;
658
630
}
659
631
660
- /** @internal */
661
- export function collectionNamespace ( ns : string ) : string {
662
- return ns . split ( '.' ) . slice ( 1 ) . join ( '.' ) ;
663
- }
664
-
665
632
/**
666
633
* Synchronously Generate a UUIDv4
667
634
* @internal
You can’t perform that action at this time.
0 commit comments