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

@pnp/odata

Package Overview
Dependencies
Maintainers
11
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/odata - npm Package Compare versions

Comparing version 2.0.9 to 2.0.10-beta

add-prop.d.ts.map

29

invokable-extensions.js
import { __read, __spread } from "tslib";
import { isFunc, isArray } from "@pnp/common";
import { isFunc, isArray, getGUID } from "@pnp/common";
var _enableExtensions = false;
var globaExtensions = [];
var ObjExtensionsSym = Symbol("__extensions");
var factoryExtensions = new Map();
var ObjExtensionsSym = Symbol.for("43f7a601-c2fe-47be-b0a6-2ccc942d2d95");
/**

@@ -37,6 +38,15 @@ * Creates global extensions across all invokable objects

_enableExtensions = true;
if (factory.__proto__[ObjExtensionsSym] === undefined) {
factory.__proto__[ObjExtensionsSym] = [];
// factoryExtensions
var proto = Reflect.getPrototypeOf(factory);
if (!Reflect.has(proto, ObjExtensionsSym)) {
var factoryExtensionId = getGUID();
Reflect.defineProperty(proto, ObjExtensionsSym, {
value: factoryExtensionId,
});
}
extendCol(factory.__proto__[ObjExtensionsSym], extensions);
var key = proto[ObjExtensionsSym];
if (!factoryExtensions.has(key)) {
factoryExtensions.set(key, []);
}
extendCol(factoryExtensions.get(key), extensions);
};

@@ -79,4 +89,9 @@ function extendCol(a, e) {

var o = factory(args);
if (factory.__proto__[ObjExtensionsSym]) {
o = extendObj(o, factory.__proto__[ObjExtensionsSym]);
var proto = Reflect.getPrototypeOf(factory);
var uu = Reflect.getOwnPropertyDescriptor(proto, ObjExtensionsSym);
var ii = Reflect.ownKeys(proto);
var kk = proto[ObjExtensionsSym];
if (Reflect.has(proto, ObjExtensionsSym)) {
var extensions = factoryExtensions.get(Reflect.get(proto, ObjExtensionsSym));
o = extendObj(o, extensions);
}

@@ -83,0 +98,0 @@ return o;

{
"name": "@pnp/odata",
"version": "2.0.9",
"version": "2.0.10-beta",
"description": "pnp - provides shared odata functionality and base classes",

@@ -9,4 +9,4 @@ "main": "./index.js",

"tslib": "2.0.0",
"@pnp/logging": "2.0.9",
"@pnp/common": "2.0.9"
"@pnp/logging": "2.0.10-beta",
"@pnp/common": "2.0.10-beta"
},

@@ -13,0 +13,0 @@ "author": {

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