@readme/oas-extensions
Advanced tools
Comparing version 13.4.10 to 13.4.13
@@ -13,2 +13,3 @@ const extensions = require('..'); | ||
['SEND_DEFAULTS'], | ||
['SIMPLE_MODE'], | ||
])('`%s` extension should have a default value', extension => { | ||
@@ -104,2 +105,3 @@ expect(extensions[extension] in extensions.defaults).toBe(true); | ||
['SEND_DEFAULTS', true, 'absolutely not', 'Boolean'], | ||
['SIMPLE_MODE', true, 'absolutely not', 'Boolean'], | ||
])('%s', (extension, validValue, invalidValue, expectedType) => { | ||
@@ -106,0 +108,0 @@ describe('should allow valid extensions', () => { |
@@ -1,2 +0,2 @@ | ||
{"/Users/jon/code/readmeio/api-explorer/packages/oas-extensions/index.js": {"path":"/Users/jon/code/readmeio/api-explorer/packages/oas-extensions/index.js","statementMap":{"0":{"start":{"line":4,"column":21},"end":{"line":4,"column":35}},"1":{"start":{"line":5,"column":25},"end":{"line":5,"column":43}},"2":{"start":{"line":6,"column":16},"end":{"line":6,"column":25}},"3":{"start":{"line":7,"column":22},"end":{"line":7,"column":37}},"4":{"start":{"line":8,"column":24},"end":{"line":8,"column":41}},"5":{"start":{"line":9,"column":26},"end":{"line":9,"column":45}},"6":{"start":{"line":10,"column":22},"end":{"line":10,"column":37}},"7":{"start":{"line":12,"column":0},"end":{"line":20,"column":2}},"8":{"start":{"line":22,"column":0},"end":{"line":30,"column":2}},"9":{"start":{"line":43,"column":0},"end":{"line":59,"column":2}},"10":{"start":{"line":44,"column":2},"end":{"line":50,"column":3}},"11":{"start":{"line":45,"column":4},"end":{"line":49,"column":5}},"12":{"start":{"line":46,"column":6},"end":{"line":46,"column":53}},"13":{"start":{"line":47,"column":11},"end":{"line":49,"column":5}},"14":{"start":{"line":48,"column":6},"end":{"line":48,"column":48}},"15":{"start":{"line":52,"column":2},"end":{"line":56,"column":3}},"16":{"start":{"line":53,"column":4},"end":{"line":53,"column":38}},"17":{"start":{"line":54,"column":9},"end":{"line":56,"column":3}},"18":{"start":{"line":55,"column":4},"end":{"line":55,"column":33}},"19":{"start":{"line":58,"column":2},"end":{"line":58,"column":44}},"20":{"start":{"line":70,"column":0},"end":{"line":97,"column":2}},"21":{"start":{"line":71,"column":2},"end":{"line":85,"column":3}},"22":{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},"23":{"start":{"line":73,"column":6},"end":{"line":73,"column":65}},"24":{"start":{"line":76,"column":4},"end":{"line":84,"column":5}},"25":{"start":{"line":77,"column":6},"end":{"line":83,"column":7}},"26":{"start":{"line":78,"column":8},"end":{"line":80,"column":9}},"27":{"start":{"line":79,"column":10},"end":{"line":79,"column":81}},"28":{"start":{"line":81,"column":13},"end":{"line":83,"column":7}},"29":{"start":{"line":82,"column":8},"end":{"line":82,"column":81}},"30":{"start":{"line":88,"column":2},"end":{"line":96,"column":3}},"31":{"start":{"line":89,"column":4},"end":{"line":95,"column":5}},"32":{"start":{"line":90,"column":6},"end":{"line":92,"column":7}},"33":{"start":{"line":91,"column":8},"end":{"line":91,"column":72}},"34":{"start":{"line":93,"column":11},"end":{"line":95,"column":5}},"35":{"start":{"line":94,"column":6},"end":{"line":94,"column":72}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":43,"column":30},"end":{"line":43,"column":31}},"loc":{"start":{"line":43,"column":68},"end":{"line":59,"column":1}},"line":43},"1":{"name":"(anonymous_1)","decl":{"start":{"line":70,"column":35},"end":{"line":70,"column":36}},"loc":{"start":{"line":70,"column":55},"end":{"line":97,"column":1}},"line":70}},"branchMap":{"0":{"loc":{"start":{"line":43,"column":47},"end":{"line":43,"column":63}},"type":"default-arg","locations":[{"start":{"line":43,"column":59},"end":{"line":43,"column":63}}],"line":43},"1":{"loc":{"start":{"line":44,"column":2},"end":{"line":50,"column":3}},"type":"if","locations":[{"start":{"line":44,"column":2},"end":{"line":50,"column":3}},{"start":{"line":44,"column":2},"end":{"line":50,"column":3}}],"line":44},"2":{"loc":{"start":{"line":45,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":45,"column":4},"end":{"line":49,"column":5}},{"start":{"line":45,"column":4},"end":{"line":49,"column":5}}],"line":45},"3":{"loc":{"start":{"line":45,"column":8},"end":{"line":45,"column":107}},"type":"binary-expr","locations":[{"start":{"line":45,"column":8},"end":{"line":45,"column":50}},{"start":{"line":45,"column":54},"end":{"line":45,"column":107}}],"line":45},"4":{"loc":{"start":{"line":47,"column":11},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":47,"column":11},"end":{"line":49,"column":5}},{"start":{"line":47,"column":11},"end":{"line":49,"column":5}}],"line":47},"5":{"loc":{"start":{"line":52,"column":2},"end":{"line":56,"column":3}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":56,"column":3}},{"start":{"line":52,"column":2},"end":{"line":56,"column":3}}],"line":52},"6":{"loc":{"start":{"line":52,"column":6},"end":{"line":52,"column":79}},"type":"binary-expr","locations":[{"start":{"line":52,"column":6},"end":{"line":52,"column":35}},{"start":{"line":52,"column":39},"end":{"line":52,"column":79}}],"line":52},"7":{"loc":{"start":{"line":54,"column":9},"end":{"line":56,"column":3}},"type":"if","locations":[{"start":{"line":54,"column":9},"end":{"line":56,"column":3}},{"start":{"line":54,"column":9},"end":{"line":56,"column":3}}],"line":54},"8":{"loc":{"start":{"line":71,"column":2},"end":{"line":85,"column":3}},"type":"if","locations":[{"start":{"line":71,"column":2},"end":{"line":85,"column":3}},{"start":{"line":71,"column":2},"end":{"line":85,"column":3}}],"line":71},"9":{"loc":{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},{"start":{"line":72,"column":4},"end":{"line":74,"column":5}}],"line":72},"10":{"loc":{"start":{"line":72,"column":8},"end":{"line":72,"column":105}},"type":"binary-expr","locations":[{"start":{"line":72,"column":8},"end":{"line":72,"column":43}},{"start":{"line":72,"column":47},"end":{"line":72,"column":77}},{"start":{"line":72,"column":81},"end":{"line":72,"column":105}}],"line":72},"11":{"loc":{"start":{"line":76,"column":4},"end":{"line":84,"column":5}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":84,"column":5}},{"start":{"line":76,"column":4},"end":{"line":84,"column":5}}],"line":76},"12":{"loc":{"start":{"line":77,"column":6},"end":{"line":83,"column":7}},"type":"if","locations":[{"start":{"line":77,"column":6},"end":{"line":83,"column":7}},{"start":{"line":77,"column":6},"end":{"line":83,"column":7}}],"line":77},"13":{"loc":{"start":{"line":78,"column":8},"end":{"line":80,"column":9}},"type":"if","locations":[{"start":{"line":78,"column":8},"end":{"line":80,"column":9}},{"start":{"line":78,"column":8},"end":{"line":80,"column":9}}],"line":78},"14":{"loc":{"start":{"line":81,"column":13},"end":{"line":83,"column":7}},"type":"if","locations":[{"start":{"line":81,"column":13},"end":{"line":83,"column":7}},{"start":{"line":81,"column":13},"end":{"line":83,"column":7}}],"line":81},"15":{"loc":{"start":{"line":88,"column":2},"end":{"line":96,"column":3}},"type":"if","locations":[{"start":{"line":88,"column":2},"end":{"line":96,"column":3}},{"start":{"line":88,"column":2},"end":{"line":96,"column":3}}],"line":88},"16":{"loc":{"start":{"line":89,"column":4},"end":{"line":95,"column":5}},"type":"if","locations":[{"start":{"line":89,"column":4},"end":{"line":95,"column":5}},{"start":{"line":89,"column":4},"end":{"line":95,"column":5}}],"line":89},"17":{"loc":{"start":{"line":90,"column":6},"end":{"line":92,"column":7}},"type":"if","locations":[{"start":{"line":90,"column":6},"end":{"line":92,"column":7}},{"start":{"line":90,"column":6},"end":{"line":92,"column":7}}],"line":90},"18":{"loc":{"start":{"line":93,"column":11},"end":{"line":95,"column":5}},"type":"if","locations":[{"start":{"line":93,"column":11},"end":{"line":95,"column":5}},{"start":{"line":93,"column":11},"end":{"line":95,"column":5}}],"line":93}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":6,"11":3,"12":1,"13":2,"14":1,"15":4,"16":1,"17":3,"18":1,"19":2,"20":1,"21":31,"22":17,"23":3,"24":14,"25":14,"26":6,"27":3,"28":8,"29":4,"30":21,"31":14,"32":6,"33":3,"34":8,"35":4},"f":{"0":6,"1":31},"b":{"0":[3],"1":[3,3],"2":[1,2],"3":[3,2],"4":[1,1],"5":[1,3],"6":[4,1],"7":[1,2],"8":[17,14],"9":[3,14],"10":[17,16,15],"11":[14,0],"12":[6,8],"13":[3,3],"14":[4,4],"15":[14,7],"16":[6,8],"17":[3,3],"18":[4,4]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"556fd1a4bbb0c2caf21b94d7242280b08c07823f"} | ||
{"/Users/jon/code/readmeio/api-explorer/packages/oas-extensions/index.js": {"path":"/Users/jon/code/readmeio/api-explorer/packages/oas-extensions/index.js","statementMap":{"0":{"start":{"line":4,"column":21},"end":{"line":4,"column":35}},"1":{"start":{"line":5,"column":25},"end":{"line":5,"column":43}},"2":{"start":{"line":6,"column":16},"end":{"line":6,"column":25}},"3":{"start":{"line":7,"column":22},"end":{"line":7,"column":37}},"4":{"start":{"line":8,"column":24},"end":{"line":8,"column":41}},"5":{"start":{"line":9,"column":26},"end":{"line":9,"column":45}},"6":{"start":{"line":10,"column":22},"end":{"line":10,"column":37}},"7":{"start":{"line":11,"column":20},"end":{"line":11,"column":33}},"8":{"start":{"line":13,"column":0},"end":{"line":22,"column":2}},"9":{"start":{"line":24,"column":0},"end":{"line":33,"column":2}},"10":{"start":{"line":46,"column":0},"end":{"line":62,"column":2}},"11":{"start":{"line":47,"column":2},"end":{"line":53,"column":3}},"12":{"start":{"line":48,"column":4},"end":{"line":52,"column":5}},"13":{"start":{"line":49,"column":6},"end":{"line":49,"column":53}},"14":{"start":{"line":50,"column":11},"end":{"line":52,"column":5}},"15":{"start":{"line":51,"column":6},"end":{"line":51,"column":48}},"16":{"start":{"line":55,"column":2},"end":{"line":59,"column":3}},"17":{"start":{"line":56,"column":4},"end":{"line":56,"column":38}},"18":{"start":{"line":57,"column":9},"end":{"line":59,"column":3}},"19":{"start":{"line":58,"column":4},"end":{"line":58,"column":33}},"20":{"start":{"line":61,"column":2},"end":{"line":61,"column":44}},"21":{"start":{"line":73,"column":0},"end":{"line":100,"column":2}},"22":{"start":{"line":74,"column":2},"end":{"line":88,"column":3}},"23":{"start":{"line":75,"column":4},"end":{"line":77,"column":5}},"24":{"start":{"line":76,"column":6},"end":{"line":76,"column":65}},"25":{"start":{"line":79,"column":4},"end":{"line":87,"column":5}},"26":{"start":{"line":80,"column":6},"end":{"line":86,"column":7}},"27":{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},"28":{"start":{"line":82,"column":10},"end":{"line":82,"column":81}},"29":{"start":{"line":84,"column":13},"end":{"line":86,"column":7}},"30":{"start":{"line":85,"column":8},"end":{"line":85,"column":81}},"31":{"start":{"line":91,"column":2},"end":{"line":99,"column":3}},"32":{"start":{"line":92,"column":4},"end":{"line":98,"column":5}},"33":{"start":{"line":93,"column":6},"end":{"line":95,"column":7}},"34":{"start":{"line":94,"column":8},"end":{"line":94,"column":72}},"35":{"start":{"line":96,"column":11},"end":{"line":98,"column":5}},"36":{"start":{"line":97,"column":6},"end":{"line":97,"column":72}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":46,"column":30},"end":{"line":46,"column":31}},"loc":{"start":{"line":46,"column":68},"end":{"line":62,"column":1}},"line":46},"1":{"name":"(anonymous_1)","decl":{"start":{"line":73,"column":35},"end":{"line":73,"column":36}},"loc":{"start":{"line":73,"column":55},"end":{"line":100,"column":1}},"line":73}},"branchMap":{"0":{"loc":{"start":{"line":46,"column":47},"end":{"line":46,"column":63}},"type":"default-arg","locations":[{"start":{"line":46,"column":59},"end":{"line":46,"column":63}}],"line":46},"1":{"loc":{"start":{"line":47,"column":2},"end":{"line":53,"column":3}},"type":"if","locations":[{"start":{"line":47,"column":2},"end":{"line":53,"column":3}},{"start":{"line":47,"column":2},"end":{"line":53,"column":3}}],"line":47},"2":{"loc":{"start":{"line":48,"column":4},"end":{"line":52,"column":5}},"type":"if","locations":[{"start":{"line":48,"column":4},"end":{"line":52,"column":5}},{"start":{"line":48,"column":4},"end":{"line":52,"column":5}}],"line":48},"3":{"loc":{"start":{"line":48,"column":8},"end":{"line":48,"column":107}},"type":"binary-expr","locations":[{"start":{"line":48,"column":8},"end":{"line":48,"column":50}},{"start":{"line":48,"column":54},"end":{"line":48,"column":107}}],"line":48},"4":{"loc":{"start":{"line":50,"column":11},"end":{"line":52,"column":5}},"type":"if","locations":[{"start":{"line":50,"column":11},"end":{"line":52,"column":5}},{"start":{"line":50,"column":11},"end":{"line":52,"column":5}}],"line":50},"5":{"loc":{"start":{"line":55,"column":2},"end":{"line":59,"column":3}},"type":"if","locations":[{"start":{"line":55,"column":2},"end":{"line":59,"column":3}},{"start":{"line":55,"column":2},"end":{"line":59,"column":3}}],"line":55},"6":{"loc":{"start":{"line":55,"column":6},"end":{"line":55,"column":79}},"type":"binary-expr","locations":[{"start":{"line":55,"column":6},"end":{"line":55,"column":35}},{"start":{"line":55,"column":39},"end":{"line":55,"column":79}}],"line":55},"7":{"loc":{"start":{"line":57,"column":9},"end":{"line":59,"column":3}},"type":"if","locations":[{"start":{"line":57,"column":9},"end":{"line":59,"column":3}},{"start":{"line":57,"column":9},"end":{"line":59,"column":3}}],"line":57},"8":{"loc":{"start":{"line":74,"column":2},"end":{"line":88,"column":3}},"type":"if","locations":[{"start":{"line":74,"column":2},"end":{"line":88,"column":3}},{"start":{"line":74,"column":2},"end":{"line":88,"column":3}}],"line":74},"9":{"loc":{"start":{"line":75,"column":4},"end":{"line":77,"column":5}},"type":"if","locations":[{"start":{"line":75,"column":4},"end":{"line":77,"column":5}},{"start":{"line":75,"column":4},"end":{"line":77,"column":5}}],"line":75},"10":{"loc":{"start":{"line":75,"column":8},"end":{"line":75,"column":105}},"type":"binary-expr","locations":[{"start":{"line":75,"column":8},"end":{"line":75,"column":43}},{"start":{"line":75,"column":47},"end":{"line":75,"column":77}},{"start":{"line":75,"column":81},"end":{"line":75,"column":105}}],"line":75},"11":{"loc":{"start":{"line":79,"column":4},"end":{"line":87,"column":5}},"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":87,"column":5}},{"start":{"line":79,"column":4},"end":{"line":87,"column":5}}],"line":79},"12":{"loc":{"start":{"line":80,"column":6},"end":{"line":86,"column":7}},"type":"if","locations":[{"start":{"line":80,"column":6},"end":{"line":86,"column":7}},{"start":{"line":80,"column":6},"end":{"line":86,"column":7}}],"line":80},"13":{"loc":{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},{"start":{"line":81,"column":8},"end":{"line":83,"column":9}}],"line":81},"14":{"loc":{"start":{"line":84,"column":13},"end":{"line":86,"column":7}},"type":"if","locations":[{"start":{"line":84,"column":13},"end":{"line":86,"column":7}},{"start":{"line":84,"column":13},"end":{"line":86,"column":7}}],"line":84},"15":{"loc":{"start":{"line":91,"column":2},"end":{"line":99,"column":3}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":99,"column":3}},{"start":{"line":91,"column":2},"end":{"line":99,"column":3}}],"line":91},"16":{"loc":{"start":{"line":92,"column":4},"end":{"line":98,"column":5}},"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":98,"column":5}},{"start":{"line":92,"column":4},"end":{"line":98,"column":5}}],"line":92},"17":{"loc":{"start":{"line":93,"column":6},"end":{"line":95,"column":7}},"type":"if","locations":[{"start":{"line":93,"column":6},"end":{"line":95,"column":7}},{"start":{"line":93,"column":6},"end":{"line":95,"column":7}}],"line":93},"18":{"loc":{"start":{"line":96,"column":11},"end":{"line":98,"column":5}},"type":"if","locations":[{"start":{"line":96,"column":11},"end":{"line":98,"column":5}},{"start":{"line":96,"column":11},"end":{"line":98,"column":5}}],"line":96}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":6,"12":3,"13":1,"14":2,"15":1,"16":4,"17":1,"18":3,"19":1,"20":2,"21":1,"22":35,"23":19,"24":3,"25":16,"26":16,"27":6,"28":3,"29":10,"30":5,"31":24,"32":16,"33":6,"34":3,"35":10,"36":5},"f":{"0":6,"1":35},"b":{"0":[3],"1":[3,3],"2":[1,2],"3":[3,2],"4":[1,1],"5":[1,3],"6":[4,1],"7":[1,2],"8":[19,16],"9":[3,16],"10":[19,18,17],"11":[16,0],"12":[6,10],"13":[3,3],"14":[5,5],"15":[16,8],"16":[6,10],"17":[3,3],"18":[5,5]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"ae95515aa4796b22f638cb202409a2444660e5ad"} | ||
} |
@@ -11,2 +11,3 @@ // Make sure you document any changes on here: | ||
const SEND_DEFAULTS = 'send-defaults'; | ||
const SIMPLE_MODE = 'simple-mode'; | ||
@@ -21,2 +22,3 @@ module.exports = { | ||
SEND_DEFAULTS, | ||
SIMPLE_MODE, | ||
}; | ||
@@ -32,2 +34,3 @@ | ||
[SEND_DEFAULTS]: false, | ||
[SIMPLE_MODE]: true, | ||
}; | ||
@@ -34,0 +37,0 @@ |
{ | ||
"name": "@readme/oas-extensions", | ||
"description": "A list of extensions that ReadMe has added to extend the OAS spec", | ||
"version": "13.4.10", | ||
"version": "13.4.13", | ||
"author": "Dom Harrington <dom@harrington-mail.com>", | ||
@@ -27,3 +27,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "2aa871a02a5dfc0fae764d755b8d511e1b2c2445" | ||
"gitHead": "f49e380ed9a2018f9823c7deac430e8234b8b74f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73740
755