prototype.exe 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/prototype.js +9 -10
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prototype.exe",
3
3
  "description": "JScript",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "main": "src/prototype.js",
6
6
  "files": [
7
7
  "src/",
package/src/prototype.js CHANGED
@@ -871,15 +871,15 @@ Define (Function, "html", class {
871
871
  this.markup.push (2, "meta", {name: "googlebot-news", content: this.var ["google-bot:article"]});
872
872
  if (this.var ["google-site-verification"]) this.markup.push (2, "meta", {name: "google-site-verification", content: this.var ["google-site-verification"]});
873
873
  if (this.var ["yandex-verification"]) this.markup.push (2, "meta", {name: "yandex-verification", content: this.var ["yandex-verification"]});
874
- this.markup.push (2, "meta", {name: "twitter:card", content: "summary_large_image"});
875
- this.markup.push (2, "meta", {name: "twitter:title", content: this.var.title});
876
- this.markup.push (2, "meta", {name: "twitter:description", content: this.var.description});
877
- this.markup.push (2, "meta", {name: "twitter:image", content: this.var ["content:poster"]});
874
+ this.markup.push (2, "meta", {name: "twitter:card", content: "summary"});
875
+ this.markup.push (2, "meta", {name: "twitter:title", property: "og:title", content: this.var.title});
876
+ this.markup.push (2, "meta", {name: "twitter:description", property: "og:description", content: this.var.description});
877
+ if (this.var ["twitter:image"] || this.var ["content:poster"]) this.markup.push (2, "meta", {name: "twitter:image", content: (this.var ["twitter:image"] || this.var ["content:poster"])});
878
878
  this.markup.push (2, "meta", {property: "og:site_name", content: this.var.site.name});
879
- this.markup.push (2, "meta", {property: "og:title", content: this.var.title});
880
- this.markup.push (2, "meta", {property: "og:description", content: this.var.description});
879
+ if (false) this.markup.push (2, "meta", {property: "og:title", content: this.var.title});
880
+ if (false) this.markup.push (2, "meta", {property: "og:description", content: this.var.description});
881
881
  this.markup.push (2, "meta", {property: "og:url", content: this.var.canonical});
882
- if (this.var ["og:image"] || this.var ["content:poster"]) this.markup.push (2, "meta", {property: "og:image", content: this.var ["content:poster"]});
882
+ if (this.var ["og:image"] || this.var ["content:poster"]) this.markup.push (2, "meta", {property: "og:image", content: (this.var ["og:image"] || this.var ["content:poster"])});
883
883
  this.markup.push (2, "meta", {property: "og:type", content: this.var ["og:type"]});
884
884
  this.markup.push (2, "meta", {property: "og:locale", content: this.var ["og:locale"]});
885
885
  for (var i in this.var.meta) this.markup.push (2, "meta", this.var.meta [i]);
@@ -1632,11 +1632,11 @@ Function.element.hide = function (element) { return $ (element).removeClass ("fl
1632
1632
  */
1633
1633
 
1634
1634
  Symbol.export = {
1635
- define: Object.define, un_define: Object.un_define, un_set: Object.un_set,
1635
+ define: Object.define, un_define: Object.un_define, un_set: Object.un_set, is: Object.is, type: Object.type, type_of: Object.type_of,
1636
1636
  object: Object, array: Array, string: String, number: Number, function: Function,
1637
1637
  date: Date, time: Date.time, timeout: Date.timeout, datetime: new Date.io,
1638
1638
  event: Event, promise: Promise, resolve: function () { return Promise.resolve (... arguments); }, reject: function () { return Promise.reject (... arguments); },
1639
- url: URL, path: Function.path, file: Function.file, dir: Function.dir, http: Function.http,
1639
+ url: URL, parse_url: URL.parse, path: Function.path, file: Function.file, dir: Function.dir, http: Function.http,
1640
1640
  db: Function.db, database: Function.database,
1641
1641
  cookie: Function.cookie, session: Function.session, ls: Function.ls,
1642
1642
  markup: Function.markup, html: Function.html, css: Function.css, js: Function.js, json: JSON, xml: Function.xml, serialize: Function.serialize,
@@ -1648,7 +1648,6 @@ Symbol.export = {
1648
1648
  google: Function.google,
1649
1649
  body: Function.body,
1650
1650
  owl: Function.owl,
1651
- is: Object.is, parse_url: URL.parse,
1652
1651
  asset: Function.asset, theme: Function.theme, template: Function.template,
1653
1652
  sitemap: Function.sitemap, "sitemap.xsl": Function ["sitemap.xsl"], "sitemap.xsl:index": Function ["sitemap.xsl:index"],
1654
1653
  zero: 0, one: 1,