New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@transcend-io/airgap.js-types

Package Overview
Dependencies
Maintainers
7
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transcend-io/airgap.js-types - npm Package Compare versions

Comparing version 8.29.0 to 8.29.1

7

build/enums/experience.d.ts

@@ -16,2 +16,3 @@ import * as t from 'io-ts';

export declare const UNKNOWN_DEFAULT_EXPERIENCE = "Unknown";
export declare const GDPR_PURPOSES: [PrivacyRegime[], TrackingPurpose[]];
export declare const DEFAULT_REGIME_TRACKING_PURPOSE_SCOPES: RegimePurposeScopesConfig;

@@ -36,5 +37,8 @@ export declare const DEFAULT_REGIME_PURPOSE_OPT_OUTS: RegimePurposeScopesConfig;

export declare type RegionsOperator = typeof RegionsOperator[keyof typeof RegionsOperator];
export declare const DEFAULT_EXPERIENCE_PURPOSE_SCOPES: any;
export declare const DEFAULT_EXPERIENCE_PURPOSE_OPT_OUTS: any;
export declare const REGIME_REGIONS: Record<PrivacyRegime, Region[]>;
export declare const REGIME_LANGUAGES: Record<PrivacyRegime, string[]>;
export declare const REGIME_TIMEZONES: Record<PrivacyRegime, string[]>;
export declare const REGIME_DISPLAY_PRIORITY: Record<PrivacyRegime, number>;
export interface ExperiencePurposeInput {

@@ -46,3 +50,3 @@ /** name of the purpose */

}
interface ExperienceInput {
export interface ExperienceInput {
/** The regime determining the default experience */

@@ -84,3 +88,2 @@ name: PrivacyRegime;

};
export {};
//# sourceMappingURL=experience.d.ts.map

@@ -22,3 +22,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_EXPERIENCES = exports.defaultExperience = exports.REGIME_TIMEZONES = exports.REGIME_LANGUAGES = exports.REGIME_REGIONS = exports.RegionsOperator = exports.DEFAULT_REGIME_PURPOSE_OPT_OUTS = exports.DEFAULT_REGIME_TRACKING_PURPOSE_SCOPES = exports.UNKNOWN_DEFAULT_EXPERIENCE = exports.RegimePurposeScopesConfig = void 0;
exports.DEFAULT_EXPERIENCES = exports.defaultExperience = exports.REGIME_DISPLAY_PRIORITY = exports.REGIME_TIMEZONES = exports.REGIME_LANGUAGES = exports.REGIME_REGIONS = exports.DEFAULT_EXPERIENCE_PURPOSE_OPT_OUTS = exports.DEFAULT_EXPERIENCE_PURPOSE_SCOPES = exports.RegionsOperator = exports.DEFAULT_REGIME_PURPOSE_OPT_OUTS = exports.DEFAULT_REGIME_TRACKING_PURPOSE_SCOPES = exports.GDPR_PURPOSES = exports.UNKNOWN_DEFAULT_EXPERIENCE = exports.RegimePurposeScopesConfig = void 0;
// external

@@ -36,3 +36,3 @@ const t = __importStar(require("io-ts"));

exports.UNKNOWN_DEFAULT_EXPERIENCE = 'Unknown';
const GDPR_PURPOSES = [
exports.GDPR_PURPOSES = [
['GDPR', 'LGPD', 'nFADP'],

@@ -42,3 +42,3 @@ ['Advertising', 'Analytics', 'Functional', 'SaleOfInfo'],

exports.DEFAULT_REGIME_TRACKING_PURPOSE_SCOPES = [
GDPR_PURPOSES,
exports.GDPR_PURPOSES,
[['CPRA', 'CDPA', 'CPA', 'NEVADA_SB220'], ['SaleOfInfo']],

@@ -54,3 +54,3 @@ [

exports.DEFAULT_REGIME_PURPOSE_OPT_OUTS = [
GDPR_PURPOSES,
exports.GDPR_PURPOSES,
];

@@ -66,4 +66,4 @@ /**

});
const DEFAULT_EXPERIENCE_PURPOSE_SCOPES = Object.fromEntries(exports.DEFAULT_REGIME_TRACKING_PURPOSE_SCOPES.map(([regimes, purposes]) => regimes.map((regime) => [regime, purposes])).flat());
const DEFAULT_EXPERIENCE_PURPOSE_OPT_OUTS = Object.fromEntries(exports.DEFAULT_REGIME_PURPOSE_OPT_OUTS.map(([regimes, purposes]) => regimes.map((regime) => [regime, purposes])).flat());
exports.DEFAULT_EXPERIENCE_PURPOSE_SCOPES = Object.fromEntries(exports.DEFAULT_REGIME_TRACKING_PURPOSE_SCOPES.map(([regimes, purposes]) => regimes.map((regime) => [regime, purposes])).flat());
exports.DEFAULT_EXPERIENCE_PURPOSE_OPT_OUTS = Object.fromEntries(exports.DEFAULT_REGIME_PURPOSE_OPT_OUTS.map(([regimes, purposes]) => regimes.map((regime) => [regime, purposes])).flat());
// default to []

@@ -139,3 +139,3 @@ exports.REGIME_REGIONS = {

// default to 20
const REGIME_DISPLAY_PRIORITY = {
exports.REGIME_DISPLAY_PRIORITY = {
GDPR: 10,

@@ -159,11 +159,11 @@ Unknown: 100,

operator: isUnknown ? exports.RegionsOperator.NotIn : exports.RegionsOperator.In,
displayPriority: (_b = REGIME_DISPLAY_PRIORITY[regime]) !== null && _b !== void 0 ? _b : 20,
displayPriority: (_b = exports.REGIME_DISPLAY_PRIORITY[regime]) !== null && _b !== void 0 ? _b : 20,
viewState: (_c = ui_1.DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME[regimeEnum]) !== null && _c !== void 0 ? _c : viewState_1.InitialViewState.Hidden,
browserLanguages: (_d = exports.REGIME_LANGUAGES[regime]) !== null && _d !== void 0 ? _d : [],
browserTimeZones: (_e = exports.REGIME_TIMEZONES[regime]) !== null && _e !== void 0 ? _e : [],
experiencePurposeInputs: DEFAULT_EXPERIENCE_PURPOSE_SCOPES[regime].map((purpose) => {
experiencePurposeInputs: exports.DEFAULT_EXPERIENCE_PURPOSE_SCOPES[regime].map((purpose) => {
var _a, _b;
return ({
purpose,
defaultOptOut: (_b = (_a = DEFAULT_EXPERIENCE_PURPOSE_OPT_OUTS[regime]) === null || _a === void 0 ? void 0 : _a.includes(purpose)) !== null && _b !== void 0 ? _b : false,
defaultOptOut: (_b = (_a = exports.DEFAULT_EXPERIENCE_PURPOSE_OPT_OUTS[regime]) === null || _a === void 0 ? void 0 : _a.includes(purpose)) !== null && _b !== void 0 ? _b : false,
});

@@ -170,0 +170,0 @@ }),

@@ -5,3 +5,3 @@ {

"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
"version": "8.29.0",
"version": "8.29.1",
"homepage": "https://github.com/transcend-io/airgap.js-types",

@@ -8,0 +8,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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