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

@pnp/odata

Package Overview
Dependencies
Maintainers
13
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.3.0 to 2.3.1-beta0

25

invokable-binder.js

@@ -1,2 +0,21 @@

import { __read, __spreadArray } from "tslib";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
import { DefaultRuntime } from "@pnp/common";

@@ -16,4 +35,4 @@ import { extensionOrDefault, applyFactoryExtensions } from "./invokable-extensions.js";

}
return invoker.call.apply(invoker, __spreadArray([r], __read(ags)));
}, new (constructor.bind.apply(constructor, __spreadArray([void 0], __read(as))))());
return invoker.call.apply(invoker, __spread([r], ags));
}, new (constructor.bind.apply(constructor, __spread([void 0], as)))());
Reflect.setPrototypeOf(r, constructor.prototype);

@@ -20,0 +39,0 @@ return r;

33

invokable-extensions.js

@@ -1,2 +0,21 @@

import { __read, __spreadArray } from "tslib";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
import { isFunc, getGUID } from "@pnp/common";

@@ -54,3 +73,3 @@ var _enableExtensions = false;

if (Array.isArray(e)) {
a.push.apply(a, __spreadArray([], __read(e)));
a.push.apply(a, __spread(e));
}

@@ -104,6 +123,6 @@ else {

if (Reflect.has(target, ObjExtensionsSym)) {
extensions.push.apply(extensions, __spreadArray([], __read(Reflect.get(target, ObjExtensionsSym))));
extensions.push.apply(extensions, __spread(Reflect.get(target, ObjExtensionsSym)));
}
// second we need to process any global extensions
extensions.push.apply(extensions, __spreadArray([], __read(globalExtensions)));
extensions.push.apply(extensions, __spread(globalExtensions));
for (var i = 0; i < extensions.length; i++) {

@@ -114,3 +133,3 @@ var extension = extensions[i];

// this extension is a function which we call
result = extension.apply(void 0, __spreadArray([op, target], __read(rest)));
result = extension.apply(void 0, __spread([op, target], rest));
}

@@ -123,3 +142,3 @@ else if (op === "get" && Reflect.has(extension, rest[0])) {

// this extension is a ProxyHandler that has a handler defined for {op} so we pass control and see if we get a result
result = Reflect.get(extension, op).apply(void 0, __spreadArray([target], __read(rest)));
result = Reflect.get(extension, op).apply(void 0, __spread([target], rest));
}

@@ -134,4 +153,4 @@ if (typeof result !== "undefined") {

}
return or.apply(void 0, __spreadArray([target], __read(rest)));
return or.apply(void 0, __spread([target], rest));
}
//# sourceMappingURL=invokable-extensions.js.map
{
"name": "@pnp/odata",
"version": "2.3.0",
"version": "2.3.1-beta0",
"description": "pnp - provides shared odata functionality and base classes",

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

"tslib": "2.1.0",
"@pnp/logging": "2.3.0",
"@pnp/common": "2.3.0"
"@pnp/logging": "2.3.1-beta0",
"@pnp/common": "2.3.1-beta0"
},

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

@@ -1,2 +0,50 @@

import { __awaiter, __extends, __generator } from "tslib";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
import { isFunc, hOP } from "@pnp/common";

@@ -3,0 +51,0 @@ var ODataParser = /** @class */ (function () {

@@ -1,2 +0,7 @@

import { __decorate } from "tslib";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { assign, isFunc, hOP } from "@pnp/common";

@@ -3,0 +8,0 @@ import { Logger } from "@pnp/logging";

@@ -1,2 +0,21 @@

import { __read, __spreadArray } from "tslib";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
import { combine, mergeOptions, objectDefinedNotNull, assign, Runtime, DefaultRuntime, dateAdd, stringIsNullOrEmpty, } from "@pnp/common";

@@ -15,3 +34,3 @@ import { ODataParser } from "./parsers.js";

case "query":
return JSON.stringify(__spreadArray([], __read(value)));
return JSON.stringify(__spread(value));
case "batch":

@@ -18,0 +37,0 @@ case "batchDependency":

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

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