Comparing version 1.3.0 to 1.6.5-beta
{ | ||
"name": "vkstatic", | ||
"version": "1.3.0", | ||
"description": "", | ||
"main": "vkstaticnew.js", | ||
"version": "1.6.5-beta", | ||
"description": "Module for using VK API", | ||
"main": "vkstatic.js", | ||
"scripts": { | ||
@@ -11,3 +11,3 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"author": "", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"dependencies": { | ||
@@ -14,0 +14,0 @@ "cheerio": "^1.0.0-rc.12", |
@@ -25,3 +25,3 @@ <p align='center'> | ||
- ## Usage to methods FormData | ||
- ## 💡 Usage to methods FormData | ||
@@ -31,3 +31,3 @@ ```javascript | ||
const FormData = new FormData({ | ||
const FormData = new FormData({ | ||
token: process.env.TOKEN | ||
@@ -46,3 +46,3 @@ }) | ||
method () | ||
method () // {...Object} | ||
``` | ||
@@ -70,3 +70,3 @@ | ||
# Use default params | ||
# 📂 Use default params | ||
```javascript | ||
@@ -88,3 +88,3 @@ import { Hame, FormData } from 'vkstatic'; | ||
## Usage to method | ||
## 🗒 Usage to method | ||
```javascript | ||
@@ -108,3 +108,3 @@ import { Method, FormData } from 'vkstatic'; | ||
## Usage to method, #2 | ||
## 🗂 Usage to method, #2 | ||
```javascript | ||
@@ -125,3 +125,3 @@ import { FormData } from "vkstatic"; | ||
## Send message in chat | ||
## 📁 Send message in chat | ||
```javascript | ||
@@ -157,3 +157,3 @@ import { Method, FormData, getRandomId } from 'vkstatic'; | ||
``` | ||
## Checking token | ||
## 💡 Checking token | ||
```javascript | ||
@@ -171,3 +171,3 @@ import { Method, FormData } from 'vkstatic'; | ||
## API Limite | ||
## 💡 API Limite | ||
```javascript | ||
@@ -208,3 +208,3 @@ const { FormData, Method, API, APILimite } = require('vkstatic'); | ||
## Invalid params | ||
## 🐰 Invalid params | ||
```javascript | ||
@@ -218,7 +218,9 @@ import { paramsInvalide } from 'vkstatic'; | ||
## Getters | ||
## 💡 Getters | ||
```javascript | ||
const { Update, FormData } = require("vkstatic"); | ||
const FormData = new FormData({ token: "" }) | ||
const FormData = new FormData({ | ||
token: "" | ||
}) | ||
@@ -230,7 +232,9 @@ const body = new Update(); | ||
# SearchMethod | ||
## 🗂 Cute url of token | ||
```javascript | ||
const {search_method} = require (`vkstatic`) | ||
const { getToken } = require("vkstatic") | ||
const search = search_method (`donut`) // true | ||
const url = "URL" | ||
const giveToken = getToken(url) // token | ||
``` | ||
@@ -237,0 +241,0 @@ |
@@ -7,2 +7,9 @@ 'use strict'; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
function isObject (yung) { return typeof yung == 'object' } | ||
const fetchPromise = (urlinit, init) => (Promise.resolve(fetch).then(fn => fn(urlinit, init))); | ||
const color = require('./color.js') | ||
const groupMethods = require('./groupMethod.js'); | ||
const getRandomId = require ('./getRandomId.js'); | ||
@@ -18,2 +25,8 @@ | ||
var This_Options = require('./options.js') | ||
var FilterParams = require ('./filterparams.js'); | ||
const getToken = require('./getToken.js'); | ||
class FormData { | ||
@@ -23,8 +36,5 @@ | ||
this.params = params.options | ||
!== | ||
undefined ? params.options | ||
: params | ||
this.params = FilterParams (params) | ||
options = this.params | ||
This_Options = this.params | ||
@@ -304,4 +314,34 @@ this.hash = options | ||
const search = (params) => method.find (x => x == params); | ||
const freeze = (x) => [x] | ||
exports.MethodValue = MethodValue; | ||
module.exports = { | ||
MethodValue: MethodValue, | ||
Hame: Hame, | ||
FormData: FormData, | ||
default: FormData, | ||
Method: Method, | ||
getRandomId: getRandomId, | ||
API: API, | ||
use: use, | ||
APILimite: APILimite, | ||
paramsInvalide: paramsInvalide, | ||
Update: Update, | ||
Events: Events, | ||
execute: execute, | ||
AttachmentRegExp: /[1-3]+/, | ||
Formate: FormData, | ||
Search: { | ||
default: FormData, | ||
api: { | ||
search: search | ||
} | ||
}, | ||
Delete: { | ||
_token: freeze | ||
}, | ||
search_method: (init) => groupMethods.find (search => search === init) == init ? true : false, | ||
getToken: getToken | ||
} | ||
/*exports.MethodValue = MethodValue; | ||
exports.Hame = Hame; | ||
@@ -323,2 +363,5 @@ exports.FormData = FormData; | ||
exports.Search = ({ default: FormData, api: { search: search } }) | ||
exports.Delete = ({}) | ||
exports.Delete = ({ _token: freeze }) | ||
exports.Color = color | ||
exports.search_method = (init) => groupMethods.find (search => search === init) == init ? true : false | ||
exports.getToken = getToken*/ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
16
241
1
6
26058
317
3