@firestitch/api
Advanced tools
Comparing version 12.2.0 to 12.2.1
@@ -837,2 +837,5 @@ (function (global, factory) { | ||
if (data === void 0) { data = {}; } | ||
if (obj === null || typeof obj !== 'object') { | ||
return obj; | ||
} | ||
Object.keys(obj) | ||
@@ -839,0 +842,0 @@ .forEach(function (key) { |
@@ -151,2 +151,5 @@ import { Inject, Injectable, Optional } from '@angular/core'; | ||
_sanitize(obj, data = {}) { | ||
if (obj === null || typeof obj !== 'object') { | ||
return obj; | ||
} | ||
Object.keys(obj) | ||
@@ -200,2 +203,2 @@ .forEach((key) => { | ||
}] }]; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL3NlcnZpY2VzL2FwaS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQ0wsV0FBVyxFQUNYLGFBQWEsRUFDYixjQUFjLEVBRWQsWUFBWSxFQUNaLGlCQUFpQixHQUNsQixNQUFNLHNCQUFzQixDQUFDO0FBRTlCLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUUzQyxPQUFPLEVBQWMsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLE1BQU0sRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWxELE9BQU8sRUFBRSxNQUFNLEVBQUUsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUVuRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sdUJBQXVC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VkIG9iamVjdFxuICAgKlxuICAgKiBAcGFyYW0gb2JqXG4gICAqL1xuICBwcml2YXRlIF9zYW5pdGl6ZShvYmosIGRhdGEgPSB7fSkge1xuICAgIGlmKG9iaiA9PT0gbnVsbCB8fCB0eXBlb2Ygb2JqICE9PSAnb2JqZWN0Jykge1xuICAgICAgcmV0dXJuIG9iajtcbiAgICB9XG5cbiAgICBPYmplY3Qua2V5cyhvYmopXG4gICAgLmZvckVhY2goKGtleSkgPT4ge1xuICAgICAgY29uc3QgdmFsdWUgPSBvYmpba2V5XTtcbiAgICAgIGlmIChpc0RhdGUodmFsdWUpKSB7XG4gICAgICAgIGlmIChpc1ZhbGlkKHZhbHVlKSkge1xuICAgICAgICAgIGRhdGFba2V5XSA9IGZvcm1hdCh2YWx1ZSwgJ3l5eXktTU0tZGRcXCdUXFwnSEg6bW06c3N4eHgnKTtcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIGlmICh2YWx1ZSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGRhdGFba2V5XSA9IHZhbHVlO1xuXG4gICAgICAgIGlmICh2YWx1ZSBpbnN0YW5jZW9mIE9iamVjdCkge1xuICAgICAgICAgIHRoaXMuX3Nhbml0aXplKHZhbHVlLCBkYXRhW2tleV0pOyAgICAgIFxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICByZXR1cm4gZGF0YTtcbiAgfVxufVxuIl19 |
@@ -449,2 +449,5 @@ import * as i2 from '@angular/common/http'; | ||
_sanitize(obj, data = {}) { | ||
if (obj === null || typeof obj !== 'object') { | ||
return obj; | ||
} | ||
Object.keys(obj) | ||
@@ -451,0 +454,0 @@ .forEach((key) => { |
{ | ||
"name": "@firestitch/api", | ||
"version": "12.2.0", | ||
"version": "12.2.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
260614
2303
122
3
4
0
46