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

vkontakte-api

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vkontakte-api - npm Package Compare versions

Comparing version 1.16.0 to 1.16.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [1.16.1](https://github.com/wolframdeus/vk-api/compare/v1.16.0...v1.16.1) (2020-12-06)
### Bug Fixes
* **specials.addstickers:** format userIds and stickerIds ([46a2646](https://github.com/wolframdeus/vk-api/commit/46a26462359c8a97e23ba80ee69bd1124009c5b1))
## [1.16.0](https://github.com/wolframdeus/vk-api/compare/v1.15.0...v1.16.0) (2020-12-06)

@@ -7,0 +14,0 @@

28

dist/repositories/SpecialsRepository/SpecialsRepository-[source].js

@@ -15,5 +15,28 @@ "use strict";

})();
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecialsRepository = void 0;
var Repository_1 = require("../Repository");
var utils_1 = require("../../utils");
var SpecialsRepository = /** @class */ (function (_super) {

@@ -26,3 +49,6 @@ __extends(SpecialsRepository, _super);

*/
_this.addStickers = _this.r('addStickers');
_this.addStickers = _this.r('addStickers', function (_a) {
var userIds = _a.userIds, stickerIds = _a.stickerIds, rest = __rest(_a, ["userIds", "stickerIds"]);
return (__assign(__assign({}, rest), { userIds: utils_1.formatOptionalArray(userIds), stickerIds: utils_1.formatOptionalArray(stickerIds) }));
});
/**

@@ -29,0 +55,0 @@ * @type {(params: (IGetStickersParams & RequestOptionalParams)) => Promise<Pager<{stickerId: number, isPurchased: boolean}>>}

2

dist/repositories/SpecialsRepository/SpecialsRepository.js

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

"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.SpecialsRepository=void 0;var Repository_1=require("../Repository"),SpecialsRepository=function(t){function e(e){var r=t.call(this,"specials",e)||this;return r.addStickers=r.r("addStickers"),r.getStickers=r.r("getStickers"),r}return __extends(e,t),e}(Repository_1.Repository);exports.SpecialsRepository=SpecialsRepository;
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(r,e)};return function(r,e){function s(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,s=arguments.length;e<s;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(e[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(s=Object.getOwnPropertySymbols(t);o<s.length;o++)r.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(e[s[o]]=t[s[o]])}return e};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SpecialsRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),SpecialsRepository=function(t){function r(r){var e=t.call(this,"specials",r)||this;return e.addStickers=e.r("addStickers",function(t){var r=t.userIds,e=t.stickerIds,s=__rest(t,["userIds","stickerIds"]);return __assign(__assign({},s),{userIds:utils_1.formatOptionalArray(r),stickerIds:utils_1.formatOptionalArray(e)})}),e.getStickers=e.r("getStickers"),e}return __extends(r,t),r}(Repository_1.Repository);exports.SpecialsRepository=SpecialsRepository;
{
"name": "vkontakte-api",
"version": "1.16.0",
"version": "1.16.1",
"description": "TypeScript library to make requests performing to VK API simple",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/wolframdeus/vk-api",

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