Git Product home page Git Product logo

Comments (6)

ghoshnirmalya avatar ghoshnirmalya commented on August 28, 2024 1

Kitsu: 4.4.0
Browser: Version 63.0.3239.132
Node: 6.10.2

from kitsu.

wopian avatar wopian commented on August 28, 2024

Need some more information to investigate this:

  • kitsu version
  • environment (node/browser) version

from kitsu.

wopian avatar wopian commented on August 28, 2024

I can't seem to replicate this using node 6.10.2. Do you have a repository that has this issue I can test with?

// example/test.js
const Kitsu = require('../lib/kitsu'); // same file as 4.4.0's 'kitsu' require

const api = new Kitsu({
  baseURL: "http://localhost:3000/api/v1"
});

console.log(api)
wopian@WOPCB:/mnt/c/github/kitsu$ nvm exec 6.10.2 node example/test
Running node v6.10.2 (npm v3.10.10)
Kitsu {
  fetch: [Function],
  update: [Function],
  create: [Function],
  camel: [Function: camel],
  resCase: [Function: kebab],
  plural: [Function: pluralize],
  headers: [Object],
  axios: { [Function: wrap] }
}

from kitsu.

wopian avatar wopian commented on August 28, 2024

Ah found the issue. The named export for the UMD files were the wrong casing. I.e, while the above code works fine in node itself, in the browser it was failing. If you did the following it would work:

const kitsu = require('kitsu');
const api = new kitsu(...);

I've now fixed this and will be released in 4.4.1 shortly.

from kitsu.

wopian avatar wopian commented on August 28, 2024

4.4.1 is now published. Can you verify this issue is fixed with it? 👍

from kitsu.

wopian avatar wopian commented on August 28, 2024

Resolved in 4.5.0

from kitsu.

Related Issues (20)

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.