删除node
This commit is contained in:
parent
e4e0d5dae4
commit
6bf4f315e6
@ -1,13 +0,0 @@
|
||||
|
||||
const g = typeof global !== 'undefined' ? global : self;
|
||||
g.appXAppJson = {
|
||||
"app": {
|
||||
"$homepage": "pages/index/index",
|
||||
"plugins": {
|
||||
"myPlugin": {
|
||||
"version": "*",
|
||||
"provider": "3000000091373235"
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
@ -1,4 +0,0 @@
|
||||
if(!self.Map || !self.Set || !self.Symbol) {
|
||||
importScripts('https://gw.alipayobjects.com/as/g/appx_release/deps/1.0.3/es6-set-map-symbol.js');
|
||||
}
|
||||
|
@ -1,29 +0,0 @@
|
||||
require('@alipay/appx-compiler/lib/sjsEnvInit');
|
||||
require('./config$');
|
||||
require('../../app');
|
||||
require('../../node_modules/mini-antui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myEmpty/myEmpty?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/pursueItem/pursueItem?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/list-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/popup/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myPay/myPay?hash=95d4e6a1d744881766987015bf4637f54936e766');
|
||||
require('../../node_modules/mini-antui/es/search-bar/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/modal/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/tabs/index?hash=b998354db5b64281090d8969355b2b3db41cda49');
|
||||
require('../../node_modules/mini-antui/es/tabs/tab-content/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/index?hash=4c436b8802cde3a53b8da3fd201d0c5d124d1427');
|
||||
require('../../pages/discover/discover?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/binge/binge?hash=6164953b5a1ef04f4f4f6e6561b545255541aa0c');
|
||||
require('../../pages/my/my?hash=75b5b8f1ecfabe3e2ac25d83ad8d5dac4aa47c98');
|
||||
require('../../pages/search/search?hash=aba215d007624a3ae18a69066f7987a8463d4c8c');
|
||||
require('../../pages/history/history?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/transaction/transaction?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b');
|
||||
require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
@ -1,66 +0,0 @@
|
||||
if(!self.__appxInited) {
|
||||
self.__appxInited = 1;
|
||||
require('@alipay/appx-compiler/lib/sjsEnvInit');
|
||||
|
||||
require('./config$');
|
||||
|
||||
|
||||
function getUserAgentInPlatformWeb() {
|
||||
return typeof navigator !== 'undefined' ? navigator.swuserAgent || navigator.userAgent || '' : '';
|
||||
}
|
||||
if(getUserAgentInPlatformWeb() && (getUserAgentInPlatformWeb().indexOf('LyraVM') > 0 || getUserAgentInPlatformWeb().indexOf('AlipayIDE') > 0) ) {
|
||||
var AFAppX = self.AFAppX.getAppContext ? self.AFAppX.getAppContext().AFAppX : self.AFAppX;
|
||||
} else {
|
||||
importScripts('https://appx/af-appx.worker.min.js');
|
||||
var AFAppX = self.AFAppX;
|
||||
}
|
||||
self.getCurrentPages = AFAppX.getCurrentPages;
|
||||
self.getApp = AFAppX.getApp;
|
||||
self.Page = AFAppX.Page;
|
||||
self.App = AFAppX.App;
|
||||
self.my = AFAppX.bridge || AFAppX.abridge;
|
||||
self.abridge = self.my;
|
||||
self.Component = AFAppX.WorkerComponent || function(){};
|
||||
self.$global = AFAppX.$global;
|
||||
self.requirePlugin = AFAppX.requirePlugin;
|
||||
|
||||
|
||||
if(AFAppX.registerApp) {
|
||||
AFAppX.registerApp({
|
||||
appJSON: appXAppJson,
|
||||
});
|
||||
}
|
||||
|
||||
if(AFAppX.compilerConfig){ AFAppX.compilerConfig.component2 = true; }
|
||||
|
||||
function success() {
|
||||
require('../../app');
|
||||
require('../../node_modules/mini-antui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myEmpty/myEmpty?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/pursueItem/pursueItem?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/list/list-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/popup/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../components/myPay/myPay?hash=95d4e6a1d744881766987015bf4637f54936e766');
|
||||
require('../../node_modules/mini-antui/es/search-bar/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/modal/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../node_modules/mini-antui/es/tabs/index?hash=b998354db5b64281090d8969355b2b3db41cda49');
|
||||
require('../../node_modules/mini-antui/es/tabs/tab-content/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43');
|
||||
require('../../pages/index/index?hash=4c436b8802cde3a53b8da3fd201d0c5d124d1427');
|
||||
require('../../pages/discover/discover?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/binge/binge?hash=6164953b5a1ef04f4f4f6e6561b545255541aa0c');
|
||||
require('../../pages/my/my?hash=75b5b8f1ecfabe3e2ac25d83ad8d5dac4aa47c98');
|
||||
require('../../pages/search/search?hash=aba215d007624a3ae18a69066f7987a8463d4c8c');
|
||||
require('../../pages/history/history?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/transaction/transaction?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d');
|
||||
require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b');
|
||||
require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f');
|
||||
}
|
||||
self.bootstrapApp ? self.bootstrapApp({ success }) : success();
|
||||
}
|
22
node_modules/.yarn-integrity
generated
vendored
22
node_modules/.yarn-integrity
generated
vendored
@ -1,22 +0,0 @@
|
||||
{
|
||||
"systemParams": "win32-x64-108",
|
||||
"modulesFolders": [
|
||||
"node_modules"
|
||||
],
|
||||
"flags": [],
|
||||
"linkedModules": [],
|
||||
"topLevelPatterns": [
|
||||
"@tbmp/mp-cloud-sdk@*",
|
||||
"lodash@^4.17.21",
|
||||
"mini-antui@^0.5.2",
|
||||
"underscore@^1.13.6"
|
||||
],
|
||||
"lockfileEntries": {
|
||||
"@tbmp/mp-cloud-sdk@*": "https://registry.yarnpkg.com/@tbmp/mp-cloud-sdk/-/mp-cloud-sdk-1.5.5.tgz#12f1c031d9f2c391381ffbb0b6ef0753c9caf43f",
|
||||
"lodash@^4.17.21": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c",
|
||||
"mini-antui@^0.5.2": "https://registry.npmjs.org/mini-antui/-/mini-antui-0.5.2.tgz",
|
||||
"underscore@^1.13.6": "https://registry.npmmirror.com/underscore/-/underscore-1.13.6.tgz#04786a1f589dc6c09f761fc5f45b89e935136441"
|
||||
},
|
||||
"files": [],
|
||||
"artifacts": {}
|
||||
}
|
1
node_modules/@tbmp/mp-cloud-sdk/index.js
generated
vendored
1
node_modules/@tbmp/mp-cloud-sdk/index.js
generated
vendored
File diff suppressed because one or more lines are too long
19
node_modules/@tbmp/mp-cloud-sdk/package.json
generated
vendored
19
node_modules/@tbmp/mp-cloud-sdk/package.json
generated
vendored
@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "@tbmp/mp-cloud-sdk",
|
||||
"version": "1.5.5",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"types": "./types/platforms/mp/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "cc8f93a3f17901f50500ddee65b957773d2aca82",
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-json": "^6.0.0"
|
||||
}
|
||||
}
|
80
node_modules/@tbmp/mp-cloud-sdk/types/core/db/collection.d.ts
generated
vendored
80
node_modules/@tbmp/mp-cloud-sdk/types/core/db/collection.d.ts
generated
vendored
@ -1,80 +0,0 @@
|
||||
import { Db } from "./db";
|
||||
export interface IFindOptions {
|
||||
/**
|
||||
* 查询的文档数量限制
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* 跳过的文档数量
|
||||
*/
|
||||
skip?: number;
|
||||
/**
|
||||
* 排序规则
|
||||
*/
|
||||
sort?: object;
|
||||
/**
|
||||
* 查询后过滤的字段
|
||||
*/
|
||||
projection?: object;
|
||||
}
|
||||
export declare class CollectionReference {
|
||||
/**
|
||||
* 初始化
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @param db - 数据库的引用
|
||||
* @param coll - 集合名称
|
||||
*/
|
||||
private _db;
|
||||
private _coll;
|
||||
constructor(db: Db, coll: string);
|
||||
/**
|
||||
* 读取集合名字
|
||||
*/
|
||||
readonly name: string;
|
||||
/**
|
||||
* 对集合执行聚合查询
|
||||
* @param pipeline 聚合查询对象
|
||||
*/
|
||||
aggregate(pipeline: object | object[]): Promise<any>;
|
||||
/**
|
||||
* 获取集合中复合条件的记录数量
|
||||
* @param filter 过滤条件
|
||||
*/
|
||||
count(filter: object): Promise<any>;
|
||||
/**
|
||||
* 删除集合中的一批记录
|
||||
* @param filter 过滤条件
|
||||
*/
|
||||
deleteMany(filter: object): Promise<any>;
|
||||
/**
|
||||
* 查找集合中符合条件的所有记录
|
||||
* @param filter 过滤条件
|
||||
* @param options 查询配置项
|
||||
*/
|
||||
find(filter: any, options?: IFindOptions): Promise<any>;
|
||||
/**
|
||||
* 替换一条数据
|
||||
* @param filter 过滤条件
|
||||
* @param data 新数据
|
||||
*/
|
||||
replaceOne(filter: object, data: object): Promise<any>;
|
||||
/**
|
||||
* 在集合中添加一条记录
|
||||
* @param data 带插入的数据
|
||||
*/
|
||||
insertOne(data: object): Promise<any>;
|
||||
/**
|
||||
* 在集合中添加一批记录
|
||||
* @param data 待插入的数据,只能为数组
|
||||
*/
|
||||
insertMany(data: object[]): Promise<any>;
|
||||
/**
|
||||
*
|
||||
* @param filter 过滤条件
|
||||
* @param data 更新规则
|
||||
*
|
||||
*/
|
||||
updateMany(filter: object, data: object): Promise<any>;
|
||||
}
|
18
node_modules/@tbmp/mp-cloud-sdk/types/core/db/db.d.ts
generated
vendored
18
node_modules/@tbmp/mp-cloud-sdk/types/core/db/db.d.ts
generated
vendored
@ -1,18 +0,0 @@
|
||||
import { CollectionReference } from "./collection";
|
||||
import { IAsyncInvokeOptions } from "../../shared/types";
|
||||
import { ICloudService } from "../interface/cloudService";
|
||||
export declare class Db extends ICloudService {
|
||||
/**
|
||||
* 获取集合的引用
|
||||
*
|
||||
* @param collName - 集合名称
|
||||
*/
|
||||
collection(collName: string): CollectionReference;
|
||||
/**
|
||||
* 创建集合
|
||||
*/
|
||||
createCollection(name: string, options: {
|
||||
collName: string;
|
||||
} & IAsyncInvokeOptions): Promise<any>;
|
||||
dbRequest(action?: string, params?: any): Promise<any>;
|
||||
}
|
2
node_modules/@tbmp/mp-cloud-sdk/types/core/db/index.d.ts
generated
vendored
2
node_modules/@tbmp/mp-cloud-sdk/types/core/db/index.d.ts
generated
vendored
@ -1,2 +0,0 @@
|
||||
import { Db } from "./db";
|
||||
export default Db;
|
0
node_modules/@tbmp/mp-cloud-sdk/types/core/db/util.d.ts
generated
vendored
0
node_modules/@tbmp/mp-cloud-sdk/types/core/db/util.d.ts
generated
vendored
13
node_modules/@tbmp/mp-cloud-sdk/types/core/functions/index.d.ts
generated
vendored
13
node_modules/@tbmp/mp-cloud-sdk/types/core/functions/index.d.ts
generated
vendored
@ -1,13 +0,0 @@
|
||||
import { IAsyncInvokeOptions } from '../../shared/types';
|
||||
import { ICloudService } from '../interface/cloudService';
|
||||
export interface ICallFunctionOptions extends IAsyncInvokeOptions {
|
||||
name: string;
|
||||
data: any;
|
||||
}
|
||||
export interface IInvokeMethod {
|
||||
(IAsyncInvokeOptions: any): void;
|
||||
}
|
||||
export default class CloudFunction extends ICloudService {
|
||||
invoke(name: string, data?: object, handler?: string): Promise<any>;
|
||||
private fcRequest;
|
||||
}
|
10
node_modules/@tbmp/mp-cloud-sdk/types/core/interface/cloudService.d.ts
generated
vendored
10
node_modules/@tbmp/mp-cloud-sdk/types/core/interface/cloudService.d.ts
generated
vendored
@ -1,10 +0,0 @@
|
||||
import { Request } from "../../shared/request";
|
||||
export interface ICloudServiceOptions {
|
||||
env?: 'test' | 'online' | 'pre';
|
||||
}
|
||||
export declare abstract class ICloudService {
|
||||
options: ICloudServiceOptions;
|
||||
request: Request;
|
||||
constructor(options: ICloudServiceOptions, request: Request);
|
||||
init?(): void;
|
||||
}
|
14
node_modules/@tbmp/mp-cloud-sdk/types/core/message/client.d.ts
generated
vendored
14
node_modules/@tbmp/mp-cloud-sdk/types/core/message/client.d.ts
generated
vendored
@ -1,14 +0,0 @@
|
||||
import Powermsg from '@ali/lib-powermsg-sdk';
|
||||
import { Env } from '../../shared/types';
|
||||
export default class Client {
|
||||
env: Env;
|
||||
pmg: Powermsg;
|
||||
deviceId: string;
|
||||
initing: boolean;
|
||||
queue: (() => void)[];
|
||||
config: any;
|
||||
constructor(env: Env);
|
||||
init: () => Promise<any>;
|
||||
onMessage: (callback: any) => Promise<() => void>;
|
||||
private createPwgInstance;
|
||||
}
|
8
node_modules/@tbmp/mp-cloud-sdk/types/core/message/index.d.ts
generated
vendored
8
node_modules/@tbmp/mp-cloud-sdk/types/core/message/index.d.ts
generated
vendored
@ -1,8 +0,0 @@
|
||||
import { ICloudService, ICloudServiceOptions } from "../interface/cloudService";
|
||||
import Client from './client';
|
||||
import Server from './server';
|
||||
export default class Message extends ICloudService {
|
||||
server: Server;
|
||||
client: Client;
|
||||
constructor(options: ICloudServiceOptions);
|
||||
}
|
15
node_modules/@tbmp/mp-cloud-sdk/types/core/message/server.d.ts
generated
vendored
15
node_modules/@tbmp/mp-cloud-sdk/types/core/message/server.d.ts
generated
vendored
@ -1,15 +0,0 @@
|
||||
import { Request } from '../../shared/request';
|
||||
import { Env } from "../../../packages/mp-cloud-node-sdk/types/shared/types";
|
||||
interface IPushOptions {
|
||||
subType: number;
|
||||
deviceId?: string;
|
||||
data: object;
|
||||
pushType: string;
|
||||
}
|
||||
export default class Server {
|
||||
env: Env;
|
||||
request: Request;
|
||||
constructor(env: Env, request: Request);
|
||||
push(options: IPushOptions): Promise<any>;
|
||||
}
|
||||
export {};
|
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/application.d.ts
generated
vendored
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/application.d.ts
generated
vendored
@ -1,7 +0,0 @@
|
||||
import {ICloudService} from "../../interface/cloudService";
|
||||
|
||||
export default class Application extends ICloudService {
|
||||
|
||||
httpRequest(options: {path: string, params?: any, body?: any, headers?: any, method?: string, exts?: any}): Promise<any>;
|
||||
|
||||
}
|
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/process.d.ts
generated
vendored
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/process.d.ts
generated
vendored
@ -1,7 +0,0 @@
|
||||
import {ICloudService} from "../../interface/cloudService";
|
||||
|
||||
export default class Process extends ICloudService {
|
||||
invoke(options: { api: string, data?: any, headers?: any }): Promise<any>;
|
||||
|
||||
private topRequest;
|
||||
}
|
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/qimen.d.ts
generated
vendored
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/qimen.d.ts
generated
vendored
@ -1,7 +0,0 @@
|
||||
import {ICloudService} from "../../interface/cloudService";
|
||||
|
||||
export default class Qimen extends ICloudService {
|
||||
invoke(options: { api: string, data?: any, targetAppKey?: any, headers?: any }): Promise<any>;
|
||||
|
||||
private topRequest;
|
||||
}
|
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/top.d.ts
generated
vendored
7
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/client/top.d.ts
generated
vendored
@ -1,7 +0,0 @@
|
||||
import {ICloudService} from "../../interface/cloudService";
|
||||
|
||||
export default class Top extends ICloudService {
|
||||
invoke(options: { api: string, data?: any, headers?: any, authScope?: string }): Promise<any>;
|
||||
|
||||
private topRequest;
|
||||
}
|
0
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/server/process.d.ts
generated
vendored
0
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/server/process.d.ts
generated
vendored
5
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/server/qimen.d.ts
generated
vendored
5
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/server/qimen.d.ts
generated
vendored
@ -1,5 +0,0 @@
|
||||
import {ICloudService} from "../../interface/cloudService";
|
||||
|
||||
export default class Qimen extends ICloudService {
|
||||
invoke(apiName: string, data?: any, httpHeaders?: any): Promise<any>;
|
||||
}
|
4
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/server/top.d.ts
generated
vendored
4
node_modules/@tbmp/mp-cloud-sdk/types/core/openApi/server/top.d.ts
generated
vendored
@ -1,4 +0,0 @@
|
||||
import {ICloudService} from "../../interface/cloudService";
|
||||
export default class Top extends ICloudService{
|
||||
invoke(apiName: string, data?: any, httpHeaders?: any): Promise<any>;
|
||||
}
|
70
node_modules/@tbmp/mp-cloud-sdk/types/core/storage/index.d.ts
generated
vendored
70
node_modules/@tbmp/mp-cloud-sdk/types/core/storage/index.d.ts
generated
vendored
@ -1,70 +0,0 @@
|
||||
import { IAsyncInvokeOptions } from "../../shared/types";
|
||||
import { ICloudService } from "../interface/cloudService";
|
||||
export interface IUploadFileOptions extends IAsyncInvokeOptions {
|
||||
/**
|
||||
* 选择到的本地文件路径
|
||||
*/
|
||||
filePath: string;
|
||||
/**
|
||||
* 文件类型, image/audio/video
|
||||
*/
|
||||
fileType: FileTypes;
|
||||
/**
|
||||
* 云存储文件名可带路径, 如a/xxx.jpg
|
||||
*/
|
||||
fileName?: string;
|
||||
/**
|
||||
* web环境上传 file对象
|
||||
*/
|
||||
file?: any;
|
||||
}
|
||||
export interface IDownloadFileOptions extends IAsyncInvokeOptions {
|
||||
fileType?: FileTypes;
|
||||
fileId: string;
|
||||
}
|
||||
export interface ITempFileURLOptions extends IAsyncInvokeOptions {
|
||||
fileList: string[];
|
||||
}
|
||||
export declare type IDeleteFileOptions = IDownloadFileOptions;
|
||||
export declare type FileTypes = "image" | "video" | "audio";
|
||||
export default class CloudStorage extends ICloudService {
|
||||
private parseUploadResult;
|
||||
private parsePostUploadResult;
|
||||
private parseAusUploadResult;
|
||||
/**
|
||||
* 文件上传
|
||||
* 1.获取上传配置
|
||||
* 2.调用my.api上传
|
||||
* 3.建立存储关系
|
||||
* @param options
|
||||
*/
|
||||
uploadFile(options: IUploadFileOptions): Promise<any>;
|
||||
/**
|
||||
* 删除文件
|
||||
* @param options
|
||||
*/
|
||||
deleteFile(options: IDeleteFileOptions): Promise<boolean>;
|
||||
/**
|
||||
* 根据文件id(cloud://)获取授权的url
|
||||
* @param options
|
||||
*/
|
||||
getTempFileURL(options: IAsyncInvokeOptions & {
|
||||
fileType: string;
|
||||
fileId: string | string[];
|
||||
}): Promise<any>;
|
||||
|
||||
/**
|
||||
* 从服务端获取文件并在本地读取
|
||||
* @param options
|
||||
*/
|
||||
readRemoteFile(options: IAsyncInvokeOptions & {
|
||||
url: string;
|
||||
}): Promise<ArrayBuffer>;
|
||||
/**
|
||||
* 存储的请求代理, 统一sdk环境和存储环境
|
||||
* @param action
|
||||
* @param data
|
||||
* @param requestType
|
||||
*/
|
||||
private storageRequest;
|
||||
}
|
3
node_modules/@tbmp/mp-cloud-sdk/types/platforms/mp-accs/index.d.ts
generated
vendored
3
node_modules/@tbmp/mp-cloud-sdk/types/platforms/mp-accs/index.d.ts
generated
vendored
@ -1,3 +0,0 @@
|
||||
import { Cloud } from '../mp';
|
||||
declare const cloudInstance: Cloud;
|
||||
export default cloudInstance;
|
12
node_modules/@tbmp/mp-cloud-sdk/types/platforms/mp-socket/index.d.ts
generated
vendored
12
node_modules/@tbmp/mp-cloud-sdk/types/platforms/mp-socket/index.d.ts
generated
vendored
@ -1,12 +0,0 @@
|
||||
import { Cloud as MpCloud } from '../mp';
|
||||
import { ICloudOptions } from '../../shared/types';
|
||||
import Client from '../../core/message/client';
|
||||
import { IProxy } from '../../shared/request';
|
||||
export declare class Cloud extends MpCloud {
|
||||
message: {
|
||||
client: Client;
|
||||
};
|
||||
init(options: ICloudOptions, proxy: IProxy): Promise<boolean>;
|
||||
}
|
||||
declare const _default: Cloud;
|
||||
export default _default;
|
24
node_modules/@tbmp/mp-cloud-sdk/types/platforms/mp/index.d.ts
generated
vendored
24
node_modules/@tbmp/mp-cloud-sdk/types/platforms/mp/index.d.ts
generated
vendored
@ -1,24 +0,0 @@
|
||||
import {IProxy} from '../../shared/request';
|
||||
import {ICloudOptions} from '../../shared/types';
|
||||
import CloudFunction from '../../core/functions';
|
||||
import CloudStorage from '../../core/storage';
|
||||
import Db from '../../core/db';
|
||||
import Top from '../../core/openApi/client/top';
|
||||
import Qimen from '../../core/openApi/client/qimen';
|
||||
import Process from '../../core/openApi/client/process';
|
||||
import Application from '../../core/openApi/client/application';
|
||||
|
||||
export declare class Cloud {
|
||||
function: CloudFunction;
|
||||
file: CloudStorage;
|
||||
db: Db;
|
||||
topApi: Top;
|
||||
qimenApi: Qimen;
|
||||
processApi: Process;
|
||||
application: Application;
|
||||
|
||||
init(options: ICloudOptions, proxy?: IProxy): Promise<boolean>;
|
||||
}
|
||||
|
||||
declare const _default: Cloud;
|
||||
export default _default;
|
13
node_modules/@tbmp/mp-cloud-sdk/types/platforms/node/index.d.ts
generated
vendored
13
node_modules/@tbmp/mp-cloud-sdk/types/platforms/node/index.d.ts
generated
vendored
@ -1,13 +0,0 @@
|
||||
import { ICloudOptions } from '../../shared/types';
|
||||
import CloudFunction from '../../core/functions';
|
||||
import Database from '../../core/db';
|
||||
import Top from '../../core/openApi/server/top';
|
||||
import Qimen from '../../core/openApi/server/qimen';
|
||||
|
||||
export declare class Cloud {
|
||||
db: Database;
|
||||
function: CloudFunction;
|
||||
topApi: Top;
|
||||
qimenApi : Qimen;
|
||||
}
|
||||
export declare function cloud(context: any, options: ICloudOptions): Cloud;
|
15
node_modules/@tbmp/mp-cloud-sdk/types/shared/constants.d.ts
generated
vendored
15
node_modules/@tbmp/mp-cloud-sdk/types/shared/constants.d.ts
generated
vendored
@ -1,15 +0,0 @@
|
||||
export declare const BASE_APIS: {
|
||||
GET_SESSION: string;
|
||||
GET_SECRET: string;
|
||||
};
|
||||
export declare const STORAGE_KEYS: {
|
||||
SECRET: string;
|
||||
};
|
||||
export declare const ENV_CONFIG: {
|
||||
pre: {
|
||||
gw: string;
|
||||
};
|
||||
online: {
|
||||
gw: string;
|
||||
};
|
||||
};
|
4
node_modules/@tbmp/mp-cloud-sdk/types/shared/helper.d.ts
generated
vendored
4
node_modules/@tbmp/mp-cloud-sdk/types/shared/helper.d.ts
generated
vendored
@ -1,4 +0,0 @@
|
||||
import { IAsyncInvokeOptions } from "./types";
|
||||
export declare function invokeCallback(options: IAsyncInvokeOptions, asyncTask: Promise<any>): Promise<void>;
|
||||
export declare function myApiPromisify(method: (options: any) => void, options?: any): Promise<any>;
|
||||
export declare function getUserId(): Promise<string>;
|
3
node_modules/@tbmp/mp-cloud-sdk/types/shared/index.d.ts
generated
vendored
3
node_modules/@tbmp/mp-cloud-sdk/types/shared/index.d.ts
generated
vendored
@ -1,3 +0,0 @@
|
||||
export declare function noop(): void;
|
||||
export declare function invokeTaskCallback(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
||||
export declare function safeAccess(props: any, keys: string[] | string, def?: any): any;
|
2
node_modules/@tbmp/mp-cloud-sdk/types/shared/localstorage.d.ts
generated
vendored
2
node_modules/@tbmp/mp-cloud-sdk/types/shared/localstorage.d.ts
generated
vendored
@ -1,2 +0,0 @@
|
||||
export declare function getValue(key: string): Promise<any>;
|
||||
export declare function setValue(key: string, data: any): Promise<any>;
|
89
node_modules/@tbmp/mp-cloud-sdk/types/shared/request.d.ts
generated
vendored
89
node_modules/@tbmp/mp-cloud-sdk/types/shared/request.d.ts
generated
vendored
@ -1,89 +0,0 @@
|
||||
export interface IRequestOptions {
|
||||
appKey?: string,
|
||||
sourceAppKey?: string,
|
||||
requestAppKey?:string,
|
||||
miniappId?: string,
|
||||
sourceMiniAppId?: string,
|
||||
appOwnerOpenId?: string,
|
||||
signSecret?: string;
|
||||
sessionKey?: string;
|
||||
requestId?: string;
|
||||
cloudId?: string;
|
||||
openId?: string;
|
||||
unionId?: string;
|
||||
userNick?: string,
|
||||
mixNick?: string,
|
||||
session?: string;
|
||||
accessToken?: string;
|
||||
env?: string;
|
||||
}
|
||||
export declare enum RequestTypes {
|
||||
MTOP = 1,
|
||||
MY = 2,
|
||||
GATEWAY = 3
|
||||
}
|
||||
export interface IGatewayResponse {
|
||||
error_response: {
|
||||
code: string;
|
||||
};
|
||||
}
|
||||
export interface IRequestDetail {
|
||||
url: string;
|
||||
data?: any;
|
||||
rawData?: any;
|
||||
method?: string;
|
||||
headers?: any;
|
||||
dataType?: string;
|
||||
v?: string;
|
||||
__is_retry_task__?: boolean;
|
||||
env?: string;
|
||||
mtopOptions?: any;
|
||||
}
|
||||
export interface IProxyOptions {
|
||||
gatewayUrl?: string;
|
||||
dataProxyGatewayUrl?: string;
|
||||
}
|
||||
export declare abstract class IProxy {
|
||||
options: IProxyOptions;
|
||||
abstract apply(task: IRequestDetail, requestType?: RequestTypes): Promise<any>;
|
||||
constructor(options?: IProxyOptions);
|
||||
}
|
||||
export declare class Request {
|
||||
networkType?: string;
|
||||
options: IRequestOptions;
|
||||
tasks: {
|
||||
detail: IRequestDetail;
|
||||
success?: (res: any) => void;
|
||||
fail?: (res: any) => void;
|
||||
}[];
|
||||
proxy: IProxy;
|
||||
inited: boolean;
|
||||
pauseExecTask: boolean;
|
||||
init(options: IRequestOptions, proxy: IProxy): Promise<void>;
|
||||
listenNetworkChange(): Promise<void>;
|
||||
static getRequestType(url: string): RequestTypes;
|
||||
/**
|
||||
* 验证响应结果, 特定情况下重试请求
|
||||
* @param res
|
||||
*/
|
||||
private verifyResponse;
|
||||
private tryThrowError;
|
||||
private sendGatewayRequest;
|
||||
flushGatewayRequestQueue(reject?: boolean): void;
|
||||
exec(detail: IRequestDetail, requestType?: RequestTypes): Promise<any>;
|
||||
/**
|
||||
*
|
||||
* @param url 网关请求
|
||||
* @param method 请求方法
|
||||
* @param queryString
|
||||
* @param headers mc_开头的http header
|
||||
* @param content json body
|
||||
*/
|
||||
private getHttpRequestSign;
|
||||
/**
|
||||
* 对网关请求签名
|
||||
* @param detail
|
||||
*/
|
||||
private createGatewayRequest;
|
||||
}
|
||||
export declare const request: Request;
|
42
node_modules/@tbmp/mp-cloud-sdk/types/shared/types.d.ts
generated
vendored
42
node_modules/@tbmp/mp-cloud-sdk/types/shared/types.d.ts
generated
vendored
@ -1,42 +0,0 @@
|
||||
export interface ICallback {
|
||||
(res: any): void;
|
||||
}
|
||||
export interface IHttpRequestOptions extends IAsyncInvokeOptions {
|
||||
url: string;
|
||||
method?: string;
|
||||
headers?: any;
|
||||
data?: any;
|
||||
dataType?: string;
|
||||
}
|
||||
export declare type Env = 'test' | 'pre' | 'online';
|
||||
export declare type Envs = {
|
||||
database: Env;
|
||||
file: Env;
|
||||
function: Env;
|
||||
message: Env;
|
||||
};
|
||||
export interface ICloudOptions {
|
||||
env?: Env | Envs;
|
||||
appKey?: string;
|
||||
}
|
||||
declare global {
|
||||
interface Window {
|
||||
}
|
||||
var my: {
|
||||
httpRequest: (options: IHttpRequestOptions) => void;
|
||||
sendMtop: (options: any) => void;
|
||||
alert: (options: {
|
||||
title?: string;
|
||||
content?: string;
|
||||
}) => void;
|
||||
};
|
||||
var NODE_PLATFORM: boolean;
|
||||
var SDK_VERSION: string;
|
||||
}
|
||||
export interface IAsyncInvokeOptions {
|
||||
success?: ICallback;
|
||||
fail?: ICallback;
|
||||
complete?: ICallback;
|
||||
}
|
||||
export declare type AsyncInvokeResult = Promise<any> | void;
|
||||
export declare type Constructor<T = {}> = new (...args: any[]) => T;
|
8
node_modules/@tbmp/mp-cloud-sdk/types/shared/util.d.ts
generated
vendored
8
node_modules/@tbmp/mp-cloud-sdk/types/shared/util.d.ts
generated
vendored
@ -1,8 +0,0 @@
|
||||
import { IAsyncInvokeOptions, Env, Envs } from "./types";
|
||||
export declare function noop(): void;
|
||||
export declare function invokeTaskCallback(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
||||
export declare function safeAccess(props: any, keys: string[] | string, def?: any): any;
|
||||
export declare function invokeCallback(options: IAsyncInvokeOptions, asyncTask: Promise<any>): Promise<void>;
|
||||
export declare function myApiPromisify(method: (options: any) => void, options?: any): Promise<any>;
|
||||
export declare function getUserId(): Promise<string>;
|
||||
export declare function getEnvs(env: Env | Envs): Envs;
|
47
node_modules/lodash/LICENSE
generated
vendored
47
node_modules/lodash/LICENSE
generated
vendored
@ -1,47 +0,0 @@
|
||||
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
|
||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
individuals. For exact contribution history, see the revision history
|
||||
available at https://github.com/lodash/lodash
|
||||
|
||||
The following license applies to all parts of this software except as
|
||||
documented below:
|
||||
|
||||
====
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
====
|
||||
|
||||
Copyright and related rights for sample code are waived via CC0. Sample
|
||||
code is defined as all source code displayed within the prose of the
|
||||
documentation.
|
||||
|
||||
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
====
|
||||
|
||||
Files located in the node_modules and vendor directories are externally
|
||||
maintained libraries used by this software which have their own
|
||||
licenses; we recommend you read them, as their terms may differ from the
|
||||
terms above.
|
39
node_modules/lodash/README.md
generated
vendored
39
node_modules/lodash/README.md
generated
vendored
@ -1,39 +0,0 @@
|
||||
# lodash v4.17.21
|
||||
|
||||
The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
|
||||
|
||||
## Installation
|
||||
|
||||
Using npm:
|
||||
```shell
|
||||
$ npm i -g npm
|
||||
$ npm i --save lodash
|
||||
```
|
||||
|
||||
In Node.js:
|
||||
```js
|
||||
// Load the full build.
|
||||
var _ = require('lodash');
|
||||
// Load the core build.
|
||||
var _ = require('lodash/core');
|
||||
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
|
||||
var fp = require('lodash/fp');
|
||||
|
||||
// Load method categories.
|
||||
var array = require('lodash/array');
|
||||
var object = require('lodash/fp/object');
|
||||
|
||||
// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
|
||||
var at = require('lodash/at');
|
||||
var curryN = require('lodash/fp/curryN');
|
||||
```
|
||||
|
||||
See the [package source](https://github.com/lodash/lodash/tree/4.17.21-npm) for more details.
|
||||
|
||||
**Note:**<br>
|
||||
Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
|
||||
|
||||
## Support
|
||||
|
||||
Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.<br>
|
||||
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.
|
7
node_modules/lodash/_DataView.js
generated
vendored
7
node_modules/lodash/_DataView.js
generated
vendored
@ -1,7 +0,0 @@
|
||||
var getNative = require('./_getNative'),
|
||||
root = require('./_root');
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var DataView = getNative(root, 'DataView');
|
||||
|
||||
module.exports = DataView;
|
32
node_modules/lodash/_Hash.js
generated
vendored
32
node_modules/lodash/_Hash.js
generated
vendored
@ -1,32 +0,0 @@
|
||||
var hashClear = require('./_hashClear'),
|
||||
hashDelete = require('./_hashDelete'),
|
||||
hashGet = require('./_hashGet'),
|
||||
hashHas = require('./_hashHas'),
|
||||
hashSet = require('./_hashSet');
|
||||
|
||||
/**
|
||||
* Creates a hash object.
|
||||
*
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {Array} [entries] The key-value pairs to cache.
|
||||
*/
|
||||
function Hash(entries) {
|
||||
var index = -1,
|
||||
length = entries == null ? 0 : entries.length;
|
||||
|
||||
this.clear();
|
||||
while (++index < length) {
|
||||
var entry = entries[index];
|
||||
this.set(entry[0], entry[1]);
|
||||
}
|
||||
}
|
||||
|
||||
// Add methods to `Hash`.
|
||||
Hash.prototype.clear = hashClear;
|
||||
Hash.prototype['delete'] = hashDelete;
|
||||
Hash.prototype.get = hashGet;
|
||||
Hash.prototype.has = hashHas;
|
||||
Hash.prototype.set = hashSet;
|
||||
|
||||
module.exports = Hash;
|
28
node_modules/lodash/_LazyWrapper.js
generated
vendored
28
node_modules/lodash/_LazyWrapper.js
generated
vendored
@ -1,28 +0,0 @@
|
||||
var baseCreate = require('./_baseCreate'),
|
||||
baseLodash = require('./_baseLodash');
|
||||
|
||||
/** Used as references for the maximum length and index of an array. */
|
||||
var MAX_ARRAY_LENGTH = 4294967295;
|
||||
|
||||
/**
|
||||
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
|
||||
*
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {*} value The value to wrap.
|
||||
*/
|
||||
function LazyWrapper(value) {
|
||||
this.__wrapped__ = value;
|
||||
this.__actions__ = [];
|
||||
this.__dir__ = 1;
|
||||
this.__filtered__ = false;
|
||||
this.__iteratees__ = [];
|
||||
this.__takeCount__ = MAX_ARRAY_LENGTH;
|
||||
this.__views__ = [];
|
||||
}
|
||||
|
||||
// Ensure `LazyWrapper` is an instance of `baseLodash`.
|
||||
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
||||
LazyWrapper.prototype.constructor = LazyWrapper;
|
||||
|
||||
module.exports = LazyWrapper;
|
32
node_modules/lodash/_ListCache.js
generated
vendored
32
node_modules/lodash/_ListCache.js
generated
vendored
@ -1,32 +0,0 @@
|
||||
var listCacheClear = require('./_listCacheClear'),
|
||||
listCacheDelete = require('./_listCacheDelete'),
|
||||
listCacheGet = require('./_listCacheGet'),
|
||||
listCacheHas = require('./_listCacheHas'),
|
||||
listCacheSet = require('./_listCacheSet');
|
||||
|
||||
/**
|
||||
* Creates an list cache object.
|
||||
*
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {Array} [entries] The key-value pairs to cache.
|
||||
*/
|
||||
function ListCache(entries) {
|
||||
var index = -1,
|
||||
length = entries == null ? 0 : entries.length;
|
||||
|
||||
this.clear();
|
||||
while (++index < length) {
|
||||
var entry = entries[index];
|
||||
this.set(entry[0], entry[1]);
|
||||
}
|
||||
}
|
||||
|
||||
// Add methods to `ListCache`.
|
||||
ListCache.prototype.clear = listCacheClear;
|
||||
ListCache.prototype['delete'] = listCacheDelete;
|
||||
ListCache.prototype.get = listCacheGet;
|
||||
ListCache.prototype.has = listCacheHas;
|
||||
ListCache.prototype.set = listCacheSet;
|
||||
|
||||
module.exports = ListCache;
|
22
node_modules/lodash/_LodashWrapper.js
generated
vendored
22
node_modules/lodash/_LodashWrapper.js
generated
vendored
@ -1,22 +0,0 @@
|
||||
var baseCreate = require('./_baseCreate'),
|
||||
baseLodash = require('./_baseLodash');
|
||||
|
||||
/**
|
||||
* The base constructor for creating `lodash` wrapper objects.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to wrap.
|
||||
* @param {boolean} [chainAll] Enable explicit method chain sequences.
|
||||
*/
|
||||
function LodashWrapper(value, chainAll) {
|
||||
this.__wrapped__ = value;
|
||||
this.__actions__ = [];
|
||||
this.__chain__ = !!chainAll;
|
||||
this.__index__ = 0;
|
||||
this.__values__ = undefined;
|
||||
}
|
||||
|
||||
LodashWrapper.prototype = baseCreate(baseLodash.prototype);
|
||||
LodashWrapper.prototype.constructor = LodashWrapper;
|
||||
|
||||
module.exports = LodashWrapper;
|
7
node_modules/lodash/_Map.js
generated
vendored
7
node_modules/lodash/_Map.js
generated
vendored
@ -1,7 +0,0 @@
|
||||
var getNative = require('./_getNative'),
|
||||
root = require('./_root');
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var Map = getNative(root, 'Map');
|
||||
|
||||
module.exports = Map;
|
32
node_modules/lodash/_MapCache.js
generated
vendored
32
node_modules/lodash/_MapCache.js
generated
vendored
@ -1,32 +0,0 @@
|
||||
var mapCacheClear = require('./_mapCacheClear'),
|
||||
mapCacheDelete = require('./_mapCacheDelete'),
|
||||
mapCacheGet = require('./_mapCacheGet'),
|
||||
mapCacheHas = require('./_mapCacheHas'),
|
||||
mapCacheSet = require('./_mapCacheSet');
|
||||
|
||||
/**
|
||||
* Creates a map cache object to store key-value pairs.
|
||||
*
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {Array} [entries] The key-value pairs to cache.
|
||||
*/
|
||||
function MapCache(entries) {
|
||||
var index = -1,
|
||||
length = entries == null ? 0 : entries.length;
|
||||
|
||||
this.clear();
|
||||
while (++index < length) {
|
||||
var entry = entries[index];
|
||||
this.set(entry[0], entry[1]);
|
||||
}
|
||||
}
|
||||
|
||||
// Add methods to `MapCache`.
|
||||
MapCache.prototype.clear = mapCacheClear;
|
||||
MapCache.prototype['delete'] = mapCacheDelete;
|
||||
MapCache.prototype.get = mapCacheGet;
|
||||
MapCache.prototype.has = mapCacheHas;
|
||||
MapCache.prototype.set = mapCacheSet;
|
||||
|
||||
module.exports = MapCache;
|
7
node_modules/lodash/_Promise.js
generated
vendored
7
node_modules/lodash/_Promise.js
generated
vendored
@ -1,7 +0,0 @@
|
||||
var getNative = require('./_getNative'),
|
||||
root = require('./_root');
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var Promise = getNative(root, 'Promise');
|
||||
|
||||
module.exports = Promise;
|
7
node_modules/lodash/_Set.js
generated
vendored
7
node_modules/lodash/_Set.js
generated
vendored
@ -1,7 +0,0 @@
|
||||
var getNative = require('./_getNative'),
|
||||
root = require('./_root');
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var Set = getNative(root, 'Set');
|
||||
|
||||
module.exports = Set;
|
27
node_modules/lodash/_SetCache.js
generated
vendored
27
node_modules/lodash/_SetCache.js
generated
vendored
@ -1,27 +0,0 @@
|
||||
var MapCache = require('./_MapCache'),
|
||||
setCacheAdd = require('./_setCacheAdd'),
|
||||
setCacheHas = require('./_setCacheHas');
|
||||
|
||||
/**
|
||||
*
|
||||
* Creates an array cache object to store unique values.
|
||||
*
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {Array} [values] The values to cache.
|
||||
*/
|
||||
function SetCache(values) {
|
||||
var index = -1,
|
||||
length = values == null ? 0 : values.length;
|
||||
|
||||
this.__data__ = new MapCache;
|
||||
while (++index < length) {
|
||||
this.add(values[index]);
|
||||
}
|
||||
}
|
||||
|
||||
// Add methods to `SetCache`.
|
||||
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
||||
SetCache.prototype.has = setCacheHas;
|
||||
|
||||
module.exports = SetCache;
|
27
node_modules/lodash/_Stack.js
generated
vendored
27
node_modules/lodash/_Stack.js
generated
vendored
@ -1,27 +0,0 @@
|
||||
var ListCache = require('./_ListCache'),
|
||||
stackClear = require('./_stackClear'),
|
||||
stackDelete = require('./_stackDelete'),
|
||||
stackGet = require('./_stackGet'),
|
||||
stackHas = require('./_stackHas'),
|
||||
stackSet = require('./_stackSet');
|
||||
|
||||
/**
|
||||
* Creates a stack cache object to store key-value pairs.
|
||||
*
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {Array} [entries] The key-value pairs to cache.
|
||||
*/
|
||||
function Stack(entries) {
|
||||
var data = this.__data__ = new ListCache(entries);
|
||||
this.size = data.size;
|
||||
}
|
||||
|
||||
// Add methods to `Stack`.
|
||||
Stack.prototype.clear = stackClear;
|
||||
Stack.prototype['delete'] = stackDelete;
|
||||
Stack.prototype.get = stackGet;
|
||||
Stack.prototype.has = stackHas;
|
||||
Stack.prototype.set = stackSet;
|
||||
|
||||
module.exports = Stack;
|
6
node_modules/lodash/_Symbol.js
generated
vendored
6
node_modules/lodash/_Symbol.js
generated
vendored
@ -1,6 +0,0 @@
|
||||
var root = require('./_root');
|
||||
|
||||
/** Built-in value references. */
|
||||
var Symbol = root.Symbol;
|
||||
|
||||
module.exports = Symbol;
|
6
node_modules/lodash/_Uint8Array.js
generated
vendored
6
node_modules/lodash/_Uint8Array.js
generated
vendored
@ -1,6 +0,0 @@
|
||||
var root = require('./_root');
|
||||
|
||||
/** Built-in value references. */
|
||||
var Uint8Array = root.Uint8Array;
|
||||
|
||||
module.exports = Uint8Array;
|
7
node_modules/lodash/_WeakMap.js
generated
vendored
7
node_modules/lodash/_WeakMap.js
generated
vendored
@ -1,7 +0,0 @@
|
||||
var getNative = require('./_getNative'),
|
||||
root = require('./_root');
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var WeakMap = getNative(root, 'WeakMap');
|
||||
|
||||
module.exports = WeakMap;
|
21
node_modules/lodash/_apply.js
generated
vendored
21
node_modules/lodash/_apply.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
/**
|
||||
* A faster alternative to `Function#apply`, this function invokes `func`
|
||||
* with the `this` binding of `thisArg` and the arguments of `args`.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} func The function to invoke.
|
||||
* @param {*} thisArg The `this` binding of `func`.
|
||||
* @param {Array} args The arguments to invoke `func` with.
|
||||
* @returns {*} Returns the result of `func`.
|
||||
*/
|
||||
function apply(func, thisArg, args) {
|
||||
switch (args.length) {
|
||||
case 0: return func.call(thisArg);
|
||||
case 1: return func.call(thisArg, args[0]);
|
||||
case 2: return func.call(thisArg, args[0], args[1]);
|
||||
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
||||
}
|
||||
return func.apply(thisArg, args);
|
||||
}
|
||||
|
||||
module.exports = apply;
|
22
node_modules/lodash/_arrayAggregator.js
generated
vendored
22
node_modules/lodash/_arrayAggregator.js
generated
vendored
@ -1,22 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `baseAggregator` for arrays.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} setter The function to set `accumulator` values.
|
||||
* @param {Function} iteratee The iteratee to transform keys.
|
||||
* @param {Object} accumulator The initial aggregated object.
|
||||
* @returns {Function} Returns `accumulator`.
|
||||
*/
|
||||
function arrayAggregator(array, setter, iteratee, accumulator) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
while (++index < length) {
|
||||
var value = array[index];
|
||||
setter(accumulator, value, iteratee(value), array);
|
||||
}
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = arrayAggregator;
|
22
node_modules/lodash/_arrayEach.js
generated
vendored
22
node_modules/lodash/_arrayEach.js
generated
vendored
@ -1,22 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.forEach` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function arrayEach(array, iteratee) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
while (++index < length) {
|
||||
if (iteratee(array[index], index, array) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = arrayEach;
|
21
node_modules/lodash/_arrayEachRight.js
generated
vendored
21
node_modules/lodash/_arrayEachRight.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.forEachRight` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function arrayEachRight(array, iteratee) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
|
||||
while (length--) {
|
||||
if (iteratee(array[length], length, array) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = arrayEachRight;
|
23
node_modules/lodash/_arrayEvery.js
generated
vendored
23
node_modules/lodash/_arrayEvery.js
generated
vendored
@ -1,23 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.every` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arrayEvery(array, predicate) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
while (++index < length) {
|
||||
if (!predicate(array[index], index, array)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
module.exports = arrayEvery;
|
25
node_modules/lodash/_arrayFilter.js
generated
vendored
25
node_modules/lodash/_arrayFilter.js
generated
vendored
@ -1,25 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.filter` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns the new filtered array.
|
||||
*/
|
||||
function arrayFilter(array, predicate) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length,
|
||||
resIndex = 0,
|
||||
result = [];
|
||||
|
||||
while (++index < length) {
|
||||
var value = array[index];
|
||||
if (predicate(value, index, array)) {
|
||||
result[resIndex++] = value;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = arrayFilter;
|
17
node_modules/lodash/_arrayIncludes.js
generated
vendored
17
node_modules/lodash/_arrayIncludes.js
generated
vendored
@ -1,17 +0,0 @@
|
||||
var baseIndexOf = require('./_baseIndexOf');
|
||||
|
||||
/**
|
||||
* A specialized version of `_.includes` for arrays without support for
|
||||
* specifying an index to search from.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to inspect.
|
||||
* @param {*} target The value to search for.
|
||||
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
||||
*/
|
||||
function arrayIncludes(array, value) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
return !!length && baseIndexOf(array, value, 0) > -1;
|
||||
}
|
||||
|
||||
module.exports = arrayIncludes;
|
22
node_modules/lodash/_arrayIncludesWith.js
generated
vendored
22
node_modules/lodash/_arrayIncludesWith.js
generated
vendored
@ -1,22 +0,0 @@
|
||||
/**
|
||||
* This function is like `arrayIncludes` except that it accepts a comparator.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to inspect.
|
||||
* @param {*} target The value to search for.
|
||||
* @param {Function} comparator The comparator invoked per element.
|
||||
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
||||
*/
|
||||
function arrayIncludesWith(array, value, comparator) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
while (++index < length) {
|
||||
if (comparator(value, array[index])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
module.exports = arrayIncludesWith;
|
49
node_modules/lodash/_arrayLikeKeys.js
generated
vendored
49
node_modules/lodash/_arrayLikeKeys.js
generated
vendored
@ -1,49 +0,0 @@
|
||||
var baseTimes = require('./_baseTimes'),
|
||||
isArguments = require('./isArguments'),
|
||||
isArray = require('./isArray'),
|
||||
isBuffer = require('./isBuffer'),
|
||||
isIndex = require('./_isIndex'),
|
||||
isTypedArray = require('./isTypedArray');
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/**
|
||||
* Creates an array of the enumerable property names of the array-like `value`.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to query.
|
||||
* @param {boolean} inherited Specify returning inherited property names.
|
||||
* @returns {Array} Returns the array of property names.
|
||||
*/
|
||||
function arrayLikeKeys(value, inherited) {
|
||||
var isArr = isArray(value),
|
||||
isArg = !isArr && isArguments(value),
|
||||
isBuff = !isArr && !isArg && isBuffer(value),
|
||||
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
||||
skipIndexes = isArr || isArg || isBuff || isType,
|
||||
result = skipIndexes ? baseTimes(value.length, String) : [],
|
||||
length = result.length;
|
||||
|
||||
for (var key in value) {
|
||||
if ((inherited || hasOwnProperty.call(value, key)) &&
|
||||
!(skipIndexes && (
|
||||
// Safari 9 has enumerable `arguments.length` in strict mode.
|
||||
key == 'length' ||
|
||||
// Node.js 0.10 has enumerable non-index properties on buffers.
|
||||
(isBuff && (key == 'offset' || key == 'parent')) ||
|
||||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
||||
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
||||
// Skip index properties.
|
||||
isIndex(key, length)
|
||||
))) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = arrayLikeKeys;
|
21
node_modules/lodash/_arrayMap.js
generated
vendored
21
node_modules/lodash/_arrayMap.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.map` for arrays without support for iteratee
|
||||
* shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array} Returns the new mapped array.
|
||||
*/
|
||||
function arrayMap(array, iteratee) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length,
|
||||
result = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = iteratee(array[index], index, array);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = arrayMap;
|
20
node_modules/lodash/_arrayPush.js
generated
vendored
20
node_modules/lodash/_arrayPush.js
generated
vendored
@ -1,20 +0,0 @@
|
||||
/**
|
||||
* Appends the elements of `values` to `array`.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to modify.
|
||||
* @param {Array} values The values to append.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function arrayPush(array, values) {
|
||||
var index = -1,
|
||||
length = values.length,
|
||||
offset = array.length;
|
||||
|
||||
while (++index < length) {
|
||||
array[offset + index] = values[index];
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = arrayPush;
|
26
node_modules/lodash/_arrayReduce.js
generated
vendored
26
node_modules/lodash/_arrayReduce.js
generated
vendored
@ -1,26 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.reduce` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {*} [accumulator] The initial value.
|
||||
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
||||
* the initial value.
|
||||
* @returns {*} Returns the accumulated value.
|
||||
*/
|
||||
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
if (initAccum && length) {
|
||||
accumulator = array[++index];
|
||||
}
|
||||
while (++index < length) {
|
||||
accumulator = iteratee(accumulator, array[index], index, array);
|
||||
}
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = arrayReduce;
|
24
node_modules/lodash/_arrayReduceRight.js
generated
vendored
24
node_modules/lodash/_arrayReduceRight.js
generated
vendored
@ -1,24 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.reduceRight` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {*} [accumulator] The initial value.
|
||||
* @param {boolean} [initAccum] Specify using the last element of `array` as
|
||||
* the initial value.
|
||||
* @returns {*} Returns the accumulated value.
|
||||
*/
|
||||
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
if (initAccum && length) {
|
||||
accumulator = array[--length];
|
||||
}
|
||||
while (length--) {
|
||||
accumulator = iteratee(accumulator, array[length], length, array);
|
||||
}
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = arrayReduceRight;
|
15
node_modules/lodash/_arraySample.js
generated
vendored
15
node_modules/lodash/_arraySample.js
generated
vendored
@ -1,15 +0,0 @@
|
||||
var baseRandom = require('./_baseRandom');
|
||||
|
||||
/**
|
||||
* A specialized version of `_.sample` for arrays.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to sample.
|
||||
* @returns {*} Returns the random element.
|
||||
*/
|
||||
function arraySample(array) {
|
||||
var length = array.length;
|
||||
return length ? array[baseRandom(0, length - 1)] : undefined;
|
||||
}
|
||||
|
||||
module.exports = arraySample;
|
17
node_modules/lodash/_arraySampleSize.js
generated
vendored
17
node_modules/lodash/_arraySampleSize.js
generated
vendored
@ -1,17 +0,0 @@
|
||||
var baseClamp = require('./_baseClamp'),
|
||||
copyArray = require('./_copyArray'),
|
||||
shuffleSelf = require('./_shuffleSelf');
|
||||
|
||||
/**
|
||||
* A specialized version of `_.sampleSize` for arrays.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to sample.
|
||||
* @param {number} n The number of elements to sample.
|
||||
* @returns {Array} Returns the random elements.
|
||||
*/
|
||||
function arraySampleSize(array, n) {
|
||||
return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
|
||||
}
|
||||
|
||||
module.exports = arraySampleSize;
|
15
node_modules/lodash/_arrayShuffle.js
generated
vendored
15
node_modules/lodash/_arrayShuffle.js
generated
vendored
@ -1,15 +0,0 @@
|
||||
var copyArray = require('./_copyArray'),
|
||||
shuffleSelf = require('./_shuffleSelf');
|
||||
|
||||
/**
|
||||
* A specialized version of `_.shuffle` for arrays.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to shuffle.
|
||||
* @returns {Array} Returns the new shuffled array.
|
||||
*/
|
||||
function arrayShuffle(array) {
|
||||
return shuffleSelf(copyArray(array));
|
||||
}
|
||||
|
||||
module.exports = arrayShuffle;
|
23
node_modules/lodash/_arraySome.js
generated
vendored
23
node_modules/lodash/_arraySome.js
generated
vendored
@ -1,23 +0,0 @@
|
||||
/**
|
||||
* A specialized version of `_.some` for arrays without support for iteratee
|
||||
* shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arraySome(array, predicate) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
while (++index < length) {
|
||||
if (predicate(array[index], index, array)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
module.exports = arraySome;
|
12
node_modules/lodash/_asciiSize.js
generated
vendored
12
node_modules/lodash/_asciiSize.js
generated
vendored
@ -1,12 +0,0 @@
|
||||
var baseProperty = require('./_baseProperty');
|
||||
|
||||
/**
|
||||
* Gets the size of an ASCII `string`.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string inspect.
|
||||
* @returns {number} Returns the string size.
|
||||
*/
|
||||
var asciiSize = baseProperty('length');
|
||||
|
||||
module.exports = asciiSize;
|
12
node_modules/lodash/_asciiToArray.js
generated
vendored
12
node_modules/lodash/_asciiToArray.js
generated
vendored
@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Converts an ASCII `string` to an array.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to convert.
|
||||
* @returns {Array} Returns the converted array.
|
||||
*/
|
||||
function asciiToArray(string) {
|
||||
return string.split('');
|
||||
}
|
||||
|
||||
module.exports = asciiToArray;
|
15
node_modules/lodash/_asciiWords.js
generated
vendored
15
node_modules/lodash/_asciiWords.js
generated
vendored
@ -1,15 +0,0 @@
|
||||
/** Used to match words composed of alphanumeric characters. */
|
||||
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
||||
|
||||
/**
|
||||
* Splits an ASCII `string` into an array of its words.
|
||||
*
|
||||
* @private
|
||||
* @param {string} The string to inspect.
|
||||
* @returns {Array} Returns the words of `string`.
|
||||
*/
|
||||
function asciiWords(string) {
|
||||
return string.match(reAsciiWord) || [];
|
||||
}
|
||||
|
||||
module.exports = asciiWords;
|
20
node_modules/lodash/_assignMergeValue.js
generated
vendored
20
node_modules/lodash/_assignMergeValue.js
generated
vendored
@ -1,20 +0,0 @@
|
||||
var baseAssignValue = require('./_baseAssignValue'),
|
||||
eq = require('./eq');
|
||||
|
||||
/**
|
||||
* This function is like `assignValue` except that it doesn't assign
|
||||
* `undefined` values.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to modify.
|
||||
* @param {string} key The key of the property to assign.
|
||||
* @param {*} value The value to assign.
|
||||
*/
|
||||
function assignMergeValue(object, key, value) {
|
||||
if ((value !== undefined && !eq(object[key], value)) ||
|
||||
(value === undefined && !(key in object))) {
|
||||
baseAssignValue(object, key, value);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = assignMergeValue;
|
28
node_modules/lodash/_assignValue.js
generated
vendored
28
node_modules/lodash/_assignValue.js
generated
vendored
@ -1,28 +0,0 @@
|
||||
var baseAssignValue = require('./_baseAssignValue'),
|
||||
eq = require('./eq');
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/**
|
||||
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
||||
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
||||
* for equality comparisons.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to modify.
|
||||
* @param {string} key The key of the property to assign.
|
||||
* @param {*} value The value to assign.
|
||||
*/
|
||||
function assignValue(object, key, value) {
|
||||
var objValue = object[key];
|
||||
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
|
||||
(value === undefined && !(key in object))) {
|
||||
baseAssignValue(object, key, value);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = assignValue;
|
21
node_modules/lodash/_assocIndexOf.js
generated
vendored
21
node_modules/lodash/_assocIndexOf.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
var eq = require('./eq');
|
||||
|
||||
/**
|
||||
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {*} key The key to search for.
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
*/
|
||||
function assocIndexOf(array, key) {
|
||||
var length = array.length;
|
||||
while (length--) {
|
||||
if (eq(array[length][0], key)) {
|
||||
return length;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
module.exports = assocIndexOf;
|
21
node_modules/lodash/_baseAggregator.js
generated
vendored
21
node_modules/lodash/_baseAggregator.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
var baseEach = require('./_baseEach');
|
||||
|
||||
/**
|
||||
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
||||
* by `iteratee` and values set by `setter`.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function} setter The function to set `accumulator` values.
|
||||
* @param {Function} iteratee The iteratee to transform keys.
|
||||
* @param {Object} accumulator The initial aggregated object.
|
||||
* @returns {Function} Returns `accumulator`.
|
||||
*/
|
||||
function baseAggregator(collection, setter, iteratee, accumulator) {
|
||||
baseEach(collection, function(value, key, collection) {
|
||||
setter(accumulator, value, iteratee(value), collection);
|
||||
});
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = baseAggregator;
|
17
node_modules/lodash/_baseAssign.js
generated
vendored
17
node_modules/lodash/_baseAssign.js
generated
vendored
@ -1,17 +0,0 @@
|
||||
var copyObject = require('./_copyObject'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.assign` without support for multiple sources
|
||||
* or `customizer` functions.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The destination object.
|
||||
* @param {Object} source The source object.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function baseAssign(object, source) {
|
||||
return object && copyObject(source, keys(source), object);
|
||||
}
|
||||
|
||||
module.exports = baseAssign;
|
17
node_modules/lodash/_baseAssignIn.js
generated
vendored
17
node_modules/lodash/_baseAssignIn.js
generated
vendored
@ -1,17 +0,0 @@
|
||||
var copyObject = require('./_copyObject'),
|
||||
keysIn = require('./keysIn');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.assignIn` without support for multiple sources
|
||||
* or `customizer` functions.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The destination object.
|
||||
* @param {Object} source The source object.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function baseAssignIn(object, source) {
|
||||
return object && copyObject(source, keysIn(source), object);
|
||||
}
|
||||
|
||||
module.exports = baseAssignIn;
|
25
node_modules/lodash/_baseAssignValue.js
generated
vendored
25
node_modules/lodash/_baseAssignValue.js
generated
vendored
@ -1,25 +0,0 @@
|
||||
var defineProperty = require('./_defineProperty');
|
||||
|
||||
/**
|
||||
* The base implementation of `assignValue` and `assignMergeValue` without
|
||||
* value checks.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to modify.
|
||||
* @param {string} key The key of the property to assign.
|
||||
* @param {*} value The value to assign.
|
||||
*/
|
||||
function baseAssignValue(object, key, value) {
|
||||
if (key == '__proto__' && defineProperty) {
|
||||
defineProperty(object, key, {
|
||||
'configurable': true,
|
||||
'enumerable': true,
|
||||
'value': value,
|
||||
'writable': true
|
||||
});
|
||||
} else {
|
||||
object[key] = value;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = baseAssignValue;
|
23
node_modules/lodash/_baseAt.js
generated
vendored
23
node_modules/lodash/_baseAt.js
generated
vendored
@ -1,23 +0,0 @@
|
||||
var get = require('./get');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.at` without support for individual paths.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {string[]} paths The property paths to pick.
|
||||
* @returns {Array} Returns the picked elements.
|
||||
*/
|
||||
function baseAt(object, paths) {
|
||||
var index = -1,
|
||||
length = paths.length,
|
||||
result = Array(length),
|
||||
skip = object == null;
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = skip ? undefined : get(object, paths[index]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseAt;
|
22
node_modules/lodash/_baseClamp.js
generated
vendored
22
node_modules/lodash/_baseClamp.js
generated
vendored
@ -1,22 +0,0 @@
|
||||
/**
|
||||
* The base implementation of `_.clamp` which doesn't coerce arguments.
|
||||
*
|
||||
* @private
|
||||
* @param {number} number The number to clamp.
|
||||
* @param {number} [lower] The lower bound.
|
||||
* @param {number} upper The upper bound.
|
||||
* @returns {number} Returns the clamped number.
|
||||
*/
|
||||
function baseClamp(number, lower, upper) {
|
||||
if (number === number) {
|
||||
if (upper !== undefined) {
|
||||
number = number <= upper ? number : upper;
|
||||
}
|
||||
if (lower !== undefined) {
|
||||
number = number >= lower ? number : lower;
|
||||
}
|
||||
}
|
||||
return number;
|
||||
}
|
||||
|
||||
module.exports = baseClamp;
|
166
node_modules/lodash/_baseClone.js
generated
vendored
166
node_modules/lodash/_baseClone.js
generated
vendored
@ -1,166 +0,0 @@
|
||||
var Stack = require('./_Stack'),
|
||||
arrayEach = require('./_arrayEach'),
|
||||
assignValue = require('./_assignValue'),
|
||||
baseAssign = require('./_baseAssign'),
|
||||
baseAssignIn = require('./_baseAssignIn'),
|
||||
cloneBuffer = require('./_cloneBuffer'),
|
||||
copyArray = require('./_copyArray'),
|
||||
copySymbols = require('./_copySymbols'),
|
||||
copySymbolsIn = require('./_copySymbolsIn'),
|
||||
getAllKeys = require('./_getAllKeys'),
|
||||
getAllKeysIn = require('./_getAllKeysIn'),
|
||||
getTag = require('./_getTag'),
|
||||
initCloneArray = require('./_initCloneArray'),
|
||||
initCloneByTag = require('./_initCloneByTag'),
|
||||
initCloneObject = require('./_initCloneObject'),
|
||||
isArray = require('./isArray'),
|
||||
isBuffer = require('./isBuffer'),
|
||||
isMap = require('./isMap'),
|
||||
isObject = require('./isObject'),
|
||||
isSet = require('./isSet'),
|
||||
keys = require('./keys'),
|
||||
keysIn = require('./keysIn');
|
||||
|
||||
/** Used to compose bitmasks for cloning. */
|
||||
var CLONE_DEEP_FLAG = 1,
|
||||
CLONE_FLAT_FLAG = 2,
|
||||
CLONE_SYMBOLS_FLAG = 4;
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
var argsTag = '[object Arguments]',
|
||||
arrayTag = '[object Array]',
|
||||
boolTag = '[object Boolean]',
|
||||
dateTag = '[object Date]',
|
||||
errorTag = '[object Error]',
|
||||
funcTag = '[object Function]',
|
||||
genTag = '[object GeneratorFunction]',
|
||||
mapTag = '[object Map]',
|
||||
numberTag = '[object Number]',
|
||||
objectTag = '[object Object]',
|
||||
regexpTag = '[object RegExp]',
|
||||
setTag = '[object Set]',
|
||||
stringTag = '[object String]',
|
||||
symbolTag = '[object Symbol]',
|
||||
weakMapTag = '[object WeakMap]';
|
||||
|
||||
var arrayBufferTag = '[object ArrayBuffer]',
|
||||
dataViewTag = '[object DataView]',
|
||||
float32Tag = '[object Float32Array]',
|
||||
float64Tag = '[object Float64Array]',
|
||||
int8Tag = '[object Int8Array]',
|
||||
int16Tag = '[object Int16Array]',
|
||||
int32Tag = '[object Int32Array]',
|
||||
uint8Tag = '[object Uint8Array]',
|
||||
uint8ClampedTag = '[object Uint8ClampedArray]',
|
||||
uint16Tag = '[object Uint16Array]',
|
||||
uint32Tag = '[object Uint32Array]';
|
||||
|
||||
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
||||
var cloneableTags = {};
|
||||
cloneableTags[argsTag] = cloneableTags[arrayTag] =
|
||||
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
|
||||
cloneableTags[boolTag] = cloneableTags[dateTag] =
|
||||
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
|
||||
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
|
||||
cloneableTags[int32Tag] = cloneableTags[mapTag] =
|
||||
cloneableTags[numberTag] = cloneableTags[objectTag] =
|
||||
cloneableTags[regexpTag] = cloneableTags[setTag] =
|
||||
cloneableTags[stringTag] = cloneableTags[symbolTag] =
|
||||
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
|
||||
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
||||
cloneableTags[errorTag] = cloneableTags[funcTag] =
|
||||
cloneableTags[weakMapTag] = false;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
||||
* traversed objects.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to clone.
|
||||
* @param {boolean} bitmask The bitmask flags.
|
||||
* 1 - Deep clone
|
||||
* 2 - Flatten inherited properties
|
||||
* 4 - Clone symbols
|
||||
* @param {Function} [customizer] The function to customize cloning.
|
||||
* @param {string} [key] The key of `value`.
|
||||
* @param {Object} [object] The parent object of `value`.
|
||||
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
||||
* @returns {*} Returns the cloned value.
|
||||
*/
|
||||
function baseClone(value, bitmask, customizer, key, object, stack) {
|
||||
var result,
|
||||
isDeep = bitmask & CLONE_DEEP_FLAG,
|
||||
isFlat = bitmask & CLONE_FLAT_FLAG,
|
||||
isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
||||
|
||||
if (customizer) {
|
||||
result = object ? customizer(value, key, object, stack) : customizer(value);
|
||||
}
|
||||
if (result !== undefined) {
|
||||
return result;
|
||||
}
|
||||
if (!isObject(value)) {
|
||||
return value;
|
||||
}
|
||||
var isArr = isArray(value);
|
||||
if (isArr) {
|
||||
result = initCloneArray(value);
|
||||
if (!isDeep) {
|
||||
return copyArray(value, result);
|
||||
}
|
||||
} else {
|
||||
var tag = getTag(value),
|
||||
isFunc = tag == funcTag || tag == genTag;
|
||||
|
||||
if (isBuffer(value)) {
|
||||
return cloneBuffer(value, isDeep);
|
||||
}
|
||||
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
||||
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
||||
if (!isDeep) {
|
||||
return isFlat
|
||||
? copySymbolsIn(value, baseAssignIn(result, value))
|
||||
: copySymbols(value, baseAssign(result, value));
|
||||
}
|
||||
} else {
|
||||
if (!cloneableTags[tag]) {
|
||||
return object ? value : {};
|
||||
}
|
||||
result = initCloneByTag(value, tag, isDeep);
|
||||
}
|
||||
}
|
||||
// Check for circular references and return its corresponding clone.
|
||||
stack || (stack = new Stack);
|
||||
var stacked = stack.get(value);
|
||||
if (stacked) {
|
||||
return stacked;
|
||||
}
|
||||
stack.set(value, result);
|
||||
|
||||
if (isSet(value)) {
|
||||
value.forEach(function(subValue) {
|
||||
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
||||
});
|
||||
} else if (isMap(value)) {
|
||||
value.forEach(function(subValue, key) {
|
||||
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
||||
});
|
||||
}
|
||||
|
||||
var keysFunc = isFull
|
||||
? (isFlat ? getAllKeysIn : getAllKeys)
|
||||
: (isFlat ? keysIn : keys);
|
||||
|
||||
var props = isArr ? undefined : keysFunc(value);
|
||||
arrayEach(props || value, function(subValue, key) {
|
||||
if (props) {
|
||||
key = subValue;
|
||||
subValue = value[key];
|
||||
}
|
||||
// Recursively populate clone (susceptible to call stack limits).
|
||||
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseClone;
|
18
node_modules/lodash/_baseConforms.js
generated
vendored
18
node_modules/lodash/_baseConforms.js
generated
vendored
@ -1,18 +0,0 @@
|
||||
var baseConformsTo = require('./_baseConformsTo'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.conforms` which doesn't clone `source`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} source The object of property predicates to conform to.
|
||||
* @returns {Function} Returns the new spec function.
|
||||
*/
|
||||
function baseConforms(source) {
|
||||
var props = keys(source);
|
||||
return function(object) {
|
||||
return baseConformsTo(object, source, props);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = baseConforms;
|
27
node_modules/lodash/_baseConformsTo.js
generated
vendored
27
node_modules/lodash/_baseConformsTo.js
generated
vendored
@ -1,27 +0,0 @@
|
||||
/**
|
||||
* The base implementation of `_.conformsTo` which accepts `props` to check.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to inspect.
|
||||
* @param {Object} source The object of property predicates to conform to.
|
||||
* @returns {boolean} Returns `true` if `object` conforms, else `false`.
|
||||
*/
|
||||
function baseConformsTo(object, source, props) {
|
||||
var length = props.length;
|
||||
if (object == null) {
|
||||
return !length;
|
||||
}
|
||||
object = Object(object);
|
||||
while (length--) {
|
||||
var key = props[length],
|
||||
predicate = source[key],
|
||||
value = object[key];
|
||||
|
||||
if ((value === undefined && !(key in object)) || !predicate(value)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
module.exports = baseConformsTo;
|
30
node_modules/lodash/_baseCreate.js
generated
vendored
30
node_modules/lodash/_baseCreate.js
generated
vendored
@ -1,30 +0,0 @@
|
||||
var isObject = require('./isObject');
|
||||
|
||||
/** Built-in value references. */
|
||||
var objectCreate = Object.create;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.create` without support for assigning
|
||||
* properties to the created object.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} proto The object to inherit from.
|
||||
* @returns {Object} Returns the new object.
|
||||
*/
|
||||
var baseCreate = (function() {
|
||||
function object() {}
|
||||
return function(proto) {
|
||||
if (!isObject(proto)) {
|
||||
return {};
|
||||
}
|
||||
if (objectCreate) {
|
||||
return objectCreate(proto);
|
||||
}
|
||||
object.prototype = proto;
|
||||
var result = new object;
|
||||
object.prototype = undefined;
|
||||
return result;
|
||||
};
|
||||
}());
|
||||
|
||||
module.exports = baseCreate;
|
21
node_modules/lodash/_baseDelay.js
generated
vendored
21
node_modules/lodash/_baseDelay.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
/** Error message constants. */
|
||||
var FUNC_ERROR_TEXT = 'Expected a function';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.delay` and `_.defer` which accepts `args`
|
||||
* to provide to `func`.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} func The function to delay.
|
||||
* @param {number} wait The number of milliseconds to delay invocation.
|
||||
* @param {Array} args The arguments to provide to `func`.
|
||||
* @returns {number|Object} Returns the timer id or timeout object.
|
||||
*/
|
||||
function baseDelay(func, wait, args) {
|
||||
if (typeof func != 'function') {
|
||||
throw new TypeError(FUNC_ERROR_TEXT);
|
||||
}
|
||||
return setTimeout(function() { func.apply(undefined, args); }, wait);
|
||||
}
|
||||
|
||||
module.exports = baseDelay;
|
67
node_modules/lodash/_baseDifference.js
generated
vendored
67
node_modules/lodash/_baseDifference.js
generated
vendored
@ -1,67 +0,0 @@
|
||||
var SetCache = require('./_SetCache'),
|
||||
arrayIncludes = require('./_arrayIncludes'),
|
||||
arrayIncludesWith = require('./_arrayIncludesWith'),
|
||||
arrayMap = require('./_arrayMap'),
|
||||
baseUnary = require('./_baseUnary'),
|
||||
cacheHas = require('./_cacheHas');
|
||||
|
||||
/** Used as the size to enable large array optimizations. */
|
||||
var LARGE_ARRAY_SIZE = 200;
|
||||
|
||||
/**
|
||||
* The base implementation of methods like `_.difference` without support
|
||||
* for excluding multiple arrays or iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Array} values The values to exclude.
|
||||
* @param {Function} [iteratee] The iteratee invoked per element.
|
||||
* @param {Function} [comparator] The comparator invoked per element.
|
||||
* @returns {Array} Returns the new array of filtered values.
|
||||
*/
|
||||
function baseDifference(array, values, iteratee, comparator) {
|
||||
var index = -1,
|
||||
includes = arrayIncludes,
|
||||
isCommon = true,
|
||||
length = array.length,
|
||||
result = [],
|
||||
valuesLength = values.length;
|
||||
|
||||
if (!length) {
|
||||
return result;
|
||||
}
|
||||
if (iteratee) {
|
||||
values = arrayMap(values, baseUnary(iteratee));
|
||||
}
|
||||
if (comparator) {
|
||||
includes = arrayIncludesWith;
|
||||
isCommon = false;
|
||||
}
|
||||
else if (values.length >= LARGE_ARRAY_SIZE) {
|
||||
includes = cacheHas;
|
||||
isCommon = false;
|
||||
values = new SetCache(values);
|
||||
}
|
||||
outer:
|
||||
while (++index < length) {
|
||||
var value = array[index],
|
||||
computed = iteratee == null ? value : iteratee(value);
|
||||
|
||||
value = (comparator || value !== 0) ? value : 0;
|
||||
if (isCommon && computed === computed) {
|
||||
var valuesIndex = valuesLength;
|
||||
while (valuesIndex--) {
|
||||
if (values[valuesIndex] === computed) {
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
result.push(value);
|
||||
}
|
||||
else if (!includes(values, computed, comparator)) {
|
||||
result.push(value);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseDifference;
|
14
node_modules/lodash/_baseEach.js
generated
vendored
14
node_modules/lodash/_baseEach.js
generated
vendored
@ -1,14 +0,0 @@
|
||||
var baseForOwn = require('./_baseForOwn'),
|
||||
createBaseEach = require('./_createBaseEach');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array|Object} Returns `collection`.
|
||||
*/
|
||||
var baseEach = createBaseEach(baseForOwn);
|
||||
|
||||
module.exports = baseEach;
|
14
node_modules/lodash/_baseEachRight.js
generated
vendored
14
node_modules/lodash/_baseEachRight.js
generated
vendored
@ -1,14 +0,0 @@
|
||||
var baseForOwnRight = require('./_baseForOwnRight'),
|
||||
createBaseEach = require('./_createBaseEach');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forEachRight` without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array|Object} Returns `collection`.
|
||||
*/
|
||||
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
||||
|
||||
module.exports = baseEachRight;
|
21
node_modules/lodash/_baseEvery.js
generated
vendored
21
node_modules/lodash/_baseEvery.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
var baseEach = require('./_baseEach');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.every` without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`
|
||||
*/
|
||||
function baseEvery(collection, predicate) {
|
||||
var result = true;
|
||||
baseEach(collection, function(value, index, collection) {
|
||||
result = !!predicate(value, index, collection);
|
||||
return result;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseEvery;
|
32
node_modules/lodash/_baseExtremum.js
generated
vendored
32
node_modules/lodash/_baseExtremum.js
generated
vendored
@ -1,32 +0,0 @@
|
||||
var isSymbol = require('./isSymbol');
|
||||
|
||||
/**
|
||||
* The base implementation of methods like `_.max` and `_.min` which accepts a
|
||||
* `comparator` to determine the extremum value.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} iteratee The iteratee invoked per iteration.
|
||||
* @param {Function} comparator The comparator used to compare values.
|
||||
* @returns {*} Returns the extremum value.
|
||||
*/
|
||||
function baseExtremum(array, iteratee, comparator) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
|
||||
while (++index < length) {
|
||||
var value = array[index],
|
||||
current = iteratee(value);
|
||||
|
||||
if (current != null && (computed === undefined
|
||||
? (current === current && !isSymbol(current))
|
||||
: comparator(current, computed)
|
||||
)) {
|
||||
var computed = current,
|
||||
result = value;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseExtremum;
|
32
node_modules/lodash/_baseFill.js
generated
vendored
32
node_modules/lodash/_baseFill.js
generated
vendored
@ -1,32 +0,0 @@
|
||||
var toInteger = require('./toInteger'),
|
||||
toLength = require('./toLength');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.fill` without an iteratee call guard.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to fill.
|
||||
* @param {*} value The value to fill `array` with.
|
||||
* @param {number} [start=0] The start position.
|
||||
* @param {number} [end=array.length] The end position.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function baseFill(array, value, start, end) {
|
||||
var length = array.length;
|
||||
|
||||
start = toInteger(start);
|
||||
if (start < 0) {
|
||||
start = -start > length ? 0 : (length + start);
|
||||
}
|
||||
end = (end === undefined || end > length) ? length : toInteger(end);
|
||||
if (end < 0) {
|
||||
end += length;
|
||||
}
|
||||
end = start > end ? 0 : toLength(end);
|
||||
while (start < end) {
|
||||
array[start++] = value;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = baseFill;
|
21
node_modules/lodash/_baseFilter.js
generated
vendored
21
node_modules/lodash/_baseFilter.js
generated
vendored
@ -1,21 +0,0 @@
|
||||
var baseEach = require('./_baseEach');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.filter` without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns the new filtered array.
|
||||
*/
|
||||
function baseFilter(collection, predicate) {
|
||||
var result = [];
|
||||
baseEach(collection, function(value, index, collection) {
|
||||
if (predicate(value, index, collection)) {
|
||||
result.push(value);
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseFilter;
|
24
node_modules/lodash/_baseFindIndex.js
generated
vendored
24
node_modules/lodash/_baseFindIndex.js
generated
vendored
@ -1,24 +0,0 @@
|
||||
/**
|
||||
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
||||
* support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @param {number} fromIndex The index to search from.
|
||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
*/
|
||||
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
||||
var length = array.length,
|
||||
index = fromIndex + (fromRight ? 1 : -1);
|
||||
|
||||
while ((fromRight ? index-- : ++index < length)) {
|
||||
if (predicate(array[index], index, array)) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
module.exports = baseFindIndex;
|
23
node_modules/lodash/_baseFindKey.js
generated
vendored
23
node_modules/lodash/_baseFindKey.js
generated
vendored
@ -1,23 +0,0 @@
|
||||
/**
|
||||
* The base implementation of methods like `_.findKey` and `_.findLastKey`,
|
||||
* without support for iteratee shorthands, which iterates over `collection`
|
||||
* using `eachFunc`.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to inspect.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @param {Function} eachFunc The function to iterate over `collection`.
|
||||
* @returns {*} Returns the found element or its key, else `undefined`.
|
||||
*/
|
||||
function baseFindKey(collection, predicate, eachFunc) {
|
||||
var result;
|
||||
eachFunc(collection, function(value, key, collection) {
|
||||
if (predicate(value, key, collection)) {
|
||||
result = key;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseFindKey;
|
38
node_modules/lodash/_baseFlatten.js
generated
vendored
38
node_modules/lodash/_baseFlatten.js
generated
vendored
@ -1,38 +0,0 @@
|
||||
var arrayPush = require('./_arrayPush'),
|
||||
isFlattenable = require('./_isFlattenable');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.flatten` with support for restricting flattening.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to flatten.
|
||||
* @param {number} depth The maximum recursion depth.
|
||||
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
|
||||
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
|
||||
* @param {Array} [result=[]] The initial result value.
|
||||
* @returns {Array} Returns the new flattened array.
|
||||
*/
|
||||
function baseFlatten(array, depth, predicate, isStrict, result) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
|
||||
predicate || (predicate = isFlattenable);
|
||||
result || (result = []);
|
||||
|
||||
while (++index < length) {
|
||||
var value = array[index];
|
||||
if (depth > 0 && predicate(value)) {
|
||||
if (depth > 1) {
|
||||
// Recursively flatten arrays (susceptible to call stack limits).
|
||||
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
||||
} else {
|
||||
arrayPush(result, value);
|
||||
}
|
||||
} else if (!isStrict) {
|
||||
result[result.length] = value;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseFlatten;
|
16
node_modules/lodash/_baseFor.js
generated
vendored
16
node_modules/lodash/_baseFor.js
generated
vendored
@ -1,16 +0,0 @@
|
||||
var createBaseFor = require('./_createBaseFor');
|
||||
|
||||
/**
|
||||
* The base implementation of `baseForOwn` which iterates over `object`
|
||||
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
||||
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {Function} keysFunc The function to get the keys of `object`.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
var baseFor = createBaseFor();
|
||||
|
||||
module.exports = baseFor;
|
16
node_modules/lodash/_baseForOwn.js
generated
vendored
16
node_modules/lodash/_baseForOwn.js
generated
vendored
@ -1,16 +0,0 @@
|
||||
var baseFor = require('./_baseFor'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function baseForOwn(object, iteratee) {
|
||||
return object && baseFor(object, iteratee, keys);
|
||||
}
|
||||
|
||||
module.exports = baseForOwn;
|
16
node_modules/lodash/_baseForOwnRight.js
generated
vendored
16
node_modules/lodash/_baseForOwnRight.js
generated
vendored
@ -1,16 +0,0 @@
|
||||
var baseForRight = require('./_baseForRight'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forOwnRight` without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function baseForOwnRight(object, iteratee) {
|
||||
return object && baseForRight(object, iteratee, keys);
|
||||
}
|
||||
|
||||
module.exports = baseForOwnRight;
|
15
node_modules/lodash/_baseForRight.js
generated
vendored
15
node_modules/lodash/_baseForRight.js
generated
vendored
@ -1,15 +0,0 @@
|
||||
var createBaseFor = require('./_createBaseFor');
|
||||
|
||||
/**
|
||||
* This function is like `baseFor` except that it iterates over properties
|
||||
* in the opposite order.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {Function} keysFunc The function to get the keys of `object`.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
var baseForRight = createBaseFor(true);
|
||||
|
||||
module.exports = baseForRight;
|
19
node_modules/lodash/_baseFunctions.js
generated
vendored
19
node_modules/lodash/_baseFunctions.js
generated
vendored
@ -1,19 +0,0 @@
|
||||
var arrayFilter = require('./_arrayFilter'),
|
||||
isFunction = require('./isFunction');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.functions` which creates an array of
|
||||
* `object` function property names filtered from `props`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to inspect.
|
||||
* @param {Array} props The property names to filter.
|
||||
* @returns {Array} Returns the function names.
|
||||
*/
|
||||
function baseFunctions(object, props) {
|
||||
return arrayFilter(props, function(key) {
|
||||
return isFunction(object[key]);
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = baseFunctions;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user