Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/entitlements-javascript-commons

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/entitlements-javascript-commons - npm Package Compare versions

Comparing version 1.0.0-alpha.12 to 1.0.0-alpha.13

dist/user-entitlements/flatten.utils.d.ts

4

dist/user-entitlements/attributes.utils.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc