Coder Social home page Coder Social logo

Comments (16)

mesqueeb avatar mesqueeb commented on May 28, 2024 3

@thim81 zoizo!!! Ik zag dat jij aan een populaire library ook werkt: Portman? Hebbem in de readme gezet ;)

https://github.com/mesqueeb/case-anything#readme

tot noggis he! nog veel success met je libraries :D

from case-anything.

mesqueeb avatar mesqueeb commented on May 28, 2024 1

Will release tomorrow

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

replaceAll is only available from Node 15 and higher.

https://node.green/#ES2021-features--String-prototype-replaceAll

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

The workaround could be to use the regex /g

example:

mystring.replace(/\./g,' ')

from case-anything.

mesqueeb avatar mesqueeb commented on May 28, 2024

@thim81 released! thanks again!!

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

@mesqueeb I pulled in the latest release and was able to build & release my openapi-format package using case-anything.

I mentioned you and the package in the readme, since it is such an excellent package.
https://github.com/thim81/openapi-format#casing-options
https://github.com/thim81/openapi-format#credits

Nog eens ne dikke merci! ๐Ÿ™‡
Het blijft wel cool heel de opensource community en dan nog straffer dat 2 Belgen die samenwerken vanuit Japan & het kleine Belgiรซ.

from case-anything.

mesqueeb avatar mesqueeb commented on May 28, 2024

@thim81 ik was vergeten om "type": "module" toe te voegen, en dat gaf problemen in bepaalde libraries voor mij.

net in laatste versie "type": "module" toegevoegd aan package.json. Werkt alles nog bij jou? Brengt dat geen problemen?

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

Ik zal straks de laatste versie eens testen.

from case-anything.

mesqueeb avatar mesqueeb commented on May 28, 2024

@thim81 2.1.3

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

I tried 2.1.3 in my package and I ran into this error:

} = require("case-anything");
    ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/Sites/asyncapi-format/node_modules/case-anything/dist/index.umd.js from /Users/Sites/asyncapi-format/asyncapi-format.js not supported.
index.umd.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead rename index.umd.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/Sites/asyncapi-format/node_modules/case-anything/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

    at Object.<anonymous> (/Users/Sites/asyncapi-format/asyncapi-format.js:21:5)
    at Object.<anonymous> (/Users/Sites/asyncapi-format/bin/cli.js:5:24) {
  code: 'ERR_REQUIRE_ESM'

Version 2.1.2 works without a problem.

from case-anything.

mesqueeb avatar mesqueeb commented on May 28, 2024

@thim81 weet jij of dat iets is waar jij iets aan kan doen via een bepaalde setting of is het iets waar alleen ik iets aan kan doen.

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

Ik kan de suggestie die de error geeft, eens proberen.

Mijn package is nog old skool JS dus ik weet niet er bepaalde zaken gevoelig zijn, maar ik zal eens kijken waar ik uitkom met een paar settings te spelen.

Ik heb wel pas volgende week tijd. Ik hou je op de hoogte.

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

@mesqueeb Ik heb vanalles geprobeerd, oa door met te spelen met "type": "module" en "type": "commonjs", maar zonder success.

from case-anything.

mesqueeb avatar mesqueeb commented on May 28, 2024

@thim81 ik ga proberen dan de build step up te daten tot dat je het weer kan runnen.
Kan ik een project van jou clonen en wat moet ik dan executeren voor die error te krijgen? Dan kan ik blijven testen tot ik het kan fixen.

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

tuurlijk, het makkelijkste is https://github.com/thim81/openapi-format

Er zitten een paar Jest testen in, die direct gaan falen als je in package.json upgrade naarcase-anything": "2.1.3 of je kan dit commando runnen

cd test/yaml-casing
node ../../bin/cli.js input.yaml --configFile options.yaml

from case-anything.

thim81 avatar thim81 commented on May 28, 2024

@mesqueeb Heb je vooruitgang kunnen boeken? Ik ben geen JS expert maar als ik ergens mee kan helpen, ping me gerust.

from case-anything.

Related Issues (17)

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.