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

@vkid/sdk

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkid/sdk - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist-sdk/cjs/lib/resize-observer-polyfill/dist/ResizeObserver.es.js

2

.wiki/classes/auth.Auth.md

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / Auth
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / Auth

@@ -3,0 +3,0 @@ # Class: Auth

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [core/config](../modules/core_config.md) / Config
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [core/config](../modules/core_config.md) / Config

@@ -3,0 +3,0 @@ # Class: Config

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [widgets/oneTap](../modules/widgets_oneTap.md) / OneTap
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [widgets/oneTap](../modules/widgets_oneTap.md) / OneTap

@@ -3,0 +3,0 @@ # Class: OneTap

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthErrorCode
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthErrorCode

@@ -3,0 +3,0 @@ # Enumeration: AuthErrorCode

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [widgets/oneTap](../modules/widgets_oneTap.md) / OneTapPublicEvents
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [widgets/oneTap](../modules/widgets_oneTap.md) / OneTapPublicEvents

@@ -3,0 +3,0 @@ # Enumeration: OneTapPublicEvents

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthError
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthError

@@ -3,0 +3,0 @@ # Interface: AuthError

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthParams
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthParams

@@ -3,0 +3,0 @@ # Interface: AuthParams

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthResponse
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [auth](../modules/auth.md) / AuthResponse

@@ -3,0 +3,0 @@ # Interface: AuthResponse

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [core/config](../modules/core_config.md) / ConfigData
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [core/config](../modules/core_config.md) / ConfigData

@@ -3,0 +3,0 @@ # Interface: ConfigData

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / [widgets/oneTap](../modules/widgets_oneTap.md) / OneTapParams
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / [widgets/oneTap](../modules/widgets_oneTap.md) / OneTapParams

@@ -3,0 +3,0 @@ # Interface: OneTapParams

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

[@vkid/sdk - v0.1.0](README.md) / Modules
[@vkid/sdk - v0.1.1](README.md) / Modules
# @vkid/sdk - v0.1.0
# @vkid/sdk - v0.1.1

@@ -5,0 +5,0 @@ ## Table of contents

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / auth
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / auth

@@ -3,0 +3,0 @@ # Module: auth

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / core/config
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / core/config

@@ -3,0 +3,0 @@ # Module: core/config

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

[@vkid/sdk - v0.1.0](../README.md) / [Modules](../modules.md) / widgets/oneTap
[@vkid/sdk - v0.1.1](../README.md) / [Modules](../modules.md) / widgets/oneTap

@@ -3,0 +3,0 @@ # Module: widgets/oneTap

'use strict';
// @ts-ignore-next-line пробрасываем версию из package.json в rollup.config
var VERSION = "0.0.3";
var VERSION = "0.1.1";
// @ts-ignore-next-line пробрасываем тип сборки из rollup.config

@@ -6,0 +6,0 @@ var DOMAIN = "vk.com";

'use strict';
function _type_of(obj) {
"@swc/helpers - typeof";
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
}
var isRequired = function(param) {

@@ -15,3 +19,25 @@ var result = true;

};
var isNumber = function(param) {
return {
result: [
"number",
"string"
].includes(typeof param === "undefined" ? "undefined" : _type_of(param)) && !isNaN(parseInt(param)),
makeError: function(valueName) {
return "".concat(valueName, " should be number");
}
};
};
var isValidHeight = function(param) {
var result = param !== undefined && param.height !== undefined && isNumber(param.height) && param.height < 57 && param.height > 31 || param === undefined || param.height === undefined;
return {
result: result,
makeError: function() {
return "The height should correspond to the range from 32 to 56";
}
};
};
exports.isNumber = isNumber;
exports.isRequired = isRequired;
exports.isValidHeight = isValidHeight;

@@ -6,4 +6,6 @@ 'use strict';

var widget = require('./core/widget/widget.js');
require('./core/widget/events.js');
var events = require('./core/widget/events.js');
var types = require('./types.js');
var oneTap = require('./widgets/oneTap/oneTap.js');
var events$1 = require('./widgets/oneTap/events.js');

@@ -16,2 +18,6 @@ var globalConfig = new config.Config();

Object.defineProperty(exports, 'WidgetEvents', {
enumerable: true,
get: function () { return events.WidgetEvents; }
});
Object.defineProperty(exports, 'Languages', {

@@ -21,3 +27,8 @@ enumerable: true,

});
exports.OneTap = oneTap.OneTap;
Object.defineProperty(exports, 'OneTapPublicEvents', {
enumerable: true,
get: function () { return events$1.OneTapPublicEvents; }
});
exports.Auth = globalAuth;
exports.Config = globalConfig;
// @ts-ignore-next-line пробрасываем версию из package.json в rollup.config
const VERSION = "0.0.3";
const VERSION = "0.1.1";
// @ts-ignore-next-line пробрасываем тип сборки из rollup.config

@@ -4,0 +4,0 @@ const DOMAIN = 'vk.com';

@@ -11,3 +11,19 @@ const isRequired = (param)=>{

};
const isNumber = (param)=>{
return {
result: [
'number',
'string'
].includes(typeof param) && !isNaN(parseInt(param)),
makeError: (valueName)=>`${valueName} should be number`
};
};
const isValidHeight = (param)=>{
let result = param !== undefined && param.height !== undefined && isNumber(param.height) && param.height < 57 && param.height > 31 || param === undefined || param.height === undefined;
return {
result,
makeError: ()=>'The height should correspond to the range from 32 to 56'
};
};
export { isRequired };
export { isNumber, isRequired, isValidHeight };
import { Auth } from './auth/auth.js';
import { Config } from './core/config/config.js';
import { Widget } from './core/widget/widget.js';
import './core/widget/events.js';
export { WidgetEvents } from './core/widget/events.js';
export { Languages } from './types.js';
export { OneTap } from './widgets/oneTap/oneTap.js';
export { OneTapPublicEvents } from './widgets/oneTap/events.js';

@@ -7,0 +9,0 @@ const globalConfig = new Config();

import { Auth, AuthParams, AuthError, AuthResponse, AuthErrorCode } from './auth';
import { Config, ConfigData } from './core/config';
import { Languages } from './types';
export { Languages };
export { WidgetEvents } from './core/widget/events';
export { Languages } from './types';
export { OneTap, OneTapPublicEvents } from './widgets/oneTap';
export type { OneTapParams } from './widgets/oneTap';
declare const globalConfig: Config;

@@ -6,0 +8,0 @@ export { globalConfig as Config };

{
"name": "@vkid/sdk",
"version": "0.1.0",
"version": "0.1.1",
"description": "VK ID Web SDK",

@@ -27,3 +27,4 @@ "main": "dist-sdk/cjs/index.js",

"release:alpha": "yarn release --tag alpha",
"release:beta": "yarn release --tag beta"
"release:beta": "yarn release --tag beta",
"prepublishOnly": "yarn demo:prod && yarn sdk:prod && yarn docs:prod"
},

@@ -30,0 +31,0 @@ "files": [

Sorry, the diff of this file is too big to display

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