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

@lwc/shared

Package Overview
Dependencies
Maintainers
12
Versions
594
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/shared - npm Package Compare versions

Comparing version 1.1.15 to 1.1.16-alpha1

24

dist/index.cjs.js

@@ -34,2 +34,3 @@ /**

var assert = /*#__PURE__*/Object.freeze({
__proto__: null,
invariant: invariant,

@@ -110,3 +111,3 @@ isTrue: isTrue,

*/
/**
/*
* In IE11, symbols are expensive.

@@ -119,7 +120,6 @@ * Due to the nature of the symbol polyfill. This method abstract the

function createFieldName(key, namespace) {
// @ts-ignore: using a string as a symbol for perf reasons
return hasNativeSymbolsSupport ? Symbol(key) : `$$lwc-${namespace}-${key}$$`;
}
const hiddenFieldsMap = new WeakMap();
function setHiddenField(o, fieldName, value) {
function setHiddenField(o, field, value) {
let valuesByField = hiddenFieldsMap.get(o);

@@ -130,10 +130,8 @@ if (isUndefined(valuesByField)) {

}
// @ts-ignore https://github.com/microsoft/TypeScript/issues/1863
valuesByField[fieldName] = value;
valuesByField[field] = value;
}
function getHiddenField(o, fieldName) {
function getHiddenField(o, field) {
const valuesByField = hiddenFieldsMap.get(o);
if (!isUndefined(valuesByField)) {
// @ts-ignore https://github.com/microsoft/TypeScript/issues/1863
return valuesByField[fieldName];
return valuesByField[field];
}

@@ -143,2 +141,3 @@ }

var fields = /*#__PURE__*/Object.freeze({
__proto__: null,
createFieldName: createFieldName,

@@ -149,9 +148,2 @@ setHiddenField: setHiddenField,

/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
exports.ArrayConstructor = ArrayConstructor;

@@ -200,2 +192,2 @@ exports.ArrayFilter = ArrayFilter;

exports.toString = toString;
/** version: 1.1.14 */
/** version: 1.1.15 */

@@ -30,2 +30,3 @@ /**

var assert = /*#__PURE__*/Object.freeze({
__proto__: null,
invariant: invariant,

@@ -106,3 +107,3 @@ isTrue: isTrue,

*/
/**
/*
* In IE11, symbols are expensive.

@@ -115,7 +116,6 @@ * Due to the nature of the symbol polyfill. This method abstract the

function createFieldName(key, namespace) {
// @ts-ignore: using a string as a symbol for perf reasons
return hasNativeSymbolsSupport ? Symbol(key) : `$$lwc-${namespace}-${key}$$`;
}
const hiddenFieldsMap = new WeakMap();
function setHiddenField(o, fieldName, value) {
function setHiddenField(o, field, value) {
let valuesByField = hiddenFieldsMap.get(o);

@@ -126,10 +126,8 @@ if (isUndefined(valuesByField)) {

}
// @ts-ignore https://github.com/microsoft/TypeScript/issues/1863
valuesByField[fieldName] = value;
valuesByField[field] = value;
}
function getHiddenField(o, fieldName) {
function getHiddenField(o, field) {
const valuesByField = hiddenFieldsMap.get(o);
if (!isUndefined(valuesByField)) {
// @ts-ignore https://github.com/microsoft/TypeScript/issues/1863
return valuesByField[fieldName];
return valuesByField[field];
}

@@ -139,2 +137,3 @@ }

var fields = /*#__PURE__*/Object.freeze({
__proto__: null,
createFieldName: createFieldName,

@@ -145,10 +144,3 @@ setHiddenField: setHiddenField,

/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
export { ArrayConstructor, ArrayFilter, ArrayFind, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPush, ArrayReduce, ArrayReverse, ArraySlice, ArraySplice, ArrayUnshift, StringCharCodeAt, StringReplace, StringSlice, StringToLowerCase, assert, assign, create, defineProperties, defineProperty, emptyString, fields, forEach, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPropertyDescriptor, getPrototypeOf, hasOwnProperty, isArray, isFalse$1 as isFalse, isFunction, isNull, isNumber, isObject, isString, isTrue$1 as isTrue, isUndefined, keys, seal, setPrototypeOf, toString };
/** version: 1.1.14 */
/** version: 1.1.15 */
{
"name": "@lwc/shared",
"version": "1.1.15",
"version": "1.1.16-alpha1",
"description": "Utilities and methods that are shared across packages",

@@ -20,3 +20,3 @@ "main": "dist/index.cjs.js",

},
"gitHead": "db7d6d146cc4d02cae319f8f4e8a51ed54a7e10a"
"gitHead": "07f1574fa5fd6dbe84720b000d3573fb0dc3725b"
}

@@ -1,3 +0,5 @@

export declare function createFieldName(key: string, namespace: string): symbol;
export declare function setHiddenField(o: any, fieldName: symbol, value: any): void;
export declare function getHiddenField(o: any, fieldName: symbol): any;
declare type HiddenField = any;
export declare function createFieldName(key: string, namespace: string): HiddenField;
export declare function setHiddenField(o: any, field: HiddenField, value: any): void;
export declare function getHiddenField(o: any, field: HiddenField): unknown;
export {};
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