@pnp/odata
Advanced tools
Comparing version 2.0.9 to 2.0.10-beta
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": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
103855
51
1526
1
+ Added@pnp/common@2.0.10-beta(transitive)
+ Added@pnp/logging@2.0.10-beta(transitive)
- Removed@pnp/common@2.0.9(transitive)
- Removed@pnp/logging@2.0.9(transitive)
Updated@pnp/common@2.0.10-beta
Updated@pnp/logging@2.0.10-beta