nukosuke / annict.js Goto Github PK
View Code? Open in Web Editor NEW:dvd: Annict API client library for JavaScript ( & TypeScript) :tv:
Home Page: https://nukosuke.github.io/annict.js/
License: MIT License
:dvd: Annict API client library for JavaScript ( & TypeScript) :tv:
Home Page: https://nukosuke.github.io/annict.js/
License: MIT License
現状Stringで 'true'
, 'false'
じゃないと値が不正と怒られる。
Booleanのtrueが来たらStringに変換する。
前のバージョンリリースしたのが相当前なのでいざこざでおそらくexpireされてるはず。
再度生成してauto deployできるようにしておく。
It’s been a while since last release. Current token maybe expired for the past npm incident.
It must be regenerated.
デコレータでこんな感じに書きたい。
@BaseURI('https://api.annict.com')
class Annict {
@Endpoint('/v1/me/records/:id')
update(...) {
...
}
}
悲しみのtslint
ブラウザ対応する
#23
Annictの仕様なのでannictリポジトリにissueを立てる。
対応されたら #25 をマージしてv0.0.4リリース。
なんらかの理由で返答が対応不可ならブラウザサポートを切ってv0.0.4マイルストーンをclose。
fetch-everywhereに変更するか、もういっそ自分で読み込みの切り替えを実装する。
v0.0.3からTypeScript対応するぞい!
annict.client.setToken("<ANNICT_TOKEN>");
equivalent to
const token = "<ANNICT_TOKEN>";
annict.client.setHeader("Authorization", "Bearer `${token}`");
TypeScriptで
export default class Annict {
...
}
とするとjsでrequireは下のようになる。
const Annict = require('annict').default; //<=これがダサい
のコンボで
Annictが英語対応するときいて
see #70
d.tsのPR
because npm v5 supports lock file
currently: it has to be nofified by response error
change to: validate arg Object before sending request
I want mini validation library.
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
by using TypeDoc
Probably, few people use bower now. It is not necessary to support any more.
テストのために入れたが、TS以外のプロジェクトでもtypingsを要求されるので
npm WARN deprecated @types/[email protected]: This is a stub types definition for es6-promise (https://github.com/jakearchibald/ES6-Promise). es6-promise provides its own type definitions, so you don't need @types/es6-promise installed!
remove @types/es6-promise
from package.json
Promise<IResponse>
Promise<Works>
とか現状バラバラ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.