fix import statements for nodejs 12.x.x ES module specifier resolution

exclude unnecessary files from tarball
This commit is contained in:
jkhsjdhjs 2019-09-07 21:35:09 +02:00
parent 7b5998327d
commit d9e3f4154a
Signed by: jkhsjdhjs
GPG Key ID: BAC6ADBAB7D576CC
4 changed files with 8 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "node-fetch-cookies",
"version": "1.2.2",
"version": "1.2.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,11 +1,14 @@
{
"name": "node-fetch-cookies",
"version": "1.2.2",
"version": "1.2.3",
"description": "node-fetch wrapper that adds support for cookie-jars",
"main": "src/index.mjs",
"engines": {
"node": ">=10.0.0"
},
"files": [
"src/"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},

View File

@ -1,6 +1,6 @@
import fs from "fs";
import url from "url";
import Cookie from "./cookie";
import Cookie from "./cookie.mjs";
export default class CookieJar {
constructor(flags, file, cookies) {

View File

@ -1,6 +1,6 @@
import fetch from "node-fetch";
import CookieJar from "./cookie-jar";
import Cookie from "./cookie";
import CookieJar from "./cookie-jar.mjs";
import Cookie from "./cookie.mjs";
async function cookieFetch(cookieJars, url, options) {
let cookies = "";