@frontegg/entitlements-javascript-commons
Advanced tools
Comparing version 1.0.0-alpha.12 to 1.0.0-alpha.13
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.modifyObjectKeysWithPrefix = exports.defaultFronteggAttributesMapper = exports.prepareAttributes = void 0; | ||
const flat_1 = require("flat"); | ||
const flatten_utils_1 = require("./flatten.utils"); | ||
/** | ||
@@ -14,3 +14,3 @@ * Merges both `custom` and `jwt` records, map Frontegg attributes and modifies record keys with corrisponding prefixes | ||
const { custom = {}, jwt = {} } = attributes; | ||
const flatJwtAttributes = (0, flat_1.flatten)(jwt); | ||
const flatJwtAttributes = (0, flatten_utils_1.flatten)(jwt); | ||
const fronteggAttributes = customFronteggAttributesMapper | ||
@@ -17,0 +17,0 @@ ? customFronteggAttributesMapper(jwt) |
@@ -0,1 +1,8 @@ | ||
# [1.0.0-alpha.13](https://github.com/frontegg/entitlements-javascript-commons/compare/v-1.0.0-alpha.12...v-1.0.0-alpha.13) (2023-10-22) | ||
### Bug Fixes | ||
* **dep:** remove flat dependency ([e8a2daf](https://github.com/frontegg/entitlements-javascript-commons/commit/e8a2dafde0612ebfacc8e2d7e346d189276e5f72)) | ||
# [1.0.0-alpha.12](https://github.com/frontegg/entitlements-javascript-commons/compare/v-1.0.0-alpha.11...v-1.0.0-alpha.12) (2023-10-18) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@frontegg/entitlements-javascript-commons", | ||
"version": "1.0.0-alpha.12", | ||
"version": "1.0.0-alpha.13", | ||
"description": "", | ||
@@ -28,3 +28,2 @@ "main": "dist/index.js", | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/flat": "^5.0.3", | ||
"@types/jest": "^29.2.0", | ||
@@ -44,6 +43,3 @@ "@types/sinon": "^10.0.15", | ||
"typescript": "^4.8.4" | ||
}, | ||
"dependencies": { | ||
"flat": "^5.0.2" | ||
} | ||
} |
@@ -1,4 +0,3 @@ | ||
import { flatten } from 'flat'; | ||
import { Attributes, JwtAttributes, FronteggAttributes } from './types'; | ||
import { flatten } from './flatten.utils'; | ||
/** | ||
@@ -5,0 +4,0 @@ * Merges both `custom` and `jwt` records, map Frontegg attributes and modifies record keys with corrisponding prefixes |
import * as AttributesUtils from '../attributes.utils'; | ||
import { Attributes, FronteggAttributes, JwtAttributes } from '../types'; | ||
import { flatten } from 'flat'; | ||
describe('prepareAttributes', () => { | ||
@@ -5,0 +4,0 @@ test('given custom & jwt attributes, expected is merged & flatten attributes record', () => { |
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
146524
0
17
171
2566
- Removedflat@^5.0.2
- Removedflat@5.0.2(transitive)