hyunjong

alright

Showing 1000 changed files with 3199 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="dataSourceStorageLocal">
4 + <data-source name="YTMT@nomock.com" uuid="01265fc0-37d6-481f-ac14-42262cda0ac3">
5 + <database-info product="MySQL" version="5.7.20-0ubuntu0.16.04.1" jdbc-version="4.0" driver-name="MySQL Connector Java" driver-version="mysql-connector-java-5.1.44 ( Revision: b3cda4f864902ffdde495b9df93937c3e20009be )">
6 + <extra-name-characters>#@</extra-name-characters>
7 + <identifier-quote-string>`</identifier-quote-string>
8 + </database-info>
9 + <case-sensitivity plain-identifiers="exact" quoted-identifiers="exact" />
10 + <secret-storage>master_key</secret-storage>
11 + <user-name>ytmt</user-name>
12 + <introspection-schemas>*:YTMT</introspection-schemas>
13 + </data-source>
14 + </component>
15 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
4 + <data-source source="LOCAL" name="YTMT@nomock.com" uuid="01265fc0-37d6-481f-ac14-42262cda0ac3">
5 + <driver-ref>mysql</driver-ref>
6 + <synchronize>true</synchronize>
7 + <jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
8 + <jdbc-url>jdbc:mysql://nomock.com:3306/YTMT</jdbc-url>
9 + <driver-properties>
10 + <property name="autoReconnect" value="true" />
11 + <property name="zeroDateTimeBehavior" value="convertToNull" />
12 + <property name="tinyInt1isBit" value="false" />
13 + <property name="characterEncoding" value="utf8" />
14 + <property name="characterSetResults" value="utf8" />
15 + <property name="yearIsDateType" value="false" />
16 + </driver-properties>
17 + </data-source>
18 + </component>
19 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<dataSource name="YTMT@nomock.com">
3 + <database-model serializer="dbm" rdbms="MYSQL" format-version="4.4">
4 + <root id="1"/>
5 + <schema id="2" parent="1" name="YTMT">
6 + <Current>1</Current>
7 + <Visible>1</Visible>
8 + </schema>
9 + <schema id="3" parent="1" name="information_schema"/>
10 + <table id="4" parent="2" name="toon"/>
11 + <table id="5" parent="2" name="user"/>
12 + <table id="6" parent="2" name="user_toon_relation"/>
13 + <column id="7" parent="4" name="toon_index">
14 + <Position>1</Position>
15 + <DataType>int(11)|0</DataType>
16 + <NotNull>1</NotNull>
17 + </column>
18 + <column id="8" parent="4" name="name">
19 + <Position>2</Position>
20 + <DataType>text|0</DataType>
21 + <NotNull>1</NotNull>
22 + </column>
23 + <column id="9" parent="4" name="thum_link">
24 + <Position>3</Position>
25 + <DataType>text|0</DataType>
26 + <NotNull>1</NotNull>
27 + </column>
28 + <column id="10" parent="4" name="webtoon_link">
29 + <Position>4</Position>
30 + <DataType>text|0</DataType>
31 + <NotNull>1</NotNull>
32 + </column>
33 + <column id="11" parent="4" name="week">
34 + <Position>5</Position>
35 + <DataType>text|0</DataType>
36 + <NotNull>1</NotNull>
37 + </column>
38 + <column id="12" parent="4" name="latest">
39 + <Position>6</Position>
40 + <DataType>int(11)|0</DataType>
41 + <NotNull>1</NotNull>
42 + <DefaultExpression>&apos;0&apos;</DefaultExpression>
43 + </column>
44 + <key id="13" parent="4" name="PRIMARY">
45 + <NameSurrogate>1</NameSurrogate>
46 + <ColNames>toon_index</ColNames>
47 + <Primary>1</Primary>
48 + </key>
49 + <column id="14" parent="5" name="id">
50 + <Position>1</Position>
51 + <DataType>bigint(20)|0</DataType>
52 + <NotNull>1</NotNull>
53 + </column>
54 + <key id="15" parent="5" name="PRIMARY">
55 + <NameSurrogate>1</NameSurrogate>
56 + <ColNames>id</ColNames>
57 + <Primary>1</Primary>
58 + </key>
59 + <column id="16" parent="6" name="user_id">
60 + <Position>1</Position>
61 + <DataType>bigint(20)|0</DataType>
62 + <NotNull>1</NotNull>
63 + </column>
64 + <column id="17" parent="6" name="toon_index">
65 + <Position>2</Position>
66 + <DataType>int(11)|0</DataType>
67 + <NotNull>1</NotNull>
68 + </column>
69 + <column id="18" parent="6" name="last">
70 + <Position>3</Position>
71 + <DataType>int(11)|0</DataType>
72 + <NotNull>1</NotNull>
73 + <DefaultExpression>&apos;0&apos;</DefaultExpression>
74 + </column>
75 + <index id="19" parent="6" name="toon_index">
76 + <ColNames>toon_index</ColNames>
77 + </index>
78 + <index id="20" parent="6" name="user_id">
79 + <ColNames>user_id</ColNames>
80 + </index>
81 + <foreign-key id="21" parent="6" name="user_toon_relation_ibfk_1">
82 + <ColNames>user_id</ColNames>
83 + <RefSchemaName>YTMT</RefSchemaName>
84 + <RefTableName>user</RefTableName>
85 + <RefColNames>id</RefColNames>
86 + </foreign-key>
87 + <foreign-key id="22" parent="6" name="user_toon_relation_ibfk_2">
88 + <ColNames>toon_index</ColNames>
89 + <RefSchemaName>YTMT</RefSchemaName>
90 + <RefTableName>toon</RefTableName>
91 + <RefColNames>toon_index</RefColNames>
92 + </foreign-key>
93 + </database-model>
94 +</dataSource>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="JavaScriptLibraryMappings">
4 + <includedPredefinedLibrary name="Node.js Core" />
5 + </component>
6 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="ProjectRootManager">
4 + <output url="file://$PROJECT_DIR$/out" />
5 + </component>
6 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="ProjectModuleManager">
4 + <modules>
5 + <module fileurl="file://$PROJECT_DIR$/YTMT.iml" filepath="$PROJECT_DIR$/YTMT.iml" />
6 + </modules>
7 + </component>
8 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="ProjectRunConfigurationManager">
2 + <configuration default="false" name="bin/www" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" path-to-js-file="bin/www" working-dir="$PROJECT_DIR$">
3 + <envs>
4 + <env name="DEBUG" value="YTMT:*" />
5 + </envs>
6 + <browser url="http://localhost:3000/" />
7 + <EXTENSION ID="com.jetbrains.nodejs.run.NodeJSStartBrowserRunConfigurationExtension">
8 + <browser url="http://localhost:3000/" />
9 + </EXTENSION>
10 + <method />
11 + </configuration>
12 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="VcsDirectoryMappings">
4 + <mapping directory="$PROJECT_DIR$" vcs="Git" />
5 + <mapping directory="$PROJECT_DIR$/YTMT" vcs="Git" />
6 + </component>
7 +</project>
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.
1 +dd
...\ No newline at end of file ...\ No newline at end of file
1 +니툰내툰 URL : http://52.79.239.80:3000
2 +
3 +2013100924 이현종
4 +2018102151 Abdullaev Akhidjon
5 +
6 +1. 네이버, 구글 로그인을 추가하였습니다.
7 +
8 +2. 레진 코믹스 웹툰을 추가하였습니다.
9 +
10 +3. 코드의 생산성을 증가시켰습니다.
11 +(코드의 중복과 필요없는 부분을 삭제함, 주석을 달음)
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<module type="WEB_MODULE" version="4">
3 + <component name="NewModuleRootManager" inherit-compiler-output="true">
4 + <exclude-output />
5 + <content url="file://$MODULE_DIR$" />
6 + <orderEntry type="sourceFolder" forTests="false" />
7 + </component>
8 +</module>
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 +bin - 이 폴더 안에는 www.js 파일이 잇으며 www.js는 http 서버를 구동시키는 로직이 들어있다.
3 +
4 +node_modules - 모듈들이 설치되는 공간
5 +
6 +public - http 서버의 root 폴더고 stylesheets나 images 같은 데이터를 저장할 때 사용한다.
7 +
8 +routes - 라우팅을 해주는 역할, 주소를 입력했을 때 어디로 연결해 줄지 결정해주는 javaScript 파일들을 모아놓는 곳입니다.
9 +
10 +views - 웹 브라우져에 보여질 디자인을 작성하는 곳이다
11 +*/
12 +
13 +// http웹 서버 구조를 쉽게 만들 수 있도록 도와주는 프레임워크
14 +var express = require('express');
15 +var session = require('express-session');
16 +
17 +// 폴더와 파일의 경로를 쉽게 조작하도록 도와주는 모듈, https://horajjan.blog.me/221337515650
18 +var path = require('path');
19 +
20 +// favorites icon의 약자로 웹페이지나 웹사이트를 대표하는 아이콘
21 +var favicon = require('serve-favicon');
22 +
23 +// 웹 요청에 대해 로그를 출력하는 미들웨어, 외부 모듈이기 때문에 별도로 설치해서 사용
24 +var logger = require('morgan');
25 +
26 +// 쿠키를 제어하는 모듈
27 +var cookieParser = require('cookie-parser');
28 +
29 +// post 요청 데이터를 추출하는 미들웨어
30 +var bodyParser = require('body-parser');
31 +
32 +// mysql과 연동을 위한 모듈
33 +var mysql = require('mysql');
34 +
35 +// JQuery를 서버사이드에 맞게 수정한 것
36 +var cheerio = require('cheerio');
37 +
38 +// 웹페이지 크롤링과 파씽을 위한 HTTP 클라이언트 라이브러리
39 +var request = require('request');
40 +
41 +// 로그인, 인증관련 미들웨어
42 +var passport = require('passport');
43 +
44 +var index = require('./routes/index');
45 +var users = require('./routes/users');
46 +var mytoons = require('./routes/mytoons');
47 +var yourtoons =require('./routes/yourtoons');
48 +var setting = require('./routes/setting');
49 +
50 +// 최초 로그인 성공시 (Strategy 성공시) 단 한번만 호출
51 +passport.serializeUser(function(user, done) {
52 + console.log('serialized');
53 + done(null, user);
54 +});
55 +
56 +// 페이지 리로드마다 (서버로 들어오는 requset) 로그인한 사용자인지 조회
57 +passport.deserializeUser(function(user, done) {
58 + console.log('deserialized');
59 + done(null, user);
60 +});
61 +
62 +var app = express();
63 +
64 +// view engine setup
65 +app.set('views', path.join(__dirname, 'views'));
66 +app.set('view engine', 'ejs');
67 +
68 +// uncomment after placing your favicon in /public
69 +// app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
70 +app.use(logger('dev'));
71 +app.use(bodyParser.json());
72 +app.use(bodyParser.urlencoded({ extended: false }));
73 +app.use(cookieParser());
74 +app.use(express.static(path.join(__dirname, 'public')));
75 +
76 +// mysql properties
77 +connection = mysql.createConnection({
78 + host : 'localhost',
79 + user : 'root',
80 + password : 'asd123',
81 + port : 3306,
82 + database : 'ytmt'
83 +});
84 +
85 +//
86 +app.use(session({
87 + secret: 'secrettexthere',
88 + saveUninitialized: true,
89 + resave: true
90 +}));
91 +
92 +//app.use(express.static('views'));
93 +app.use(passport.initialize());
94 +app.use(passport.session());
95 +app.use('/', index);
96 +app.use('/users', users);
97 +app.use('/mytoons', mytoons);
98 +app.use('/setting', setting);
99 +app.use('/yourtoons', yourtoons);
100 +app.use('/login', require('./routes/login')) // added new login page
101 +
102 +// catch 404 and forward to error handler, for wrong page
103 +app.use(function(req, res, next) {
104 + var err = new Error('Not Found');
105 + err.status = 404;
106 + next(err);
107 +});
108 +
109 +// error handler
110 +app.use(function(err, req, res, next) {
111 + // set locals, only providing error in development
112 + res.locals.message = err.message;
113 + res.locals.error = req.app.get('env') === 'development' ? err : {};
114 +
115 + // render the error page
116 + res.status(err.status || 500);
117 + res.render('error');
118 +});
119 +
120 +//
121 +var server = app.listen(3000);
122 +module.exports = app;
1 +#!/usr/bin/env node
2 +
3 +// www : http 서버를 구동시키는 logic
4 +
5 +/**
6 + * Module dependencies.
7 + */
8 +
9 +var app = require('../app');
10 +var debug = require('debug')('ytmt:server');
11 +var http = require('http');
12 +
13 +/**
14 + * Get port from environment and store in Express.
15 + */
16 +
17 +var port = normalizePort(process.env.PORT || '3000');
18 +app.set('port', port);
19 +
20 +/**
21 + * Create HTTP server.
22 + */
23 +
24 +var server = http.createServer(app);
25 +
26 +/**
27 + * Listen on provided port, on all network interfaces.
28 + */
29 +
30 +server.listen(port);
31 +server.on('error', onError);
32 +server.on('listening', onListening);
33 +
34 +/**
35 + * Normalize a port into a number, string, or false.
36 + */
37 +
38 +function normalizePort(val) {
39 + var port = parseInt(val, 10);
40 +
41 + if (isNaN(port)) {
42 + // named pipe
43 + return val;
44 + }
45 +
46 + if (port >= 0) {
47 + // port number
48 + return port;
49 + }
50 +
51 + return false;
52 +}
53 +
54 +/**
55 + * Event listener for HTTP server "error" event.
56 + */
57 +
58 +function onError(error) {
59 + if (error.syscall !== 'listen') {
60 + throw error;
61 + }
62 +
63 + var bind = typeof port === 'string'
64 + ? 'Pipe ' + port
65 + : 'Port ' + port;
66 +
67 + // handle specific listen errors with friendly messages
68 + switch (error.code) {
69 + case 'EACCES':
70 + console.error(bind + ' requires elevated privileges');
71 + process.exit(1);
72 + break;
73 + case 'EADDRINUSE':
74 + console.error(bind + ' is already in use');
75 + process.exit(1);
76 + break;
77 + default:
78 + throw error;
79 + }
80 +}
81 +
82 +/**
83 + * Event listener for HTTP server "listening" event.
84 + */
85 +
86 +function onListening() {
87 + var addr = server.address();
88 + var bind = typeof addr === 'string'
89 + ? 'pipe ' + addr
90 + : 'port ' + addr.port;
91 + debug('Listening on ' + bind);
92 +}
File mode changed
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../acorn/bin/acorn" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../acorn/bin/acorn" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\acorn\bin\acorn" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\acorn\bin\acorn" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/python" ]; then
9 + "$basedir/python" "$basedir/../casperjs/bin/casperjs" "$@"
10 + ret=$?
11 +else
12 + python "$basedir/../casperjs/bin/casperjs" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\python.exe" (
2 + "%~dp0\python.exe" "%~dp0\..\casperjs\bin\casperjs" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + python "%~dp0\..\casperjs\bin\casperjs" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../escodegen/bin/escodegen.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../escodegen/bin/escodegen.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\escodegen\bin\escodegen.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\escodegen\bin\escodegen.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../escodegen/bin/esgenerate.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../escodegen/bin/esgenerate.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\escodegen\bin\esgenerate.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\escodegen\bin\esgenerate.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../esprima/bin/esparse.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../esprima/bin/esparse.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\esprima\bin\esparse.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\esprima\bin\esparse.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../esprima/bin/esvalidate.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../esprima/bin/esvalidate.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\esprima\bin\esvalidate.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\esprima\bin\esvalidate.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../extract-zip/cli.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../extract-zip/cli.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\extract-zip\cli.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\extract-zip\cli.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../handlebars/bin/handlebars" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../handlebars/bin/handlebars" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\handlebars\bin\handlebars" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\handlebars\bin\handlebars" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../har-validator/bin/har-validator" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../har-validator/bin/har-validator" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\har-validator\bin\har-validator" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\har-validator\bin\har-validator" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../he/bin/he" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../he/bin/he" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\he\bin\he" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\he\bin\he" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\js-yaml\bin\js-yaml.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\js-yaml\bin\js-yaml.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../mime/cli.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../mime/cli.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\mime\cli.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\mime\cli.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../mkdirp/bin/cmd.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\mkdirp\bin\cmd.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\mkdirp\bin\cmd.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../phantomjs/bin/phantomjs" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../phantomjs/bin/phantomjs" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\phantomjs\bin\phantomjs" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\phantomjs\bin\phantomjs" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../prettyjson/bin/prettyjson" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../prettyjson/bin/prettyjson" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\prettyjson\bin\prettyjson" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\prettyjson\bin\prettyjson" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../rimraf/bin.js" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../rimraf/bin.js" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\rimraf\bin.js" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\rimraf\bin.js" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../semver/bin/semver" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../semver/bin/semver" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\semver\bin\semver" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../sshpk/bin/sshpk-conv" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../sshpk/bin/sshpk-conv" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\sshpk\bin\sshpk-conv" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\sshpk\bin\sshpk-conv" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../sshpk/bin/sshpk-sign" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../sshpk/bin/sshpk-sign" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\sshpk\bin\sshpk-sign" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\sshpk\bin\sshpk-sign" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../sshpk/bin/sshpk-verify" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../sshpk/bin/sshpk-verify" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\sshpk\bin\sshpk-verify" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\sshpk\bin\sshpk-verify" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../uglify-js/bin/uglifyjs" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../uglify-js/bin/uglifyjs" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\uglify-js\bin\uglifyjs" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\uglify-js\bin\uglifyjs" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../node-uuid/bin/uuid" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../node-uuid/bin/uuid" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\node-uuid\bin\uuid" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\node-uuid\bin\uuid" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + "$basedir/node" "$basedir/../which/bin/which" "$@"
10 + ret=$?
11 +else
12 + node "$basedir/../which/bin/which" "$@"
13 + ret=$?
14 +fi
15 +exit $ret
1 +@IF EXIST "%~dp0\node.exe" (
2 + "%~dp0\node.exe" "%~dp0\..\which\bin\which" %*
3 +) ELSE (
4 + @SETLOCAL
5 + @SET PATHEXT=%PATHEXT:;.JS;=;%
6 + node "%~dp0\..\which\bin\which" %*
7 +)
...\ No newline at end of file ...\ No newline at end of file
1 + MIT License
2 +
3 + Copyright (c) Microsoft Corporation. All rights reserved.
4 +
5 + Permission is hereby granted, free of charge, to any person obtaining a copy
6 + of this software and associated documentation files (the "Software"), to deal
7 + in the Software without restriction, including without limitation the rights
8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 + copies of the Software, and to permit persons to whom the Software is
10 + furnished to do so, subject to the following conditions:
11 +
12 + The above copyright notice and this permission notice shall be included in all
13 + copies or substantial portions of the Software.
14 +
15 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 + SOFTWARE
1 +# Installation
2 +> `npm install --save @types/cheerio`
3 +
4 +# Summary
5 +This package contains type definitions for Cheerio (https://github.com/cheeriojs/cheerio).
6 +
7 +# Details
8 +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cheerio
9 +
10 +Additional Details
11 + * Last updated: Mon, 26 Nov 2018 15:56:46 GMT
12 + * Dependencies: none
13 + * Global values: cheerio
14 +
15 +# Credits
16 +These definitions were written by Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>, Umar Nizamani <https://github.com/umarniz>, LiJinyao <https://github.com/LiJinyao>, Chennakrishna <https://github.com/chennakrishna8>, AzSiAz <https://github.com/AzSiAz>.
1 +// Type definitions for Cheerio v0.22.0
2 +// Project: https://github.com/cheeriojs/cheerio
3 +// Definitions by: Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>, Umar Nizamani <https://github.com/umarniz>, LiJinyao <https://github.com/LiJinyao>, Chennakrishna <https://github.com/chennakrishna8>, AzSiAz <https://github.com/AzSiAz>
4 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5 +
6 +interface Cheerio {
7 + // Document References
8 + // Cheerio https://github.com/cheeriojs/cheerio
9 + // JQuery http://api.jquery.com
10 +
11 + [index: number]: CheerioElement;
12 + length: number;
13 +
14 + // Attributes
15 +
16 + attr(): {[attr: string]: string};
17 + attr(name: string): string;
18 + attr(name: string, value: any): Cheerio;
19 +
20 + data(): any;
21 + data(name: string): any;
22 + data(name: string, value: any): any;
23 +
24 + val(): string;
25 + val(value: string): Cheerio;
26 +
27 + removeAttr(name: string): Cheerio;
28 +
29 + has(selector: string): Cheerio;
30 + has(element: CheerioElement): Cheerio;
31 +
32 + hasClass(className: string): boolean;
33 + addClass(classNames: string): Cheerio;
34 +
35 + removeClass(): Cheerio;
36 + removeClass(className: string): Cheerio;
37 + removeClass(func: (index: number, className: string) => string): Cheerio;
38 +
39 + toggleClass(className: string): Cheerio;
40 + toggleClass(className: string, toggleSwitch: boolean): Cheerio;
41 + toggleClass(toggleSwitch?: boolean): Cheerio;
42 + toggleClass(func: (index: number, className: string, toggleSwitch: boolean) => string, toggleSwitch?: boolean): Cheerio;
43 +
44 + is(selector: string): boolean;
45 + is(element: CheerioElement): boolean;
46 + is(element: CheerioElement[]): boolean;
47 + is(selection: Cheerio): boolean;
48 + is(func: (index: number, element: CheerioElement) => boolean): boolean;
49 +
50 + // Form
51 + serialize(): string;
52 + serializeArray(): {name: string, value: string}[];
53 +
54 + // Traversing
55 +
56 + find(selector: string): Cheerio;
57 + find(element: Cheerio): Cheerio;
58 +
59 + parent(selector?: string): Cheerio;
60 + parents(selector?: string): Cheerio;
61 + parentsUntil(selector?: string, filter?: string): Cheerio;
62 + parentsUntil(element: CheerioElement, filter?: string): Cheerio;
63 + parentsUntil(element: Cheerio, filter?: string): Cheerio;
64 +
65 + prop(name: string): any;
66 + prop(name: string, value: any): Cheerio;
67 +
68 + closest(): Cheerio;
69 + closest(selector: string): Cheerio;
70 +
71 + next(selector?: string): Cheerio;
72 + nextAll(): Cheerio;
73 + nextAll(selector: string): Cheerio;
74 +
75 + nextUntil(selector?: string, filter?: string): Cheerio;
76 + nextUntil(element: CheerioElement, filter?: string): Cheerio;
77 + nextUntil(element: Cheerio, filter?: string): Cheerio;
78 +
79 + prev(selector?: string): Cheerio;
80 + prevAll(): Cheerio;
81 + prevAll(selector: string): Cheerio;
82 +
83 + prevUntil(selector?: string, filter?: string): Cheerio;
84 + prevUntil(element: CheerioElement, filter?: string): Cheerio;
85 + prevUntil(element: Cheerio, filter?: string): Cheerio;
86 +
87 + slice(start: number, end?: number): Cheerio;
88 +
89 + siblings(selector?: string): Cheerio;
90 +
91 + children(selector?: string): Cheerio;
92 +
93 + contents(): Cheerio;
94 +
95 + each(func: (index: number, element: CheerioElement) => any): Cheerio;
96 + map(func: (index: number, element: CheerioElement) => any): Cheerio;
97 +
98 + filter(selector: string): Cheerio;
99 + filter(selection: Cheerio): Cheerio;
100 + filter(element: CheerioElement): Cheerio;
101 + filter(elements: CheerioElement[]): Cheerio;
102 + filter(func: (index: number, element: CheerioElement) => boolean): Cheerio;
103 +
104 + not(selector: string): Cheerio;
105 + not(selection: Cheerio): Cheerio;
106 + not(element: CheerioElement): Cheerio;
107 + not(func: (index: number, element: CheerioElement) => boolean): Cheerio;
108 +
109 + first(): Cheerio;
110 + last(): Cheerio;
111 +
112 + eq(index: number): Cheerio;
113 +
114 + get(): any[];
115 + get(index: number): any;
116 +
117 + index(): number;
118 + index(selector: string): number;
119 + index(selection: Cheerio): number;
120 +
121 + end(): Cheerio;
122 +
123 + add(selectorOrHtml: string): Cheerio;
124 + add(selector: string, context: Document): Cheerio;
125 + add(element: CheerioElement): Cheerio;
126 + add(elements: CheerioElement[]): Cheerio;
127 + add(selection: Cheerio): Cheerio;
128 +
129 + addBack():Cheerio;
130 + addBack(filter: string):Cheerio;
131 +
132 + // Manipulation
133 + appendTo(target: Cheerio) : Cheerio
134 + prependTo(target: Cheerio) : Cheerio
135 +
136 + append(content: string, ...contents: any[]): Cheerio;
137 + append(content: Document, ...contents: any[]): Cheerio;
138 + append(content: Document[], ...contents: any[]): Cheerio;
139 + append(content: Cheerio, ...contents: any[]): Cheerio;
140 +
141 + prepend(content: string, ...contents: any[]): Cheerio;
142 + prepend(content: Document, ...contents: any[]): Cheerio;
143 + prepend(content: Document[], ...contents: any[]): Cheerio;
144 + prepend(content: Cheerio, ...contents: any[]): Cheerio;
145 +
146 + after(content: string, ...contents: any[]): Cheerio;
147 + after(content: Document, ...contents: any[]): Cheerio;
148 + after(content: Document[], ...contents: any[]): Cheerio;
149 + after(content: Cheerio, ...contents: any[]): Cheerio;
150 +
151 + insertAfter(content: string): Cheerio;
152 + insertAfter(content: Document): Cheerio;
153 + insertAfter(content: Cheerio): Cheerio;
154 +
155 + before(content: string, ...contents: any[]): Cheerio;
156 + before(content: Document, ...contents: any[]): Cheerio;
157 + before(content: Document[], ...contents: any[]): Cheerio;
158 + before(content: Cheerio, ...contents: any[]): Cheerio;
159 +
160 + insertBefore(content: string): Cheerio;
161 + insertBefore(content: Document): Cheerio;
162 + insertBefore(content: Cheerio): Cheerio;
163 +
164 + remove(selector?: string): Cheerio;
165 +
166 + replaceWith(content: string): Cheerio;
167 + replaceWith(content: CheerioElement): Cheerio;
168 + replaceWith(content: CheerioElement[]): Cheerio;
169 + replaceWith(content: Cheerio): Cheerio;
170 + replaceWith(content: () => Cheerio): Cheerio;
171 +
172 + empty(): Cheerio;
173 +
174 + html(): string | null;
175 + html(html: string): Cheerio;
176 +
177 + text(): string;
178 + text(text: string): Cheerio;
179 +
180 + wrap(content: string): Cheerio;
181 + wrap(content: Document): Cheerio;
182 + wrap(content: Cheerio): Cheerio;
183 +
184 + css(propertyName: string): string;
185 + css(propertyNames: string[]): string[];
186 + css(propertyName: string, value: string): Cheerio;
187 + css(propertyName: string, value: number): Cheerio;
188 + css(propertyName: string, func: (index: number, value: string) => string): Cheerio;
189 + css(propertyName: string, func: (index: number, value: string) => number): Cheerio;
190 + css(properties: Object): Cheerio;
191 +
192 + // Rendering
193 +
194 + // Miscellaneous
195 +
196 + clone(): Cheerio;
197 +
198 + // Not Documented
199 +
200 + toArray(): CheerioElement[];
201 +}
202 +
203 +interface CheerioOptionsInterface {
204 + // Document References
205 + // Cheerio https://github.com/cheeriojs/cheerio
206 + // HTMLParser2 https://github.com/fb55/htmlparser2/wiki/Parser-options
207 + // DomHandler https://github.com/fb55/DomHandler
208 +
209 + xmlMode?: boolean;
210 + decodeEntities?: boolean;
211 + lowerCaseTags?: boolean;
212 + lowerCaseAttributeNames?: boolean;
213 + recognizeCDATA?: boolean;
214 + recognizeSelfClosing?: boolean;
215 + normalizeWhitespace?: boolean;
216 + ignoreWhitespace?: boolean;
217 +}
218 +
219 +interface CheerioSelector {
220 + (selector: string): Cheerio;
221 + (selector: string, context: string): Cheerio;
222 + (selector: string, context: CheerioElement): Cheerio;
223 + (selector: string, context: CheerioElement[]): Cheerio;
224 + (selector: string, context: Cheerio): Cheerio;
225 + (selector: string, context: string, root: string): Cheerio;
226 + (selector: string, context: CheerioElement, root: string): Cheerio;
227 + (selector: string, context: CheerioElement[], root: string): Cheerio;
228 + (selector: string, context: Cheerio, root: string): Cheerio;
229 + (selector: any): Cheerio;
230 +}
231 +
232 +interface CheerioStatic extends CheerioSelector {
233 + // Document References
234 + // Cheerio https://github.com/cheeriojs/cheerio
235 + // JQuery http://api.jquery.com
236 + xml(): string;
237 + root(): Cheerio;
238 + contains(container: CheerioElement, contained: CheerioElement): boolean;
239 + parseHTML(data: string, context?: Document, keepScripts?: boolean): Document[];
240 +
241 + html(options?: CheerioOptionsInterface): string;
242 + html(selector: string, options?: CheerioOptionsInterface): string;
243 + html(element: Cheerio, options?: CheerioOptionsInterface): string;
244 + html(element: CheerioElement, options?: CheerioOptionsInterface): string;
245 +}
246 +
247 +interface CheerioElement {
248 + // Document References
249 + // Node Console
250 + tagName: string;
251 + type: string;
252 + name: string;
253 + attribs: {[attr: string]: string};
254 + children: CheerioElement[];
255 + childNodes: CheerioElement[];
256 + lastChild: CheerioElement;
257 + firstChild: CheerioElement;
258 + next: CheerioElement;
259 + nextSibling: CheerioElement;
260 + prev: CheerioElement;
261 + previousSibling: CheerioElement;
262 + parent: CheerioElement;
263 + parentNode: CheerioElement;
264 + nodeValue: string;
265 + data?: string;
266 +}
267 +
268 +interface CheerioAPI extends CheerioSelector, CheerioStatic {
269 + load(html: string, options?: CheerioOptionsInterface): CheerioStatic;
270 + load(element: CheerioElement, options?: CheerioOptionsInterface): CheerioStatic;
271 +}
272 +
273 +interface Document { }
274 +
275 +declare var cheerio:CheerioAPI;
276 +
277 +declare module "cheerio" {
278 + export = cheerio;
279 +}
1 +{
2 + "_from": "@types/cheerio@^0.22.7",
3 + "_id": "@types/cheerio@0.22.10",
4 + "_inBundle": false,
5 + "_integrity": "sha512-fOM/Jhv51iyugY7KOBZz2ThfT1gwvsGCfWxpLpZDgkGjpEO4Le9cld07OdskikLjDUQJ43dzDaVRSFwQlpdqVg==",
6 + "_location": "/@types/cheerio",
7 + "_phantomChildren": {},
8 + "_requested": {
9 + "type": "range",
10 + "registry": true,
11 + "raw": "@types/cheerio@^0.22.7",
12 + "name": "@types/cheerio",
13 + "escapedName": "@types%2fcheerio",
14 + "scope": "@types",
15 + "rawSpec": "^0.22.7",
16 + "saveSpec": null,
17 + "fetchSpec": "^0.22.7"
18 + },
19 + "_requiredBy": [
20 + "/cheerio-httpcli"
21 + ],
22 + "_resolved": "https://registry.npmjs.org/@types/cheerio/-/cheerio-0.22.10.tgz",
23 + "_shasum": "780d552467824be4a241b29510a7873a7432c4a6",
24 + "_spec": "@types/cheerio@^0.22.7",
25 + "_where": "D:\\OSS project\\YTMT\\node_modules\\cheerio-httpcli",
26 + "bugs": {
27 + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
28 + },
29 + "bundleDependencies": false,
30 + "contributors": [
31 + {
32 + "name": "Bret Little",
33 + "url": "https://github.com/blittle"
34 + },
35 + {
36 + "name": "VILIC VANE",
37 + "url": "http://vilic.info"
38 + },
39 + {
40 + "name": "Wayne Maurer",
41 + "url": "https://github.com/wmaurer"
42 + },
43 + {
44 + "name": "Umar Nizamani",
45 + "url": "https://github.com/umarniz"
46 + },
47 + {
48 + "name": "LiJinyao",
49 + "url": "https://github.com/LiJinyao"
50 + },
51 + {
52 + "name": "Chennakrishna",
53 + "url": "https://github.com/chennakrishna8"
54 + },
55 + {
56 + "name": "AzSiAz",
57 + "url": "https://github.com/AzSiAz"
58 + }
59 + ],
60 + "dependencies": {},
61 + "deprecated": false,
62 + "description": "TypeScript definitions for Cheerio",
63 + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
64 + "license": "MIT",
65 + "main": "",
66 + "name": "@types/cheerio",
67 + "repository": {
68 + "type": "git",
69 + "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git"
70 + },
71 + "scripts": {},
72 + "typeScriptVersion": "2.0",
73 + "types": "index",
74 + "typesPublisherContentHash": "2e27eac8c695bdef169dcf5482e7a17f84ae485381d5de916cdddaedbd3787be",
75 + "version": "0.22.10"
76 +}
1 + MIT License
2 +
3 + Copyright (c) Microsoft Corporation. All rights reserved.
4 +
5 + Permission is hereby granted, free of charge, to any person obtaining a copy
6 + of this software and associated documentation files (the "Software"), to deal
7 + in the Software without restriction, including without limitation the rights
8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 + copies of the Software, and to permit persons to whom the Software is
10 + furnished to do so, subject to the following conditions:
11 +
12 + The above copyright notice and this permission notice shall be included in all
13 + copies or substantial portions of the Software.
14 +
15 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 + SOFTWARE
1 +# Installation
2 +> `npm install --save @types/node`
3 +
4 +# Summary
5 +This package contains type definitions for Node.js (http://nodejs.org/).
6 +
7 +# Details
8 +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
9 +
10 +Additional Details
11 + * Last updated: Thu, 15 Nov 2018 02:07:00 GMT
12 + * Dependencies: none
13 + * Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14 +
15 +# Credits
16 +These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Alberto Schiabel <https://github.com/jkomyno>, Alexander T. <https://github.com/a-tarasyuk>, Alvis HT Tang <https://github.com/alvis>, Andrew Makarov <https://github.com/r3nya>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, Deividas Bakanas <https://github.com/DeividasBakanas>, Eugene Y. Q. Shen <https://github.com/eyqs>, Flarna <https://github.com/Flarna>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Huw <https://github.com/hoo29>, Kelvin Jin <https://github.com/kjin>, Klaus Meinhardt <https://github.com/ajafff>, Lishude <https://github.com/islishude>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, Matthieu Sieben <https://github.com/matthieusieben>, Mohsen Azimi <https://github.com/mohsen1>, Nicolas Even <https://github.com/n-e>, Nicolas Voigt <https://github.com/octo-sniffle>, Parambir Singh <https://github.com/parambirs>, Sebastian Silbermann <https://github.com/eps1lon>, Simon Schick <https://github.com/SimonSchick>, Thomas den Hollander <https://github.com/ThomasdenH>, Wilco Bakker <https://github.com/WilcoBakker>, wwwy3y3 <https://github.com/wwwy3y3>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Jeremie Rodriguez <https://github.com/jeremiergz>, Samuel Ainsworth <https://github.com/samuela>.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 +{
2 + "_from": "@types/node@*",
3 + "_id": "@types/node@10.12.8",
4 + "_inBundle": false,
5 + "_integrity": "sha512-INamyRZG4rW3lDCUmwVd5Xho/bXvQm/v1yP8V0UN1RuInU7RoWoaO570b+yLX4Ia/0szsx1wa8VzcsVlsvbWLA==",
6 + "_location": "/@types/node",
7 + "_phantomChildren": {},
8 + "_requested": {
9 + "type": "range",
10 + "registry": true,
11 + "raw": "@types/node@*",
12 + "name": "@types/node",
13 + "escapedName": "@types%2fnode",
14 + "scope": "@types",
15 + "rawSpec": "*",
16 + "saveSpec": null,
17 + "fetchSpec": "*"
18 + },
19 + "_requiredBy": [
20 + "/parse5"
21 + ],
22 + "_resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.8.tgz",
23 + "_shasum": "d0a3ab5a6e61458c492304e2776ac136b81db927",
24 + "_spec": "@types/node@*",
25 + "_where": "D:\\OSS project\\YTMT\\node_modules\\parse5",
26 + "bugs": {
27 + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
28 + },
29 + "bundleDependencies": false,
30 + "contributors": [
31 + {
32 + "name": "Microsoft TypeScript",
33 + "url": "https://github.com/Microsoft"
34 + },
35 + {
36 + "name": "DefinitelyTyped",
37 + "url": "https://github.com/DefinitelyTyped"
38 + },
39 + {
40 + "name": "Alberto Schiabel",
41 + "url": "https://github.com/jkomyno"
42 + },
43 + {
44 + "name": "Alexander T.",
45 + "url": "https://github.com/a-tarasyuk"
46 + },
47 + {
48 + "name": "Alvis HT Tang",
49 + "url": "https://github.com/alvis"
50 + },
51 + {
52 + "name": "Andrew Makarov",
53 + "url": "https://github.com/r3nya"
54 + },
55 + {
56 + "name": "Bruno Scheufler",
57 + "url": "https://github.com/brunoscheufler"
58 + },
59 + {
60 + "name": "Chigozirim C.",
61 + "url": "https://github.com/smac89"
62 + },
63 + {
64 + "name": "Christian Vaagland Tellnes",
65 + "url": "https://github.com/tellnes"
66 + },
67 + {
68 + "name": "Deividas Bakanas",
69 + "url": "https://github.com/DeividasBakanas"
70 + },
71 + {
72 + "name": "Eugene Y. Q. Shen",
73 + "url": "https://github.com/eyqs"
74 + },
75 + {
76 + "name": "Flarna",
77 + "url": "https://github.com/Flarna"
78 + },
79 + {
80 + "name": "Hannes Magnusson",
81 + "url": "https://github.com/Hannes-Magnusson-CK"
82 + },
83 + {
84 + "name": "Hoàng Văn Khải",
85 + "url": "https://github.com/KSXGitHub"
86 + },
87 + {
88 + "name": "Huw",
89 + "url": "https://github.com/hoo29"
90 + },
91 + {
92 + "name": "Kelvin Jin",
93 + "url": "https://github.com/kjin"
94 + },
95 + {
96 + "name": "Klaus Meinhardt",
97 + "url": "https://github.com/ajafff"
98 + },
99 + {
100 + "name": "Lishude",
101 + "url": "https://github.com/islishude"
102 + },
103 + {
104 + "name": "Mariusz Wiktorczyk",
105 + "url": "https://github.com/mwiktorczyk"
106 + },
107 + {
108 + "name": "Matthieu Sieben",
109 + "url": "https://github.com/matthieusieben"
110 + },
111 + {
112 + "name": "Mohsen Azimi",
113 + "url": "https://github.com/mohsen1"
114 + },
115 + {
116 + "name": "Nicolas Even",
117 + "url": "https://github.com/n-e"
118 + },
119 + {
120 + "name": "Nicolas Voigt",
121 + "url": "https://github.com/octo-sniffle"
122 + },
123 + {
124 + "name": "Parambir Singh",
125 + "url": "https://github.com/parambirs"
126 + },
127 + {
128 + "name": "Sebastian Silbermann",
129 + "url": "https://github.com/eps1lon"
130 + },
131 + {
132 + "name": "Simon Schick",
133 + "url": "https://github.com/SimonSchick"
134 + },
135 + {
136 + "name": "Thomas den Hollander",
137 + "url": "https://github.com/ThomasdenH"
138 + },
139 + {
140 + "name": "Wilco Bakker",
141 + "url": "https://github.com/WilcoBakker"
142 + },
143 + {
144 + "name": "wwwy3y3",
145 + "url": "https://github.com/wwwy3y3"
146 + },
147 + {
148 + "name": "Zane Hannan AU",
149 + "url": "https://github.com/ZaneHannanAU"
150 + },
151 + {
152 + "name": "Jeremie Rodriguez",
153 + "url": "https://github.com/jeremiergz"
154 + },
155 + {
156 + "name": "Samuel Ainsworth",
157 + "url": "https://github.com/samuela"
158 + }
159 + ],
160 + "dependencies": {},
161 + "deprecated": false,
162 + "description": "TypeScript definitions for Node.js",
163 + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
164 + "license": "MIT",
165 + "main": "",
166 + "name": "@types/node",
167 + "repository": {
168 + "type": "git",
169 + "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git"
170 + },
171 + "scripts": {},
172 + "typeScriptVersion": "2.0",
173 + "types": "index",
174 + "typesPublisherContentHash": "d9693e62c376ab91f9d139db8414a465dcb42ed118732e242287a8b4f8e6edab",
175 + "version": "10.12.8"
176 +}
1 +## 1.0.4
2 +
3 +- Added license file
4 +
5 +## 1.0.3
6 +
7 +- Replaced `let` with `var` in `lib/btoa.js`
8 + - Follow up from `1.0.2`
9 + - Resolves https://github.com/jsdom/abab/issues/18
10 +
11 +## 1.0.2
12 +
13 +- Replaced `const` with `var` in `index.js`
14 + - Allows use of `abab` in the browser without a transpilation step
15 + - Resolves https://github.com/jsdom/abab/issues/15
1 +Both the original source code and new contributions in this repository are released under the [W3C 3-clause BSD license](https://github.com/w3c/web-platform-tests/blob/master/LICENSE.md#w3c-3-clause-bsd-license).
2 +
3 +# W3C 3-clause BSD License
4 +
5 +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6 +
7 +* Redistributions of works must retain the original copyright notice, this list of conditions and the following disclaimer.
8 +* Redistributions in binary form must reproduce the original copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9 +* Neither the name of the W3C nor the names of its contributors may be used to endorse or promote products derived from this work without specific prior written permission.
10 +
11 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1 +# abab
2 +
3 +[![npm version](https://badge.fury.io/js/abab.svg)](https://www.npmjs.com/package/abab) [![Build Status](https://travis-ci.org/jsdom/abab.svg?branch=master)](https://travis-ci.org/jsdom/abab)
4 +
5 +A module that implements `window.atob` and `window.btoa` according to the [WHATWG spec](https://html.spec.whatwg.org/multipage/webappapis.html#atob). The code is originally from [w3c/web-platform-tests](https://github.com/w3c/web-platform-tests/blob/master/html/webappapis/atob/base64.html).
6 +
7 +Compatibility: Node.js version 3+ and all major browsers (using browserify or webpack)
8 +
9 +Install with `npm`:
10 +
11 +```sh
12 +npm install abab
13 +```
14 +
15 +## API
16 +
17 +### `btoa` (base64 encode)
18 +
19 +```js
20 +const btoa = require('abab').btoa;
21 +btoa('Hello, world!'); // 'SGVsbG8sIHdvcmxkIQ=='
22 +```
23 +
24 +### `atob` (base64 decode)
25 +
26 +```js
27 +const atob = require('abab').atob;
28 +atob('SGVsbG8sIHdvcmxkIQ=='); // 'Hello, world!'
29 +```
30 +
31 +#### Valid characters
32 +
33 +[Per the spec](https://html.spec.whatwg.org/multipage/webappapis.html#atob:dom-windowbase64-btoa-3), `btoa` will accept strings "containing only characters in the range `U+0000` to `U+00FF`." If passed a string with characters above `U+00FF`, `btoa` will return `null`. If `atob` is passed a string that is not base64-valid, it will also return `null`. In both cases when `null` is returned, the spec calls for throwing a `DOMException` of type `InvalidCharacterError`.
34 +
35 +## Browsers
36 +
37 +If you want to include just one of the methods to save bytes in your client-side code, you can `require` the desired module directly.
38 +
39 +```js
40 +var atob = require('abab/lib/atob');
41 +var btoa = require('abab/lib/btoa');
42 +```
43 +
44 +-----
45 +
46 +### Checklists
47 +
48 +If you're **submitting a PR** or **deploying to npm**, please use the [checklists in CONTRIBUTING.md](https://github.com/jsdom/abab/blob/master/CONTRIBUTING.md#checklists)
49 +
50 +### Remembering `atob` vs. `btoa`
51 +
52 +Here's a mnemonic that might be useful: if you have a plain string and want to base64 encode it, then decode it, `btoa` is what you run before (**b**efore - **b**toa), and `atob` is what you run after (**a**fter - **a**tob).
1 +'use strict';
2 +
3 +var atob = require('./lib/atob');
4 +var btoa = require('./lib/btoa');
5 +
6 +module.exports = {
7 + atob: atob,
8 + btoa: btoa
9 +};
1 +'use strict';
2 +
3 +/**
4 + * Implementation of atob() according to the HTML spec, except that instead of
5 + * throwing INVALID_CHARACTER_ERR we return null.
6 + */
7 +function atob(input) {
8 + // WebIDL requires DOMStrings to just be converted using ECMAScript
9 + // ToString, which in our case amounts to calling String().
10 + input = String(input);
11 + // "Remove all space characters from input."
12 + input = input.replace(/[ \t\n\f\r]/g, '');
13 + // "If the length of input divides by 4 leaving no remainder, then: if
14 + // input ends with one or two U+003D EQUALS SIGN (=) characters, remove
15 + // them from input."
16 + if (input.length % 4 == 0 && /==?$/.test(input)) {
17 + input = input.replace(/==?$/, '');
18 + }
19 + // "If the length of input divides by 4 leaving a remainder of 1, throw an
20 + // INVALID_CHARACTER_ERR exception and abort these steps."
21 + //
22 + // "If input contains a character that is not in the following list of
23 + // characters and character ranges, throw an INVALID_CHARACTER_ERR
24 + // exception and abort these steps:
25 + //
26 + // U+002B PLUS SIGN (+)
27 + // U+002F SOLIDUS (/)
28 + // U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)
29 + // U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z
30 + // U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER Z"
31 + if (input.length % 4 == 1 || !/^[+/0-9A-Za-z]*$/.test(input)) {
32 + return null;
33 + }
34 + // "Let output be a string, initially empty."
35 + var output = '';
36 + // "Let buffer be a buffer that can have bits appended to it, initially
37 + // empty."
38 + //
39 + // We append bits via left-shift and or. accumulatedBits is used to track
40 + // when we've gotten to 24 bits.
41 + var buffer = 0;
42 + var accumulatedBits = 0;
43 + // "While position does not point past the end of input, run these
44 + // substeps:"
45 + for (var i = 0; i < input.length; i++) {
46 + // "Find the character pointed to by position in the first column of
47 + // the following table. Let n be the number given in the second cell of
48 + // the same row."
49 + //
50 + // "Append to buffer the six bits corresponding to number, most
51 + // significant bit first."
52 + //
53 + // atobLookup() implements the table from the spec.
54 + buffer <<= 6;
55 + buffer |= atobLookup(input[i]);
56 + // "If buffer has accumulated 24 bits, interpret them as three 8-bit
57 + // big-endian numbers. Append the three characters with code points
58 + // equal to those numbers to output, in the same order, and then empty
59 + // buffer."
60 + accumulatedBits += 6;
61 + if (accumulatedBits == 24) {
62 + output += String.fromCharCode((buffer & 0xff0000) >> 16);
63 + output += String.fromCharCode((buffer & 0xff00) >> 8);
64 + output += String.fromCharCode(buffer & 0xff);
65 + buffer = accumulatedBits = 0;
66 + }
67 + // "Advance position by one character."
68 + }
69 + // "If buffer is not empty, it contains either 12 or 18 bits. If it
70 + // contains 12 bits, discard the last four and interpret the remaining
71 + // eight as an 8-bit big-endian number. If it contains 18 bits, discard the
72 + // last two and interpret the remaining 16 as two 8-bit big-endian numbers.
73 + // Append the one or two characters with code points equal to those one or
74 + // two numbers to output, in the same order."
75 + if (accumulatedBits == 12) {
76 + buffer >>= 4;
77 + output += String.fromCharCode(buffer);
78 + } else if (accumulatedBits == 18) {
79 + buffer >>= 2;
80 + output += String.fromCharCode((buffer & 0xff00) >> 8);
81 + output += String.fromCharCode(buffer & 0xff);
82 + }
83 + // "Return output."
84 + return output;
85 +}
86 +/**
87 + * A lookup table for atob(), which converts an ASCII character to the
88 + * corresponding six-bit number.
89 + */
90 +function atobLookup(chr) {
91 + if (/[A-Z]/.test(chr)) {
92 + return chr.charCodeAt(0) - 'A'.charCodeAt(0);
93 + }
94 + if (/[a-z]/.test(chr)) {
95 + return chr.charCodeAt(0) - 'a'.charCodeAt(0) + 26;
96 + }
97 + if (/[0-9]/.test(chr)) {
98 + return chr.charCodeAt(0) - '0'.charCodeAt(0) + 52;
99 + }
100 + if (chr == '+') {
101 + return 62;
102 + }
103 + if (chr == '/') {
104 + return 63;
105 + }
106 + // Throw exception; should not be hit in tests
107 +}
108 +
109 +module.exports = atob;
1 +'use strict';
2 +
3 +/**
4 + * btoa() as defined by the HTML5 spec, which mostly just references RFC4648.
5 + */
6 +function btoa(s) {
7 + var i;
8 + // String conversion as required by WebIDL.
9 + s = String(s);
10 + // "The btoa() method must throw an INVALID_CHARACTER_ERR exception if the
11 + // method's first argument contains any character whose code point is
12 + // greater than U+00FF."
13 + for (i = 0; i < s.length; i++) {
14 + if (s.charCodeAt(i) > 255) {
15 + return null;
16 + }
17 + }
18 + var out = '';
19 + for (i = 0; i < s.length; i += 3) {
20 + var groupsOfSix = [undefined, undefined, undefined, undefined];
21 + groupsOfSix[0] = s.charCodeAt(i) >> 2;
22 + groupsOfSix[1] = (s.charCodeAt(i) & 0x03) << 4;
23 + if (s.length > i + 1) {
24 + groupsOfSix[1] |= s.charCodeAt(i + 1) >> 4;
25 + groupsOfSix[2] = (s.charCodeAt(i + 1) & 0x0f) << 2;
26 + }
27 + if (s.length > i + 2) {
28 + groupsOfSix[2] |= s.charCodeAt(i + 2) >> 6;
29 + groupsOfSix[3] = s.charCodeAt(i + 2) & 0x3f;
30 + }
31 + for (var j = 0; j < groupsOfSix.length; j++) {
32 + if (typeof groupsOfSix[j] == 'undefined') {
33 + out += '=';
34 + } else {
35 + out += btoaLookup(groupsOfSix[j]);
36 + }
37 + }
38 + }
39 + return out;
40 +}
41 +
42 +/**
43 + * Lookup table for btoa(), which converts a six-bit number into the
44 + * corresponding ASCII character.
45 + */
46 +function btoaLookup(idx) {
47 + if (idx < 26) {
48 + return String.fromCharCode(idx + 'A'.charCodeAt(0));
49 + }
50 + if (idx < 52) {
51 + return String.fromCharCode(idx - 26 + 'a'.charCodeAt(0));
52 + }
53 + if (idx < 62) {
54 + return String.fromCharCode(idx - 52 + '0'.charCodeAt(0));
55 + }
56 + if (idx == 62) {
57 + return '+';
58 + }
59 + if (idx == 63) {
60 + return '/';
61 + }
62 + // Throw INVALID_CHARACTER_ERR exception here -- won't be hit in the tests.
63 +}
64 +
65 +module.exports = btoa;
1 +{
2 + "_args": [
3 + [
4 + "abab@1.0.4",
5 + "C:\\Users\\LEEHYUNJONG\\Desktop\\오픈소스SW\\YTMT"
6 + ]
7 + ],
8 + "_from": "abab@1.0.4",
9 + "_id": "abab@1.0.4",
10 + "_inBundle": false,
11 + "_integrity": "sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=",
12 + "_location": "/abab",
13 + "_optional": true,
14 + "_phantomChildren": {},
15 + "_requested": {
16 + "type": "version",
17 + "registry": true,
18 + "raw": "abab@1.0.4",
19 + "name": "abab",
20 + "escapedName": "abab",
21 + "rawSpec": "1.0.4",
22 + "saveSpec": null,
23 + "fetchSpec": "1.0.4"
24 + },
25 + "_requiredBy": [
26 + "/jsdom"
27 + ],
28 + "_resolved": "https://registry.npmjs.org/abab/-/abab-1.0.4.tgz",
29 + "_spec": "1.0.4",
30 + "_where": "C:\\Users\\LEEHYUNJONG\\Desktop\\오픈소스SW\\YTMT",
31 + "author": {
32 + "name": "Jeff Carpenter",
33 + "email": "gcarpenterv@gmail.com"
34 + },
35 + "bugs": {
36 + "url": "https://github.com/jsdom/abab/issues"
37 + },
38 + "description": "WHATWG spec-compliant implementations of window.atob and window.btoa.",
39 + "devDependencies": {
40 + "babel-core": "^6.1.4",
41 + "babel-loader": "^6.1.0",
42 + "babel-preset-es2015": "^6.1.4",
43 + "eslint": "^1.3.1",
44 + "jscs": "^2.1.1",
45 + "karma": "^0.13.10",
46 + "karma-cli": "^0.1.1",
47 + "karma-firefox-launcher": "^0.1.6",
48 + "karma-mocha": "^0.2.0",
49 + "karma-sauce-launcher": "^0.2.14",
50 + "karma-webpack": "^1.7.0",
51 + "mocha": "^2.2.5",
52 + "webpack": "^1.12.2"
53 + },
54 + "files": [
55 + "index.js",
56 + "lib/"
57 + ],
58 + "homepage": "https://github.com/jsdom/abab#readme",
59 + "keywords": [
60 + "atob",
61 + "btoa",
62 + "browser"
63 + ],
64 + "license": "ISC",
65 + "main": "index.js",
66 + "name": "abab",
67 + "repository": {
68 + "type": "git",
69 + "url": "git+https://github.com/jsdom/abab.git"
70 + },
71 + "scripts": {
72 + "karma": "karma start",
73 + "lint": "jscs . && eslint .",
74 + "mocha": "mocha test/node",
75 + "test": "npm run lint && npm run mocha && npm run karma"
76 + },
77 + "version": "1.0.4"
78 +}
1 +1.3.5 / 2018-02-28
2 +==================
3 +
4 + * deps: mime-types@~2.1.18
5 + - deps: mime-db@~1.33.0
6 +
7 +1.3.4 / 2017-08-22
8 +==================
9 +
10 + * deps: mime-types@~2.1.16
11 + - deps: mime-db@~1.29.0
12 +
13 +1.3.3 / 2016-05-02
14 +==================
15 +
16 + * deps: mime-types@~2.1.11
17 + - deps: mime-db@~1.23.0
18 + * deps: negotiator@0.6.1
19 + - perf: improve `Accept` parsing speed
20 + - perf: improve `Accept-Charset` parsing speed
21 + - perf: improve `Accept-Encoding` parsing speed
22 + - perf: improve `Accept-Language` parsing speed
23 +
24 +1.3.2 / 2016-03-08
25 +==================
26 +
27 + * deps: mime-types@~2.1.10
28 + - Fix extension of `application/dash+xml`
29 + - Update primary extension for `audio/mp4`
30 + - deps: mime-db@~1.22.0
31 +
32 +1.3.1 / 2016-01-19
33 +==================
34 +
35 + * deps: mime-types@~2.1.9
36 + - deps: mime-db@~1.21.0
37 +
38 +1.3.0 / 2015-09-29
39 +==================
40 +
41 + * deps: mime-types@~2.1.7
42 + - deps: mime-db@~1.19.0
43 + * deps: negotiator@0.6.0
44 + - Fix including type extensions in parameters in `Accept` parsing
45 + - Fix parsing `Accept` parameters with quoted equals
46 + - Fix parsing `Accept` parameters with quoted semicolons
47 + - Lazy-load modules from main entry point
48 + - perf: delay type concatenation until needed
49 + - perf: enable strict mode
50 + - perf: hoist regular expressions
51 + - perf: remove closures getting spec properties
52 + - perf: remove a closure from media type parsing
53 + - perf: remove property delete from media type parsing
54 +
55 +1.2.13 / 2015-09-06
56 +===================
57 +
58 + * deps: mime-types@~2.1.6
59 + - deps: mime-db@~1.18.0
60 +
61 +1.2.12 / 2015-07-30
62 +===================
63 +
64 + * deps: mime-types@~2.1.4
65 + - deps: mime-db@~1.16.0
66 +
67 +1.2.11 / 2015-07-16
68 +===================
69 +
70 + * deps: mime-types@~2.1.3
71 + - deps: mime-db@~1.15.0
72 +
73 +1.2.10 / 2015-07-01
74 +===================
75 +
76 + * deps: mime-types@~2.1.2
77 + - deps: mime-db@~1.14.0
78 +
79 +1.2.9 / 2015-06-08
80 +==================
81 +
82 + * deps: mime-types@~2.1.1
83 + - perf: fix deopt during mapping
84 +
85 +1.2.8 / 2015-06-07
86 +==================
87 +
88 + * deps: mime-types@~2.1.0
89 + - deps: mime-db@~1.13.0
90 + * perf: avoid argument reassignment & argument slice
91 + * perf: avoid negotiator recursive construction
92 + * perf: enable strict mode
93 + * perf: remove unnecessary bitwise operator
94 +
95 +1.2.7 / 2015-05-10
96 +==================
97 +
98 + * deps: negotiator@0.5.3
99 + - Fix media type parameter matching to be case-insensitive
100 +
101 +1.2.6 / 2015-05-07
102 +==================
103 +
104 + * deps: mime-types@~2.0.11
105 + - deps: mime-db@~1.9.1
106 + * deps: negotiator@0.5.2
107 + - Fix comparing media types with quoted values
108 + - Fix splitting media types with quoted commas
109 +
110 +1.2.5 / 2015-03-13
111 +==================
112 +
113 + * deps: mime-types@~2.0.10
114 + - deps: mime-db@~1.8.0
115 +
116 +1.2.4 / 2015-02-14
117 +==================
118 +
119 + * Support Node.js 0.6
120 + * deps: mime-types@~2.0.9
121 + - deps: mime-db@~1.7.0
122 + * deps: negotiator@0.5.1
123 + - Fix preference sorting to be stable for long acceptable lists
124 +
125 +1.2.3 / 2015-01-31
126 +==================
127 +
128 + * deps: mime-types@~2.0.8
129 + - deps: mime-db@~1.6.0
130 +
131 +1.2.2 / 2014-12-30
132 +==================
133 +
134 + * deps: mime-types@~2.0.7
135 + - deps: mime-db@~1.5.0
136 +
137 +1.2.1 / 2014-12-30
138 +==================
139 +
140 + * deps: mime-types@~2.0.5
141 + - deps: mime-db@~1.3.1
142 +
143 +1.2.0 / 2014-12-19
144 +==================
145 +
146 + * deps: negotiator@0.5.0
147 + - Fix list return order when large accepted list
148 + - Fix missing identity encoding when q=0 exists
149 + - Remove dynamic building of Negotiator class
150 +
151 +1.1.4 / 2014-12-10
152 +==================
153 +
154 + * deps: mime-types@~2.0.4
155 + - deps: mime-db@~1.3.0
156 +
157 +1.1.3 / 2014-11-09
158 +==================
159 +
160 + * deps: mime-types@~2.0.3
161 + - deps: mime-db@~1.2.0
162 +
163 +1.1.2 / 2014-10-14
164 +==================
165 +
166 + * deps: negotiator@0.4.9
167 + - Fix error when media type has invalid parameter
168 +
169 +1.1.1 / 2014-09-28
170 +==================
171 +
172 + * deps: mime-types@~2.0.2
173 + - deps: mime-db@~1.1.0
174 + * deps: negotiator@0.4.8
175 + - Fix all negotiations to be case-insensitive
176 + - Stable sort preferences of same quality according to client order
177 +
178 +1.1.0 / 2014-09-02
179 +==================
180 +
181 + * update `mime-types`
182 +
183 +1.0.7 / 2014-07-04
184 +==================
185 +
186 + * Fix wrong type returned from `type` when match after unknown extension
187 +
188 +1.0.6 / 2014-06-24
189 +==================
190 +
191 + * deps: negotiator@0.4.7
192 +
193 +1.0.5 / 2014-06-20
194 +==================
195 +
196 + * fix crash when unknown extension given
197 +
198 +1.0.4 / 2014-06-19
199 +==================
200 +
201 + * use `mime-types`
202 +
203 +1.0.3 / 2014-06-11
204 +==================
205 +
206 + * deps: negotiator@0.4.6
207 + - Order by specificity when quality is the same
208 +
209 +1.0.2 / 2014-05-29
210 +==================
211 +
212 + * Fix interpretation when header not in request
213 + * deps: pin negotiator@0.4.5
214 +
215 +1.0.1 / 2014-01-18
216 +==================
217 +
218 + * Identity encoding isn't always acceptable
219 + * deps: negotiator@~0.4.0
220 +
221 +1.0.0 / 2013-12-27
222 +==================
223 +
224 + * Genesis
1 +(The MIT License)
2 +
3 +Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
4 +Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
5 +
6 +Permission is hereby granted, free of charge, to any person obtaining
7 +a copy of this software and associated documentation files (the
8 +'Software'), to deal in the Software without restriction, including
9 +without limitation the rights to use, copy, modify, merge, publish,
10 +distribute, sublicense, and/or sell copies of the Software, and to
11 +permit persons to whom the Software is furnished to do so, subject to
12 +the following conditions:
13 +
14 +The above copyright notice and this permission notice shall be
15 +included in all copies or substantial portions of the Software.
16 +
17 +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21 +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 +# accepts
2 +
3 +[![NPM Version][npm-image]][npm-url]
4 +[![NPM Downloads][downloads-image]][downloads-url]
5 +[![Node.js Version][node-version-image]][node-version-url]
6 +[![Build Status][travis-image]][travis-url]
7 +[![Test Coverage][coveralls-image]][coveralls-url]
8 +
9 +Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
10 +Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
11 +
12 +In addition to negotiator, it allows:
13 +
14 +- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])`
15 + as well as `('text/html', 'application/json')`.
16 +- Allows type shorthands such as `json`.
17 +- Returns `false` when no types match
18 +- Treats non-existent headers as `*`
19 +
20 +## Installation
21 +
22 +This is a [Node.js](https://nodejs.org/en/) module available through the
23 +[npm registry](https://www.npmjs.com/). Installation is done using the
24 +[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
25 +
26 +```sh
27 +$ npm install accepts
28 +```
29 +
30 +## API
31 +
32 +<!-- eslint-disable no-unused-vars -->
33 +
34 +```js
35 +var accepts = require('accepts')
36 +```
37 +
38 +### accepts(req)
39 +
40 +Create a new `Accepts` object for the given `req`.
41 +
42 +#### .charset(charsets)
43 +
44 +Return the first accepted charset. If nothing in `charsets` is accepted,
45 +then `false` is returned.
46 +
47 +#### .charsets()
48 +
49 +Return the charsets that the request accepts, in the order of the client's
50 +preference (most preferred first).
51 +
52 +#### .encoding(encodings)
53 +
54 +Return the first accepted encoding. If nothing in `encodings` is accepted,
55 +then `false` is returned.
56 +
57 +#### .encodings()
58 +
59 +Return the encodings that the request accepts, in the order of the client's
60 +preference (most preferred first).
61 +
62 +#### .language(languages)
63 +
64 +Return the first accepted language. If nothing in `languages` is accepted,
65 +then `false` is returned.
66 +
67 +#### .languages()
68 +
69 +Return the languages that the request accepts, in the order of the client's
70 +preference (most preferred first).
71 +
72 +#### .type(types)
73 +
74 +Return the first accepted type (and it is returned as the same text as what
75 +appears in the `types` array). If nothing in `types` is accepted, then `false`
76 +is returned.
77 +
78 +The `types` array can contain full MIME types or file extensions. Any value
79 +that is not a full MIME types is passed to `require('mime-types').lookup`.
80 +
81 +#### .types()
82 +
83 +Return the types that the request accepts, in the order of the client's
84 +preference (most preferred first).
85 +
86 +## Examples
87 +
88 +### Simple type negotiation
89 +
90 +This simple example shows how to use `accepts` to return a different typed
91 +respond body based on what the client wants to accept. The server lists it's
92 +preferences in order and will get back the best match between the client and
93 +server.
94 +
95 +```js
96 +var accepts = require('accepts')
97 +var http = require('http')
98 +
99 +function app (req, res) {
100 + var accept = accepts(req)
101 +
102 + // the order of this list is significant; should be server preferred order
103 + switch (accept.type(['json', 'html'])) {
104 + case 'json':
105 + res.setHeader('Content-Type', 'application/json')
106 + res.write('{"hello":"world!"}')
107 + break
108 + case 'html':
109 + res.setHeader('Content-Type', 'text/html')
110 + res.write('<b>hello, world!</b>')
111 + break
112 + default:
113 + // the fallback is text/plain, so no need to specify it above
114 + res.setHeader('Content-Type', 'text/plain')
115 + res.write('hello, world!')
116 + break
117 + }
118 +
119 + res.end()
120 +}
121 +
122 +http.createServer(app).listen(3000)
123 +```
124 +
125 +You can test this out with the cURL program:
126 +```sh
127 +curl -I -H'Accept: text/html' http://localhost:3000/
128 +```
129 +
130 +## License
131 +
132 +[MIT](LICENSE)
133 +
134 +[npm-image]: https://img.shields.io/npm/v/accepts.svg
135 +[npm-url]: https://npmjs.org/package/accepts
136 +[node-version-image]: https://img.shields.io/node/v/accepts.svg
137 +[node-version-url]: https://nodejs.org/en/download/
138 +[travis-image]: https://img.shields.io/travis/jshttp/accepts/master.svg
139 +[travis-url]: https://travis-ci.org/jshttp/accepts
140 +[coveralls-image]: https://img.shields.io/coveralls/jshttp/accepts/master.svg
141 +[coveralls-url]: https://coveralls.io/r/jshttp/accepts
142 +[downloads-image]: https://img.shields.io/npm/dm/accepts.svg
143 +[downloads-url]: https://npmjs.org/package/accepts
1 +/*!
2 + * accepts
3 + * Copyright(c) 2014 Jonathan Ong
4 + * Copyright(c) 2015 Douglas Christopher Wilson
5 + * MIT Licensed
6 + */
7 +
8 +'use strict'
9 +
10 +/**
11 + * Module dependencies.
12 + * @private
13 + */
14 +
15 +var Negotiator = require('negotiator')
16 +var mime = require('mime-types')
17 +
18 +/**
19 + * Module exports.
20 + * @public
21 + */
22 +
23 +module.exports = Accepts
24 +
25 +/**
26 + * Create a new Accepts object for the given req.
27 + *
28 + * @param {object} req
29 + * @public
30 + */
31 +
32 +function Accepts (req) {
33 + if (!(this instanceof Accepts)) {
34 + return new Accepts(req)
35 + }
36 +
37 + this.headers = req.headers
38 + this.negotiator = new Negotiator(req)
39 +}
40 +
41 +/**
42 + * Check if the given `type(s)` is acceptable, returning
43 + * the best match when true, otherwise `undefined`, in which
44 + * case you should respond with 406 "Not Acceptable".
45 + *
46 + * The `type` value may be a single mime type string
47 + * such as "application/json", the extension name
48 + * such as "json" or an array `["json", "html", "text/plain"]`. When a list
49 + * or array is given the _best_ match, if any is returned.
50 + *
51 + * Examples:
52 + *
53 + * // Accept: text/html
54 + * this.types('html');
55 + * // => "html"
56 + *
57 + * // Accept: text/*, application/json
58 + * this.types('html');
59 + * // => "html"
60 + * this.types('text/html');
61 + * // => "text/html"
62 + * this.types('json', 'text');
63 + * // => "json"
64 + * this.types('application/json');
65 + * // => "application/json"
66 + *
67 + * // Accept: text/*, application/json
68 + * this.types('image/png');
69 + * this.types('png');
70 + * // => undefined
71 + *
72 + * // Accept: text/*;q=.5, application/json
73 + * this.types(['html', 'json']);
74 + * this.types('html', 'json');
75 + * // => "json"
76 + *
77 + * @param {String|Array} types...
78 + * @return {String|Array|Boolean}
79 + * @public
80 + */
81 +
82 +Accepts.prototype.type =
83 +Accepts.prototype.types = function (types_) {
84 + var types = types_
85 +
86 + // support flattened arguments
87 + if (types && !Array.isArray(types)) {
88 + types = new Array(arguments.length)
89 + for (var i = 0; i < types.length; i++) {
90 + types[i] = arguments[i]
91 + }
92 + }
93 +
94 + // no types, return all requested types
95 + if (!types || types.length === 0) {
96 + return this.negotiator.mediaTypes()
97 + }
98 +
99 + // no accept header, return first given type
100 + if (!this.headers.accept) {
101 + return types[0]
102 + }
103 +
104 + var mimes = types.map(extToMime)
105 + var accepts = this.negotiator.mediaTypes(mimes.filter(validMime))
106 + var first = accepts[0]
107 +
108 + return first
109 + ? types[mimes.indexOf(first)]
110 + : false
111 +}
112 +
113 +/**
114 + * Return accepted encodings or best fit based on `encodings`.
115 + *
116 + * Given `Accept-Encoding: gzip, deflate`
117 + * an array sorted by quality is returned:
118 + *
119 + * ['gzip', 'deflate']
120 + *
121 + * @param {String|Array} encodings...
122 + * @return {String|Array}
123 + * @public
124 + */
125 +
126 +Accepts.prototype.encoding =
127 +Accepts.prototype.encodings = function (encodings_) {
128 + var encodings = encodings_
129 +
130 + // support flattened arguments
131 + if (encodings && !Array.isArray(encodings)) {
132 + encodings = new Array(arguments.length)
133 + for (var i = 0; i < encodings.length; i++) {
134 + encodings[i] = arguments[i]
135 + }
136 + }
137 +
138 + // no encodings, return all requested encodings
139 + if (!encodings || encodings.length === 0) {
140 + return this.negotiator.encodings()
141 + }
142 +
143 + return this.negotiator.encodings(encodings)[0] || false
144 +}
145 +
146 +/**
147 + * Return accepted charsets or best fit based on `charsets`.
148 + *
149 + * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
150 + * an array sorted by quality is returned:
151 + *
152 + * ['utf-8', 'utf-7', 'iso-8859-1']
153 + *
154 + * @param {String|Array} charsets...
155 + * @return {String|Array}
156 + * @public
157 + */
158 +
159 +Accepts.prototype.charset =
160 +Accepts.prototype.charsets = function (charsets_) {
161 + var charsets = charsets_
162 +
163 + // support flattened arguments
164 + if (charsets && !Array.isArray(charsets)) {
165 + charsets = new Array(arguments.length)
166 + for (var i = 0; i < charsets.length; i++) {
167 + charsets[i] = arguments[i]
168 + }
169 + }
170 +
171 + // no charsets, return all requested charsets
172 + if (!charsets || charsets.length === 0) {
173 + return this.negotiator.charsets()
174 + }
175 +
176 + return this.negotiator.charsets(charsets)[0] || false
177 +}
178 +
179 +/**
180 + * Return accepted languages or best fit based on `langs`.
181 + *
182 + * Given `Accept-Language: en;q=0.8, es, pt`
183 + * an array sorted by quality is returned:
184 + *
185 + * ['es', 'pt', 'en']
186 + *
187 + * @param {String|Array} langs...
188 + * @return {Array|String}
189 + * @public
190 + */
191 +
192 +Accepts.prototype.lang =
193 +Accepts.prototype.langs =
194 +Accepts.prototype.language =
195 +Accepts.prototype.languages = function (languages_) {
196 + var languages = languages_
197 +
198 + // support flattened arguments
199 + if (languages && !Array.isArray(languages)) {
200 + languages = new Array(arguments.length)
201 + for (var i = 0; i < languages.length; i++) {
202 + languages[i] = arguments[i]
203 + }
204 + }
205 +
206 + // no languages, return all requested languages
207 + if (!languages || languages.length === 0) {
208 + return this.negotiator.languages()
209 + }
210 +
211 + return this.negotiator.languages(languages)[0] || false
212 +}
213 +
214 +/**
215 + * Convert extnames to mime.
216 + *
217 + * @param {String} type
218 + * @return {String}
219 + * @private
220 + */
221 +
222 +function extToMime (type) {
223 + return type.indexOf('/') === -1
224 + ? mime.lookup(type)
225 + : type
226 +}
227 +
228 +/**
229 + * Check if mime is valid.
230 + *
231 + * @param {String} type
232 + * @return {String}
233 + * @private
234 + */
235 +
236 +function validMime (type) {
237 + return typeof type === 'string'
238 +}
1 +{
2 + "_from": "accepts@~1.3.5",
3 + "_id": "accepts@1.3.5",
4 + "_inBundle": false,
5 + "_integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
6 + "_location": "/accepts",
7 + "_phantomChildren": {},
8 + "_requested": {
9 + "type": "range",
10 + "registry": true,
11 + "raw": "accepts@~1.3.5",
12 + "name": "accepts",
13 + "escapedName": "accepts",
14 + "rawSpec": "~1.3.5",
15 + "saveSpec": null,
16 + "fetchSpec": "~1.3.5"
17 + },
18 + "_requiredBy": [
19 + "/express"
20 + ],
21 + "_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
22 + "_shasum": "eb777df6011723a3b14e8a72c0805c8e86746bd2",
23 + "_spec": "accepts@~1.3.5",
24 + "_where": "D:\\OSS project\\YTMT\\node_modules\\express",
25 + "bugs": {
26 + "url": "https://github.com/jshttp/accepts/issues"
27 + },
28 + "bundleDependencies": false,
29 + "contributors": [
30 + {
31 + "name": "Douglas Christopher Wilson",
32 + "email": "doug@somethingdoug.com"
33 + },
34 + {
35 + "name": "Jonathan Ong",
36 + "email": "me@jongleberry.com",
37 + "url": "http://jongleberry.com"
38 + }
39 + ],
40 + "dependencies": {
41 + "mime-types": "~2.1.18",
42 + "negotiator": "0.6.1"
43 + },
44 + "deprecated": false,
45 + "description": "Higher-level content negotiation",
46 + "devDependencies": {
47 + "eslint": "4.18.1",
48 + "eslint-config-standard": "11.0.0",
49 + "eslint-plugin-import": "2.9.0",
50 + "eslint-plugin-markdown": "1.0.0-beta.6",
51 + "eslint-plugin-node": "6.0.1",
52 + "eslint-plugin-promise": "3.6.0",
53 + "eslint-plugin-standard": "3.0.1",
54 + "istanbul": "0.4.5",
55 + "mocha": "~1.21.5"
56 + },
57 + "engines": {
58 + "node": ">= 0.6"
59 + },
60 + "files": [
61 + "LICENSE",
62 + "HISTORY.md",
63 + "index.js"
64 + ],
65 + "homepage": "https://github.com/jshttp/accepts#readme",
66 + "keywords": [
67 + "content",
68 + "negotiation",
69 + "accept",
70 + "accepts"
71 + ],
72 + "license": "MIT",
73 + "name": "accepts",
74 + "repository": {
75 + "type": "git",
76 + "url": "git+https://github.com/jshttp/accepts.git"
77 + },
78 + "scripts": {
79 + "lint": "eslint --plugin markdown --ext js,md .",
80 + "test": "mocha --reporter spec --check-leaks --bail test/",
81 + "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
82 + "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
83 + },
84 + "version": "1.3.5"
85 +}
1 +Copyright (c) 2014 Forbes Lindesay
2 +
3 +Permission is hereby granted, free of charge, to any person obtaining a copy
4 +of this software and associated documentation files (the "Software"), to deal
5 +in the Software without restriction, including without limitation the rights
6 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 +copies of the Software, and to permit persons to whom the Software is
8 +furnished to do so, subject to the following conditions:
9 +
10 +The above copyright notice and this permission notice shall be included in
11 +all copies or substantial portions of the Software.
12 +
13 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 +THE SOFTWARE.
...\ No newline at end of file ...\ No newline at end of file
1 +# acorn-globals
2 +
3 +Detect global variables in JavaScript using acorn
4 +
5 +[![Build Status](https://img.shields.io/travis/ForbesLindesay/acorn-globals/master.svg)](https://travis-ci.org/ForbesLindesay/acorn-globals)
6 +[![Dependency Status](https://img.shields.io/david/ForbesLindesay/acorn-globals.svg)](https://david-dm.org/ForbesLindesay/acorn-globals)
7 +[![NPM version](https://img.shields.io/npm/v/acorn-globals.svg)](https://www.npmjs.org/package/acorn-globals)
8 +
9 +## Installation
10 +
11 + npm install acorn-globals
12 +
13 +## Usage
14 +
15 +detect.js
16 +
17 +```js
18 +var fs = require('fs');
19 +var detect = require('acorn-globals');
20 +
21 +var src = fs.readFileSync(__dirname + '/input.js', 'utf8');
22 +
23 +var scope = detect(src);
24 +console.dir(scope);
25 +```
26 +
27 +input.js
28 +
29 +```js
30 +var x = 5;
31 +var y = 3, z = 2;
32 +
33 +w.foo();
34 +w = 2;
35 +
36 +RAWR=444;
37 +RAWR.foo();
38 +
39 +BLARG=3;
40 +
41 +foo(function () {
42 + var BAR = 3;
43 + process.nextTick(function (ZZZZZZZZZZZZ) {
44 + console.log('beep boop');
45 + var xyz = 4;
46 + x += 10;
47 + x.zzzzzz;
48 + ZZZ=6;
49 + });
50 + function doom () {
51 + }
52 + ZZZ.foo();
53 +
54 +});
55 +
56 +console.log(xyz);
57 +```
58 +
59 +output:
60 +
61 +```
62 +$ node example/detect.js
63 +[ { name: 'BLARG', nodes: [ [Object] ] },
64 + { name: 'RAWR', nodes: [ [Object], [Object] ] },
65 + { name: 'ZZZ', nodes: [ [Object], [Object] ] },
66 + { name: 'console', nodes: [ [Object], [Object] ] },
67 + { name: 'foo', nodes: [ [Object] ] },
68 + { name: 'process', nodes: [ [Object] ] },
69 + { name: 'w', nodes: [ [Object], [Object] ] },
70 + { name: 'xyz', nodes: [ [Object] ] } ]
71 +```
72 +
73 +
74 +## License
75 +
76 + MIT
1 +'use strict';
2 +
3 +var acorn = require('acorn');
4 +var walk = require('acorn/dist/walk');
5 +
6 +function isScope(node) {
7 + return node.type === 'FunctionExpression' || node.type === 'FunctionDeclaration' || node.type === 'ArrowFunctionExpression' || node.type === 'Program';
8 +}
9 +function isBlockScope(node) {
10 + return node.type === 'BlockStatement' || isScope(node);
11 +}
12 +
13 +function declaresArguments(node) {
14 + return node.type === 'FunctionExpression' || node.type === 'FunctionDeclaration';
15 +}
16 +
17 +function declaresThis(node) {
18 + return node.type === 'FunctionExpression' || node.type === 'FunctionDeclaration';
19 +}
20 +
21 +function reallyParse(source) {
22 + try {
23 + return acorn.parse(source, {
24 + ecmaVersion: 6,
25 + allowReturnOutsideFunction: true,
26 + allowImportExportEverywhere: true,
27 + allowHashBang: true
28 + });
29 + } catch (ex) {
30 + return acorn.parse(source, {
31 + ecmaVersion: 5,
32 + allowReturnOutsideFunction: true,
33 + allowImportExportEverywhere: true,
34 + allowHashBang: true
35 + });
36 + }
37 +}
38 +module.exports = findGlobals;
39 +module.exports.parse = reallyParse;
40 +function findGlobals(source) {
41 + var globals = [];
42 + var ast;
43 + // istanbul ignore else
44 + if (typeof source === 'string') {
45 + ast = reallyParse(source);
46 + } else {
47 + ast = source;
48 + }
49 + // istanbul ignore if
50 + if (!(ast && typeof ast === 'object' && ast.type === 'Program')) {
51 + throw new TypeError('Source must be either a string of JavaScript or an acorn AST');
52 + }
53 + var declareFunction = function (node) {
54 + var fn = node;
55 + fn.locals = fn.locals || {};
56 + node.params.forEach(function (node) {
57 + declarePattern(node, fn);
58 + });
59 + if (node.id) {
60 + fn.locals[node.id.name] = true;
61 + }
62 + }
63 + var declarePattern = function (node, parent) {
64 + switch (node.type) {
65 + case 'Identifier':
66 + parent.locals[node.name] = true;
67 + break;
68 + case 'ObjectPattern':
69 + node.properties.forEach(function (node) {
70 + declarePattern(node.value, parent);
71 + });
72 + break;
73 + case 'ArrayPattern':
74 + node.elements.forEach(function (node) {
75 + if (node) declarePattern(node, parent);
76 + });
77 + break;
78 + case 'RestElement':
79 + declarePattern(node.argument, parent);
80 + break;
81 + case 'AssignmentPattern':
82 + declarePattern(node.left, parent);
83 + break;
84 + // istanbul ignore next
85 + default:
86 + throw new Error('Unrecognized pattern type: ' + node.type);
87 + }
88 + }
89 + var declareModuleSpecifier = function (node, parents) {
90 + ast.locals = ast.locals || {};
91 + ast.locals[node.local.name] = true;
92 + }
93 + walk.ancestor(ast, {
94 + 'VariableDeclaration': function (node, parents) {
95 + var parent = null;
96 + for (var i = parents.length - 1; i >= 0 && parent === null; i--) {
97 + if (node.kind === 'var' ? isScope(parents[i]) : isBlockScope(parents[i])) {
98 + parent = parents[i];
99 + }
100 + }
101 + parent.locals = parent.locals || {};
102 + node.declarations.forEach(function (declaration) {
103 + declarePattern(declaration.id, parent);
104 + });
105 + },
106 + 'FunctionDeclaration': function (node, parents) {
107 + var parent = null;
108 + for (var i = parents.length - 2; i >= 0 && parent === null; i--) {
109 + if (isScope(parents[i])) {
110 + parent = parents[i];
111 + }
112 + }
113 + parent.locals = parent.locals || {};
114 + parent.locals[node.id.name] = true;
115 + declareFunction(node);
116 + },
117 + 'Function': declareFunction,
118 + 'ClassDeclaration': function (node, parents) {
119 + var parent = null;
120 + for (var i = parents.length - 2; i >= 0 && parent === null; i--) {
121 + if (isScope(parents[i])) {
122 + parent = parents[i];
123 + }
124 + }
125 + parent.locals = parent.locals || {};
126 + parent.locals[node.id.name] = true;
127 + },
128 + 'TryStatement': function (node) {
129 + if (node.handler === null) return;
130 + node.handler.body.locals = node.handler.body.locals || {};
131 + node.handler.body.locals[node.handler.param.name] = true;
132 + },
133 + 'ImportDefaultSpecifier': declareModuleSpecifier,
134 + 'ImportSpecifier': declareModuleSpecifier,
135 + 'ImportNamespaceSpecifier': declareModuleSpecifier
136 + });
137 + function identifier(node, parents) {
138 + var name = node.name;
139 + if (name === 'undefined') return;
140 + for (var i = 0; i < parents.length; i++) {
141 + if (name === 'arguments' && declaresArguments(parents[i])) {
142 + return;
143 + }
144 + if (parents[i].locals && name in parents[i].locals) {
145 + return;
146 + }
147 + }
148 + if (
149 + parents[parents.length - 2] &&
150 + parents[parents.length - 2].type === 'TryStatement' &&
151 + parents[parents.length - 2].handler &&
152 + node === parents[parents.length - 2].handler.param
153 + ) {
154 + return;
155 + }
156 + node.parents = parents;
157 + globals.push(node);
158 + }
159 + walk.ancestor(ast, {
160 + 'VariablePattern': identifier,
161 + 'Identifier': identifier,
162 + 'ThisExpression': function (node, parents) {
163 + for (var i = 0; i < parents.length; i++) {
164 + if (declaresThis(parents[i])) {
165 + return;
166 + }
167 + }
168 + node.parents = parents;
169 + globals.push(node);
170 + }
171 + });
172 + var groupedGlobals = {};
173 + globals.forEach(function (node) {
174 + groupedGlobals[node.name] = (groupedGlobals[node.name] || []);
175 + groupedGlobals[node.name].push(node);
176 + });
177 + return Object.keys(groupedGlobals).sort().map(function (name) {
178 + return {name: name, nodes: groupedGlobals[name]};
179 + });
180 +}
1 +{
2 + "_args": [
3 + [
4 + "acorn-globals@1.0.9",
5 + "C:\\Users\\LEEHYUNJONG\\Desktop\\오픈소스SW\\YTMT"
6 + ]
7 + ],
8 + "_from": "acorn-globals@1.0.9",
9 + "_id": "acorn-globals@1.0.9",
10 + "_inBundle": false,
11 + "_integrity": "sha1-VbtemGkVB7dFedBRNBMhfDgMVM8=",
12 + "_location": "/acorn-globals",
13 + "_optional": true,
14 + "_phantomChildren": {},
15 + "_requested": {
16 + "type": "version",
17 + "registry": true,
18 + "raw": "acorn-globals@1.0.9",
19 + "name": "acorn-globals",
20 + "escapedName": "acorn-globals",
21 + "rawSpec": "1.0.9",
22 + "saveSpec": null,
23 + "fetchSpec": "1.0.9"
24 + },
25 + "_requiredBy": [
26 + "/jsdom"
27 + ],
28 + "_resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz",
29 + "_spec": "1.0.9",
30 + "_where": "C:\\Users\\LEEHYUNJONG\\Desktop\\오픈소스SW\\YTMT",
31 + "author": {
32 + "name": "ForbesLindesay"
33 + },
34 + "bugs": {
35 + "url": "https://github.com/ForbesLindesay/acorn-globals/issues"
36 + },
37 + "dependencies": {
38 + "acorn": "^2.1.0"
39 + },
40 + "description": "Detect global variables in JavaScript using acorn",
41 + "devDependencies": {
42 + "testit": "^2.0.2"
43 + },
44 + "files": [
45 + "index.js",
46 + "LICENSE"
47 + ],
48 + "homepage": "https://github.com/ForbesLindesay/acorn-globals#readme",
49 + "keywords": [
50 + "ast",
51 + "variable",
52 + "name",
53 + "lexical",
54 + "scope",
55 + "local",
56 + "global",
57 + "implicit"
58 + ],
59 + "license": "MIT",
60 + "name": "acorn-globals",
61 + "repository": {
62 + "type": "git",
63 + "url": "git+https://github.com/ForbesLindesay/acorn-globals.git"
64 + },
65 + "scripts": {
66 + "test": "node test"
67 + },
68 + "version": "1.0.9"
69 +}
1 +root = true
2 +
3 +[*]
4 +indent_style = space
5 +indent_size = 2
6 +end_of_line = lf
7 +insert_final_newline = true
1 +/.tern-port
2 +/test
3 +/local
1 +{
2 + "plugins": {
3 + "node": true,
4 + "es_modules": true
5 + }
6 +}
...\ No newline at end of file ...\ No newline at end of file
1 +language: node_js
2 +sudo: false
3 +node_js:
4 + - '0.10'
5 + - '0.12'
6 + - '4'
1 +List of Acorn contributors. Updated before every release.
2 +
3 +Adrian Rakovsky
4 +Alistair Braidwood
5 +Andres Suarez
6 +Aparajita Fishman
7 +Arian Stolwijk
8 +Artem Govorov
9 +Brandon Mills
10 +Charles Hughes
11 +Conrad Irwin
12 +David Bonnet
13 +ForbesLindesay
14 +Forbes Lindesay
15 +Gilad Peleg
16 +impinball
17 +Ingvar Stepanyan
18 +Jesse McCarthy
19 +Jiaxing Wang
20 +Joel Kemp
21 +Johannes Herr
22 +Jürg Lehni
23 +keeyipchan
24 +Kevin Kwok
25 +krator
26 +Marijn Haverbeke
27 +Martin Carlberg
28 +Mathias Bynens
29 +Mathieu 'p01' Henri
30 +Max Schaefer
31 +Max Zerzouri
32 +Mihai Bazon
33 +Mike Rennie
34 +Nick Fitzgerald
35 +Oskar Schöldström
36 +Paul Harper
37 +Peter Rust
38 +PlNG
39 +r-e-d
40 +Rich Harris
41 +Sebastian McKenzie
42 +Timothy Gu
43 +zsjforcn
1 +Copyright (C) 2012-2014 by various contributors (see AUTHORS)
2 +
3 +Permission is hereby granted, free of charge, to any person obtaining a copy
4 +of this software and associated documentation files (the "Software"), to deal
5 +in the Software without restriction, including without limitation the rights
6 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 +copies of the Software, and to permit persons to whom the Software is
8 +furnished to do so, subject to the following conditions:
9 +
10 +The above copyright notice and this permission notice shall be included in
11 +all copies or substantial portions of the Software.
12 +
13 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 +THE SOFTWARE.
This diff is collapsed. Click to expand it.
1 +#!/usr/bin/env node
2 +"use strict";
3 +
4 +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
5 +
6 +var _path = require("path");
7 +
8 +var _fs = require("fs");
9 +
10 +var _distAcornJs = require("../dist/acorn.js");
11 +
12 +var acorn = _interopRequireWildcard(_distAcornJs);
13 +
14 +var infile = undefined,
15 + forceFile = undefined,
16 + silent = false,
17 + compact = false,
18 + tokenize = false;
19 +var options = {};
20 +
21 +function help(status) {
22 + var print = status == 0 ? console.log : console.error;
23 + print("usage: " + (0, _path.basename)(process.argv[1]) + " [--ecma3|--ecma5|--ecma6]");
24 + print(" [--tokenize] [--locations] [---allow-hash-bang] [--compact] [--silent] [--module] [--help] [--] [infile]");
25 + process.exit(status);
26 +}
27 +
28 +for (var i = 2; i < process.argv.length; ++i) {
29 + var arg = process.argv[i];
30 + if ((arg == "-" || arg[0] != "-") && !infile) infile = arg;else if (arg == "--" && !infile && i + 2 == process.argv.length) forceFile = infile = process.argv[++i];else if (arg == "--ecma3") options.ecmaVersion = 3;else if (arg == "--ecma5") options.ecmaVersion = 5;else if (arg == "--ecma6") options.ecmaVersion = 6;else if (arg == "--locations") options.locations = true;else if (arg == "--allow-hash-bang") options.allowHashBang = true;else if (arg == "--silent") silent = true;else if (arg == "--compact") compact = true;else if (arg == "--help") help(0);else if (arg == "--tokenize") tokenize = true;else if (arg == "--module") options.sourceType = 'module';else help(1);
31 +}
32 +
33 +function run(code) {
34 + var result = undefined;
35 + if (!tokenize) {
36 + try {
37 + result = acorn.parse(code, options);
38 + } catch (e) {
39 + console.error(e.message);process.exit(1);
40 + }
41 + } else {
42 + result = [];
43 + var tokenizer = acorn.tokenizer(code, options),
44 + token = undefined;
45 + while (true) {
46 + try {
47 + token = tokenizer.getToken();
48 + } catch (e) {
49 + console.error(e.message);process.exit(1);
50 + }
51 + result.push(token);
52 + if (token.type == acorn.tokTypes.eof) break;
53 + }
54 + }
55 + if (!silent) console.log(JSON.stringify(result, null, compact ? null : 2));
56 +}
57 +
58 +if (forceFile || infile && infile != "-") {
59 + run((0, _fs.readFileSync)(infile, "utf8"));
60 +} else {
61 + (function () {
62 + var code = "";
63 + process.stdin.resume();
64 + process.stdin.on("data", function (chunk) {
65 + return code += chunk;
66 + });
67 + process.stdin.on("end", function () {
68 + return run(code);
69 + });
70 + })();
71 +}
...\ No newline at end of file ...\ No newline at end of file
1 +var fs = require("fs"), path = require("path")
2 +var stream = require("stream")
3 +
4 +var browserify = require("browserify")
5 +var babel = require('babel-core')
6 +var babelify = require("babelify").configure({loose: "all"})
7 +
8 +process.chdir(path.resolve(__dirname, ".."))
9 +
10 +browserify({standalone: "acorn"})
11 + .plugin(require('browserify-derequire'))
12 + .transform(babelify)
13 + .require("./src/index.js", {entry: true})
14 + .bundle()
15 + .on("error", function (err) { console.log("Error: " + err.message) })
16 + .pipe(fs.createWriteStream("dist/acorn.js"))
17 +
18 +var ACORN_PLACEHOLDER = "this_function_call_should_be_replaced_with_a_call_to_load_acorn()";
19 +function acornShimPrepare(file) {
20 + var tr = new stream.Transform
21 + if (file == path.resolve(__dirname, "../src/index.js")) {
22 + var sent = false
23 + tr._transform = function(chunk, _, callback) {
24 + if (!sent) {
25 + sent = true
26 + callback(null, ACORN_PLACEHOLDER);
27 + } else {
28 + callback()
29 + }
30 + }
31 + } else {
32 + tr._transform = function(chunk, _, callback) { callback(null, chunk) }
33 + }
34 + return tr
35 +}
36 +function acornShimComplete() {
37 + var tr = new stream.Transform
38 + var buffer = "";
39 + tr._transform = function(chunk, _, callback) {
40 + buffer += chunk.toString("utf8");
41 + callback();
42 + };
43 + tr._flush = function (callback) {
44 + tr.push(buffer.replace(ACORN_PLACEHOLDER, "module.exports = typeof acorn != 'undefined' ? acorn : require(\"./acorn\")"));
45 + callback(null);
46 + };
47 + return tr;
48 +}
49 +
50 +browserify({standalone: "acorn.loose"})
51 + .plugin(require('browserify-derequire'))
52 + .transform(acornShimPrepare)
53 + .transform(babelify)
54 + .require("./src/loose/index.js", {entry: true})
55 + .bundle()
56 + .on("error", function (err) { console.log("Error: " + err.message) })
57 + .pipe(acornShimComplete())
58 + .pipe(fs.createWriteStream("dist/acorn_loose.js"))
59 +
60 +browserify({standalone: "acorn.walk"})
61 + .plugin(require('browserify-derequire'))
62 + .transform(acornShimPrepare)
63 + .transform(babelify)
64 + .require("./src/walk/index.js", {entry: true})
65 + .bundle()
66 + .on("error", function (err) { console.log("Error: " + err.message) })
67 + .pipe(acornShimComplete())
68 + .pipe(fs.createWriteStream("dist/walk.js"))
69 +
70 +babel.transformFile("./src/bin/acorn.js", function (err, result) {
71 + if (err) return console.log("Error: " + err.message)
72 + fs.writeFile("bin/acorn", result.code, function (err) {
73 + if (err) return console.log("Error: " + err.message)
74 +
75 + // Make bin/acorn executable
76 + if (process.platform === 'win32')
77 + return
78 + var stat = fs.statSync("bin/acorn")
79 + var newPerm = stat.mode | parseInt('111', 8)
80 + fs.chmodSync("bin/acorn", newPerm)
81 + })
82 +})
1 +// Note: run `npm install unicode-7.0.0` first.
2 +
3 +// Which Unicode version should be used?
4 +var version = '7.0.0';
5 +
6 +var start = require('unicode-' + version + '/properties/ID_Start/code-points')
7 + .filter(function(ch) { return ch > 127; });
8 +var cont = [0x200c, 0x200d].concat(require('unicode-' + version + '/properties/ID_Continue/code-points')
9 + .filter(function(ch) { return ch > 127 && start.indexOf(ch) == -1; }));
10 +
11 +function pad(str, width) {
12 + while (str.length < width) str = "0" + str;
13 + return str;
14 +}
15 +
16 +function esc(code) {
17 + var hex = code.toString(16);
18 + if (hex.length <= 2) return "\\x" + pad(hex, 2);
19 + else return "\\u" + pad(hex, 4);
20 +}
21 +
22 +function generate(chars) {
23 + var astral = [], re = "";
24 + for (var i = 0, at = 0x10000; i < chars.length; i++) {
25 + var from = chars[i], to = from;
26 + while (i < chars.length - 1 && chars[i + 1] == to + 1) {
27 + i++;
28 + to++;
29 + }
30 + if (to <= 0xffff) {
31 + if (from == to) re += esc(from);
32 + else if (from + 1 == to) re += esc(from) + esc(to);
33 + else re += esc(from) + "-" + esc(to);
34 + } else {
35 + astral.push(from - at, to - from);
36 + at = to;
37 + }
38 + }
39 + return {nonASCII: re, astral: astral};
40 +}
41 +
42 +var startData = generate(start), contData = generate(cont);
43 +
44 +console.log(" var nonASCIIidentifierStartChars = \"" + startData.nonASCII + "\";");
45 +console.log(" var nonASCIIidentifierChars = \"" + contData.nonASCII + "\";");
46 +console.log(" var astralIdentifierStartCodes = " + JSON.stringify(startData.astral) + ";");
47 +console.log(" var astralIdentifierCodes = " + JSON.stringify(contData.astral) + ";");
1 +# Combine existing list of authors with everyone known in git, sort, add header.
2 +tail --lines=+3 AUTHORS > AUTHORS.tmp
3 +git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp
4 +echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
5 +sort -u AUTHORS.tmp >> AUTHORS
6 +rm -f AUTHORS.tmp
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.