Giter Club home page Giter Club logo

wunderlist-api's Issues

[setup]: setup Jest

Acceptance criteria:

  • Add support to Jest
  • Add script to run and collect coverage;

[docs]: Update the Readme.md

Acceptance Criteria:

  • section: the project
  • #21
  • section: how to use
  • section: features/endpoints;
  • section: contribute
  • section: credits

[feature]: auth

Acceptance criteria:

  • create auth class
  • define request base headers
  • create tests cases

Broken in Node 8.9.3 (stable)

I'm afraid the ES6 modules are breaking the npm-module in node v8.9.3

➜  node --version
v8.9.3
➜  node index.js                                       
./node_modules/wunderlist-api/build/index.js:524
export default Wunderlist;
^^^^^^

SyntaxError: Unexpected token export

Even with the experimental flag on, it doesn't work:

➜  node --experimental-modules index.js
(node:94262) ExperimentalWarning: The ESM module loader is experimental.
index.js:11
import WunderlistAPI from 'wunderlist-api';
^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)

And if you'll try babel with prefixes (2015 or 2016) it doesn't work as well.

➜ npm start
> babel-node index.js --presets es2015,stage-2

./node_modules/wunderlist-api/build/index.js:524
export default Wunderlist;
^^^^^^

SyntaxError: Unexpected token export

authentication error

hi guys. thanks for publishing your project! :)

when trying to authenticate with my clientID/accessToken I get an error saying:

body: '{"error":{"type":"server_error","translation_key":"api_error_unknown","message":"An unknown server error occurred","authentication":["missing"]}}' }

here's my code:

"use strict";

const Wunderlist = require("wunderlist-api");

const wunderlist = new Wunderlist({
  clientID: "xxx",
  accessToken: "xxx"
});

// authentication
wunderlist
  .user()
  .then(response => {
    // response
    console.log(response);
  })
  .catch(error => {
    // handle error
  });

what am i doing wrong?

[setup]: Setup Github Actions

Acceptance Criteria:

  • Automated pipelines in GitHub actions;
  • Publish Docs on github pages
  • run tests, build and publish the project version each time when merging with master

more details here.

[issue]: error when run build script

When the script build is executed the prompt return a dependecies error:

> tsc -p tsconfig.json && rollup -c rollup.config.js

node_modules/@types/jest/index.d.ts:484:51 - error TS2307: Cannot find module 'jest-diff'.

484             diff(a: any, b: any, options?: import("jest-diff").DiffOptions): string | null;
                                                      ~~~~~~~~~~~

node_modules/@types/jest/index.d.ts:538:44 - error TS2307: Cannot find module 'pretty-format'.

538     type SnapshotSerializerPlugin = import('pretty-format').Plugin;
                                               ~~~~~~~~~~~~~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.