fix import statements for nodejs 12.x.x ES module specifier resolution
exclude unnecessary files from tarball
This commit is contained in:
parent
7b5998327d
commit
d9e3f4154a
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "node-fetch-cookies",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user