Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: iambumblehead/form-urlencoded
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 277d9ad56c76967c53348571172800df045f9a4c
Choose a base ref
...
head repository: iambumblehead/form-urlencoded
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: edcbe5a45808c579ad891fede03163715a791d44
Choose a head ref
  • 13 commits
  • 7 files changed
  • 3 contributors

Commits on Mar 28, 2021

  1. added types file

    bumblehead committed Mar 28, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    lifeofguenter Günter Grodotzki
    Copy the full SHA
    0c710b7 View commit details
  2. increment packages

    bumblehead committed Mar 28, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    lifeofguenter Günter Grodotzki
    Copy the full SHA
    13785b5 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d6eca68 View commit details
  4. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    727bc87 View commit details
  5. use mjs

    bumblehead committed Mar 28, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    lifeofguenter Günter Grodotzki
    Copy the full SHA
    82ff69a View commit details
  6. Copy the full SHA
    559d62e View commit details
  7. increment version

    bumblehead committed Mar 28, 2021
    Copy the full SHA
    a9d84b0 View commit details
  8. Copy the full SHA
    3580eaf View commit details

Commits on Mar 29, 2021

  1. Fix deployment files

    perrin4869 authored Mar 29, 2021
    Copy the full SHA
    d895247 View commit details
  2. Merge pull request #33 from perrin4869/patch-1

    Fix deployment files
    iambumblehead authored Mar 29, 2021
    Copy the full SHA
    a09c056 View commit details
  3. increment package version

    bumblehead committed Mar 29, 2021
    Copy the full SHA
    189fdfc View commit details

Commits on Apr 13, 2021

  1. Copy the full SHA
    4a2208f View commit details
  2. update package.json

    bumblehead committed Apr 13, 2021
    Copy the full SHA
    edcbe5a View commit details
Showing with 52 additions and 89 deletions.
  1. +2 −4 .eslintrc.json
  2. +5 −0 README.md
  3. +15 −0 form-urlencoded.d.ts
  4. +0 −68 form-urlencoded.dist.js
  5. 0 form-urlencoded.js → form-urlencoded.mjs
  6. +2 −2 form-urlencoded.spec.js → form-urlencoded.spec.mjs
  7. +28 −15 package.json
6 changes: 2 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"extends": [
"airbnb-base"
],
"extends": [],
"env": {
"browser": true
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module"
},
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -53,6 +53,11 @@ console.log(formurlencoded(obj, {

![scrounge](https://github.com/iambumblehead/scroungejs/raw/master/img/hand.png)

changelog

* 4.5.0, add exports to package.json to support native esm


(The MIT License)

Copyright (c) [Bumblehead][0] <chris@bumblehead.com>
15 changes: 15 additions & 0 deletions form-urlencoded.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Type definitions for form-urlencoded 2.0
// Project: https://github.com/iambumblehead/form-urlencoded#readme
// Definitions by: Antoine Lépée <https://github.com/alepee>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace formUrlEncoded {
interface FormEncodedOptions {
sorted?: boolean;
skipIndex?: boolean;
ignorenull?: boolean;
}
}

declare function formUrlEncoded(data: any, opts?: formUrlEncoded.FormEncodedOptions): string;
export = formUrlEncoded;
68 changes: 0 additions & 68 deletions form-urlencoded.dist.js

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions form-urlencoded.spec.js → form-urlencoded.spec.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require('ava');
const formurlencoded = require('.').default;
import test from 'ava';
import formurlencoded from './form-urlencoded.js';

// tests assume behaviour not given in ecmascript specification,
// object properties accessed in 'order'
43 changes: 28 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
{
"name": "form-urlencoded",
"main": "form-urlencoded.dist",
"browser": "form-urlencoded.dist",
"module": "form-urlencoded",
"version": "4.2.1",
"main": "form-urlencoded.js",
"browser": "form-urlencoded.js",
"module": "form-urlencoded.mjs",
"types": "form-urlencoded.d.ts",
"exports": {
".": {
"require": "./form-urlencoded.js",
"import": "./form-urlencoded.mjs"
},
"./": "./"
},
"version": "4.5.0",
"description": "Return an object as an 'x-www-form-urlencoded' string",
"author": "Chris <chris@bumblehead.com>",
"license": "MIT",
"readmeFilename": "README.md",
"files": [
"form-urlencoded.js",
"form-urlencoded.mjs",
"form-urlencoded.d.ts"
],
"contributors": [
{
"name": "James",
@@ -36,20 +49,20 @@
"json encode"
],
"devDependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.1",
"@babel/plugin-transform-unicode-regex": "^7.10.1",
"@babel/preset-env": "^7.10.1",
"babel-eslint": "^10.0.3",
"eslint": "^6.6.0",
"eslint-config-airbnb-base": "^14.0.0",
"@babel/core": "7.13.15",
"@babel/eslint-parser": "7.13.14",
"ava": "^4.0.0-alpha.2",
"eslint": "^7.23.0",
"eslint-plugin-import": "^2.14.0",
"ava": "^3.8.2"
"sucrase": "3.18.1"
},
"babel": {
"presets": []
},
"scripts": {
"test": "ava form-urlencoded.spec.js",
"lint": "eslint form-urlencoded.js",
"start": "./node_modules/.bin/babel form-urlencoded.js --out-file form-urlencoded.dist.js --presets=@babel/env --plugins=@babel/plugin-transform-unicode-regex",
"test": "ava form-urlencoded.spec.mjs",
"lint": "eslint form-urlencoded.mjs",
"start": "cp form-urlencoded.mjs form-urlencoded.js && sed -i 's/export default/module.exports =/' form-urlencoded.js",
"prepare": "npm start && npm run lint && npm test"
}
}