Skip to content

Commit

Permalink
Bump dependency versions, npm run all
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Sep 27, 2022
1 parent 1c13566 commit 67d62a7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 deletions.
20 changes: 15 additions & 5 deletions dist/osm-auth.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var osm_auth_exports = {};
__export(osm_auth_exports, {
Expand Down Expand Up @@ -54,8 +57,8 @@ function osmAuth(o) {
var settings = [
["width", w],
["height", h],
["left", screen.width / 2 - w / 2],
["top", screen.height / 2 - h / 2]
["left", window.screen.width / 2 - w / 2],
["top", window.screen.height / 2 - h / 2]
].map(function(x) {
return x.join("=");
}).join(",");
Expand Down Expand Up @@ -144,7 +147,14 @@ function osmAuth(o) {
}
function run() {
var url = options.prefix !== false ? o.url + options.path : options.path;
return oauth.rawxhr(options.method, url, token("oauth2_access_token"), options.content, options.headers, done);
return oauth.rawxhr(
options.method,
url,
token("oauth2_access_token"),
options.content,
options.headers,
done
);
}
function done(err, xhr) {
if (err) {
Expand All @@ -163,7 +173,7 @@ function osmAuth(o) {
}
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState === 4 && xhr.status !== 0) {
if (4 === xhr.readyState && 0 !== xhr.status) {
if (/^20\d$/.test(xhr.status)) {
callback(null, xhr);
} else {
Expand Down
6 changes: 3 additions & 3 deletions dist/osm-auth.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/osm-auth.iife.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/osm-auth.iife.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
"store": "~2.0.12"
},
"devDependencies": {
"c8": "^7.11.0",
"esbuild": "^0.14.31",
"eslint": "^8.12.0",
"http-server": "^14.1.0",
"node-localstorage": "^2.1.6",
"c8": "^7.12.0",
"esbuild": "^0.15.9",
"eslint": "^8.24.0",
"http-server": "^14.1.1",
"node-localstorage": "^2.2.1",
"npm-run-all": "^4.1.5",
"shx": "^0.3.4",
"tap": "^16.1.0"
"tap": "^16.3.0"
},
"engines": {
"node": ">=14"
Expand Down

0 comments on commit 67d62a7

Please sign in to comment.