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

@polygon.io/models

Package Overview
Dependencies
Maintainers
8
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polygon.io/models - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

2

dist/resources/api/index.js

@@ -1,1 +0,1 @@

"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator")),_slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")),_defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty")),_asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){(0,_defineProperty2["default"])(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}var _default=function(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=/*#__PURE__*/function(){var c=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function g(c,d,e,f){var h,i,j;return _regenerator["default"].wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,fetch("".concat(a).concat(c),_objectSpread(_objectSpread(_objectSpread({},b),d),{},{method:e}));case 2:if(h=g.sent,h.ok){g.next=9;break}return g.next=6,null===h||void 0===h?void 0:h.json();case 6:throw i=g.sent,j=i.error||i.message||"An error occurred.",new Error(j);case 9:if("blob"!==f){g.next=11;break}return g.abrupt("return",h.blob());case 11:if("arraybuffer"!==f){g.next=13;break}return g.abrupt("return",h.arrayBuffer());case 13:return g.abrupt("return",h.json());case 14:case"end":return g.stop();}},g)}));return function(){return c.apply(this,arguments)}}();return{base:c,get:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function d(a,b){return _regenerator["default"].wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",c(a,b,"GET"));case 1:case"end":return d.stop();}},d)}));return function get(){return a.apply(this,arguments)}}(),post:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function b(a){var d,e,f,g=arguments;return _regenerator["default"].wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=1<g.length&&void 0!==g[1]?g[1]:{},e=2<g.length?g[2]:void 0,f=3<g.length?g[3]:void 0,b.abrupt("return",c(a,_objectSpread(_objectSpread({},e),{},{body:JSON.stringify(d)}),"POST",f));case 4:case"end":return b.stop();}},b)}));return function post(){return a.apply(this,arguments)}}(),put:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function b(a){var d,e,f=arguments;return _regenerator["default"].wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=1<f.length&&void 0!==f[1]?f[1]:{},e=2<f.length?f[2]:void 0,b.abrupt("return",c(a,_objectSpread(_objectSpread({},e),{},{body:JSON.stringify(d)}),"PUT"));case 3:case"end":return b.stop();}},b)}));return function put(){return a.apply(this,arguments)}}(),patch:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function b(a){var d,e,f=arguments;return _regenerator["default"].wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=1<f.length&&void 0!==f[1]?f[1]:{},e=2<f.length?f[2]:void 0,b.abrupt("return",c(a,_objectSpread(_objectSpread({},e),{},{body:JSON.stringify(d)}),"PATCH"));case 3:case"end":return b.stop();}},b)}));return function patch(){return a.apply(this,arguments)}}(),del:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function d(a,b){return _regenerator["default"].wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",c(a,b,"DELETE"));case 1:case"end":return d.stop();}},d)}));return function del(){return a.apply(this,arguments)}}(),withParams:function withParams(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=1<arguments.length?arguments[1]:void 0,c=a.queryKey,d=void 0===c?[]:c,e=(0,_slicedToArray2["default"])(d,2),f=e[1],g=void 0===f?{}:f;return b(g)}}};exports["default"]=_default;
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator")),_slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")),_defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty")),_asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){(0,_defineProperty2["default"])(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}var _default=function(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=/*#__PURE__*/function(){var c=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function g(c,d,e,f){var h,i,j;return _regenerator["default"].wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,fetch("".concat(a).concat(c),_objectSpread(_objectSpread(_objectSpread({},b),d),{},{method:e}));case 2:if(h=g.sent,h.ok){g.next=9;break}return g.next=6,null===h||void 0===h?void 0:h.json();case 6:throw i=g.sent,j=i.error||i.message||"An error occurred.",new Error(j);case 9:if("blob"!==f){g.next=11;break}return g.abrupt("return",h.blob());case 11:if("arraybuffer"!==f){g.next=13;break}return g.abrupt("return",h.arrayBuffer());case 13:return g.abrupt("return",h.json());case 14:case"end":return g.stop();}},g)}));return function(){return c.apply(this,arguments)}}();return{base:c,get:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function d(a,b){return _regenerator["default"].wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",c(a,b,"GET"));case 1:case"end":return d.stop();}},d)}));return function get(){return a.apply(this,arguments)}}(),head:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function d(a,b){return _regenerator["default"].wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",c(a,b,"HEAD"));case 1:case"end":return d.stop();}},d)}));return function head(){return a.apply(this,arguments)}}(),post:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function b(a){var d,e,f,g=arguments;return _regenerator["default"].wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=1<g.length&&void 0!==g[1]?g[1]:{},e=2<g.length?g[2]:void 0,f=3<g.length?g[3]:void 0,b.abrupt("return",c(a,_objectSpread(_objectSpread({},e),{},{body:JSON.stringify(d)}),"POST",f));case 4:case"end":return b.stop();}},b)}));return function post(){return a.apply(this,arguments)}}(),put:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function b(a){var d,e,f=arguments;return _regenerator["default"].wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=1<f.length&&void 0!==f[1]?f[1]:{},e=2<f.length?f[2]:void 0,b.abrupt("return",c(a,_objectSpread(_objectSpread({},e),{},{body:JSON.stringify(d)}),"PUT"));case 3:case"end":return b.stop();}},b)}));return function put(){return a.apply(this,arguments)}}(),patch:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function b(a){var d,e,f=arguments;return _regenerator["default"].wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=1<f.length&&void 0!==f[1]?f[1]:{},e=2<f.length?f[2]:void 0,b.abrupt("return",c(a,_objectSpread(_objectSpread({},e),{},{body:JSON.stringify(d)}),"PATCH"));case 3:case"end":return b.stop();}},b)}));return function patch(){return a.apply(this,arguments)}}(),del:function(){var a=(0,_asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function d(a,b){return _regenerator["default"].wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",c(a,b,"DELETE"));case 1:case"end":return d.stop();}},d)}));return function del(){return a.apply(this,arguments)}}(),withParams:function withParams(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=1<arguments.length?arguments[1]:void 0,c=a.queryKey,d=void 0===c?[]:c,e=(0,_slicedToArray2["default"])(d,2),f=e[1],g=void 0===f?{}:f;return b(g)}}};exports["default"]=_default;
{
"name": "@polygon.io/models",
"version": "1.0.2",
"version": "1.1.0",
"description": "A set function and providers for interacting with Polygon.io's financial market data.",

@@ -36,3 +36,3 @@ "files": [

},
"gitHead": "24c23280d79b4698c5effa044b481b92992ea5fc"
"gitHead": "93581c7c6f503432cae6b5e876f552de81ab2f97"
}
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