Browse Source

Bump 0.6.1

master 0.6.1
Kegan Myers 8 years ago
parent
commit
5e7f079b43
  1. 2
      bower.json
  2. 4
      build/typertext.d.ts
  3. 2
      build/typertext.js
  4. 2
      build/typertext.js.map
  5. 2
      build/typertext.min.js
  6. 2
      build/typertext.min.js.map
  7. 2
      lib/Typertext/Transport/TransportChooser.ts
  8. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{
"name": "Typertext",
"version": "0.6.0",
"version": "0.6.1",
"homepage": "https://github.com/terribleplan/Typertext",
"authors": [
"Kegan Myers <kegan@keganmyers.com>"

4
build/typertext.d.ts

@ -104,6 +104,10 @@ declare module Typertext.Http {
private static splitString(input, separator, limit?);
constructor(domain: string, protocol?: HttpProtocol, path?: string, queryString?: HttpQueryString, port?: number);
public ToString(): string;
public GetPort(): number;
public GetDomain(): string;
public GetProtocol(): HttpProtocol;
public CrossOriginCheck(url: HttpUrl): boolean;
}
}
declare module Typertext.Json {

2
build/typertext.js

@ -399,7 +399,7 @@ var Typertext;
var ieLte9 = (ieTestDiv.getElementsByTagName("i").length === 1);
var origin = HttpUrl.FromUrl(window.location.href);
if (!origin.CrossOriginCheck(url) || !ieLte9) {
if (!origin.CrossOriginCheck(origin) || !ieLte9) {
return new Typertext.Transport.XHR(method, request, postData, callback);
}

2
build/typertext.js.map
File diff suppressed because it is too large
View File

2
build/typertext.min.js
File diff suppressed because it is too large
View File

2
build/typertext.min.js.map
File diff suppressed because it is too large
View File

2
lib/Typertext/Transport/TransportChooser.ts

@ -29,7 +29,7 @@ module Typertext.Transport {
var origin = HttpUrl.FromUrl(window.location.href);
//If this is a CORS request in a modern browser
if (!origin.CrossOriginCheck(url) || !ieLte9) {
if (!origin.CrossOriginCheck(origin) || !ieLte9) {
//Just use a standard XHR request
return new XHR(method, request, postData, callback);
}

2
package.json

@ -5,7 +5,7 @@
"type": "git",
"url": "https://github.com/terribleplan/Typertext.git"
},
"version": "0.6.0",
"version": "0.6.1",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-cli": "~0.1.13",