New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cox-postposition

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cox-postposition - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

dist/cox.postposition.min.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.postposition=n():(t.cox=t.cox||{},t.cox.postposition=n())}(this,function(){return function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="/dist",n(n.s=37)}([function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){t.exports=!r(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(4),o=r(10);t.exports=r(2)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(8),o=r(29),i=r(23),u=Object.defineProperty;n.f=r(2)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(48),o=r(13);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(21)("wks"),o=r(11),i=r(0).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(7);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){var r=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports={}},function(t,n){t.exports=!0},function(t,n,r){var e=r(34),o=r(14);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(4).f,o=r(1),i=r(6)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(21)("keys"),o=r(11);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n,r){var e=r(0),o=e["__core-js_shared__"]||(e["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(7);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(0),o=r(12),i=r(16),u=r(25),c=r(4).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){n.f=r(6)},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(7),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(0),o=r(12),i=r(45),u=r(3),c=function(t,n,r){var f,a,s,p=t&c.F,l=t&c.G,y=t&c.S,v=t&c.P,h=t&c.B,d=t&c.W,b=l?o:o[n]||(o[n]={}),g=b.prototype,m=l?e:y?e[n]:(e[n]||{}).prototype;l&&(r=n);for(f in r)(a=!p&&m&&void 0!==m[f])&&f in b||(s=a?m[f]:r[f],b[f]=l&&"function"!=typeof m[f]?r[f]:h&&a?i(s,e):d&&m[f]==s?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(s):v&&"function"==typeof s?i(Function.call,s):s,v&&((b.virtual||(b.virtual={}))[f]=s,t&c.R&&g&&!g[f]&&u(g,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,r){t.exports=!r(2)&&!r(9)(function(){return 7!=Object.defineProperty(r(27)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){"use strict";var e=r(16),o=r(28),i=r(35),u=r(3),c=r(1),f=r(15),a=r(50),s=r(19),p=r(56),l=r(6)("iterator"),y=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,h,d,b,g){a(r,n,h);var m,x,S,O=function(t){if(!y&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",_="values"==d,j=!1,P=t.prototype,E=P[l]||P["@@iterator"]||d&&P[d],L=!y&&E||O(d),M=d?_?O("entries"):L:void 0,k="Array"==n?P.entries||E:E;if(k&&(S=p(k.call(new t)))!==Object.prototype&&S.next&&(s(S,w,!0),e||c(S,l)||u(S,l,v)),_&&E&&"values"!==E.name&&(j=!0,L=function(){return E.call(this)}),e&&!g||!y&&!j&&P[l]||u(P,l,L),f[n]=L,f[w]=v,d)if(m={values:_?L:O("values"),keys:b?L:O("keys"),entries:M},g)for(x in m)x in P||i(P,x,m[x]);else o(o.P+o.F*(y||j),n,m);return m}},function(t,n,r){var e=r(8),o=r(53),i=r(14),u=r(20)("IE_PROTO"),c=function(){},f=function(){var t,n=r(27)("iframe"),e=i.length;for(n.style.display="none",r(47).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[i[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:o(r,n)}},function(t,n,r){var e=r(34),o=r(14).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(1),o=r(5),i=r(44)(!1),u=r(20)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},function(t,n,r){t.exports=r(3)},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=r(39),i=e(o),u=r(38),c=e(u),f="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};n.default="function"==typeof c.default&&"symbol"===f(i.default)?function(t){return void 0===t?"undefined":f(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===t?"undefined":f(t)}},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),r.d(n,"check",function(){return b}),r.d(n,"pick",function(){return g}),r.d(n,"put",function(){return m}),r.d(n,"fix",function(){return x}),r.d(n,"parse",function(){return S});var e=r(36),o=r.n(e),i=/[^a-zA-Z0-9ㄱ-ㅎ가-힣\s]+/g,u=/^[\s\S]*?(\S*)\s*$/,c=new RegExp("(?:"+["check|[hm]ook|limit"].join("|")+")$","i"),f=new RegExp("(?:"+["[ㄱ-ㄷㅁ-ㅎ036]","^[mn]","\\S[mn]e?","\\S(?:[aeiom]|lu)b","(?:u|\\S[aei]|[^o]o)p","(?:^i|[^auh]i|\\Su|[^ei][ae]|[^oi]o)t","(?:\\S[iou]|[^e][ae])c?k","\\S[aeiou](?:c|ng)","foot|go+d|b[ai]g|private","^(?:app|kor)"].join("|")+")$","i"),a=new RegExp("(?:"+["[178ㄹ]","^[lr]","^\\Sr","\\Sle?"].join("|")+")$","i"),s=/(\S*)\[([\w가-힣]*)(?:\*|\|([\w가-힣]*))\]/g,p={"은":"는","이":"가","과":"와","이나":"나","을":"를","으로":"로"},l=function(){var t={};for(var n in p)t[p[n]]=n;return t}(),y=function(t,n){return!c.test(t)&&(f.test(t)||!n&&a.test(t))},v=function(t,n){var r=(t-44032)%28;return 0!==r&&!(n&&8===r)},h=function(t){var n=void 0===t?"undefined":o()(t);return"string"!==n&&"number"!==n},d=function(t,n,r,e){return m(n,r,e)},b=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(h(t))return!1;var r=String(t).replace(i," ").replace(u,"$1"),e=r.charAt(r.length-1).charCodeAt(),o=44032<=e&&e<=55203,c="로"===n||"으로"===n;return o?v(e,c):y(r,c)},g=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"string"!=typeof r&&(n=p[n]||n||"",r=l[n]||n),b(String(t),n)?r:n},m=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return""+t+g(t,n,r)},x=function(t,n){return function(r){return m(r,t,n)}},S=function(t){return"string"==typeof t?t.replace(s,d):t};n.default={check:b,pick:g,put:m,fix:x,parse:S}},function(t,n,r){t.exports={default:r(40),__esModule:!0}},function(t,n,r){t.exports={default:r(41),__esModule:!0}},function(t,n,r){r(64),r(62),r(65),r(66),t.exports=r(12).Symbol},function(t,n,r){r(63),r(67),t.exports=r(25).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,r){var e=r(5),o=r(59),i=r(58);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(42);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(17),o=r(33),i=r(18);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){var e=r(0).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(26);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){"use strict";var e=r(31),o=r(10),i=r(19),u={};r(3)(u,r(6)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){var e=r(11)("meta"),o=r(7),i=r(1),u=r(4).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(9)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},p=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},l=function(t,n){if(!i(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},y=function(t){return a&&v.NEED&&f(t)&&!i(t,e)&&s(t),t},v=t.exports={KEY:e,NEED:!1,fastKey:p,getWeak:l,onFreeze:y}},function(t,n,r){var e=r(4),o=r(8),i=r(17);t.exports=r(2)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(18),o=r(10),i=r(5),u=r(23),c=r(1),f=r(29),a=Object.getOwnPropertyDescriptor;n.f=r(2)?a:function(t,n){if(t=i(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(5),o=r(32).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(e(t))}},function(t,n,r){var e=r(1),o=r(60),i=r(20)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(22),o=r(13);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,r){var e=r(22),o=Math.max,i=Math.min;t.exports=function(t,n){return t=e(t),t<0?o(t+n,0):i(t,n)}},function(t,n,r){var e=r(22),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(13);t.exports=function(t){return Object(e(t))}},function(t,n,r){"use strict";var e=r(43),o=r(51),i=r(15),u=r(5);t.exports=r(30)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,r):"values"==n?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n){},function(t,n,r){"use strict";var e=r(57)(!0);r(30)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";var e=r(0),o=r(1),i=r(2),u=r(28),c=r(35),f=r(52).KEY,a=r(9),s=r(21),p=r(19),l=r(11),y=r(6),v=r(25),h=r(24),d=r(46),b=r(49),g=r(8),m=r(7),x=r(5),S=r(23),O=r(10),w=r(31),_=r(55),j=r(54),P=r(4),E=r(17),L=j.f,M=P.f,k=_.f,T=e.Symbol,A=e.JSON,F=A&&A.stringify,N=y("_hidden"),C=y("toPrimitive"),I={}.propertyIsEnumerable,R=s("symbol-registry"),D=s("symbols"),G=s("op-symbols"),V=Object.prototype,W="function"==typeof T,$=e.QObject,H=!$||!$.prototype||!$.prototype.findChild,J=i&&a(function(){return 7!=w(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=L(V,n);e&&delete V[n],M(t,n,r),e&&t!==V&&M(V,n,e)}:M,z=function(t){var n=D[t]=w(T.prototype);return n._k=t,n},B=W&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},K=function(t,n,r){return t===V&&K(G,n,r),g(t),n=S(n,!0),g(r),o(D,n)?(r.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),r=w(r,{enumerable:O(0,!1)})):(o(t,N)||M(t,N,O(1,{})),t[N][n]=!0),J(t,n,r)):M(t,n,r)},Y=function(t,n){g(t);for(var r,e=d(n=x(n)),o=0,i=e.length;i>o;)K(t,r=e[o++],n[r]);return t},q=function(t,n){return void 0===n?w(t):Y(w(t),n)},Q=function(t){var n=I.call(this,t=S(t,!0));return!(this===V&&o(D,t)&&!o(G,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,N)&&this[N][t])||n)},U=function(t,n){if(t=x(t),n=S(n,!0),t!==V||!o(D,n)||o(G,n)){var r=L(t,n);return!r||!o(D,n)||o(t,N)&&t[N][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=k(x(t)),e=[],i=0;r.length>i;)o(D,n=r[i++])||n==N||n==f||e.push(n);return e},X=function(t){for(var n,r=t===V,e=k(r?G:x(t)),i=[],u=0;e.length>u;)!o(D,n=e[u++])||r&&!o(V,n)||i.push(D[n]);return i};W||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),n=function(r){this===V&&n.call(G,r),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),J(this,t,O(1,r))};return i&&H&&J(V,t,{configurable:!0,set:n}),z(t)},c(T.prototype,"toString",function(){return this._k}),j.f=U,P.f=K,r(32).f=_.f=Z,r(18).f=Q,r(33).f=X,i&&!r(16)&&c(V,"propertyIsEnumerable",Q,!0),v.f=function(t){return z(y(t))}),u(u.G+u.W+u.F*!W,{Symbol:T});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)y(tt[nt++]);for(var rt=E(y.store),et=0;rt.length>et;)h(rt[et++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=T(t)},keyFor:function(t){if(!B(t))throw TypeError(t+" is not a symbol!");for(var n in R)if(R[n]===t)return n},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!W,"Object",{create:q,defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:U,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),A&&u(u.S+u.F*(!W||a(function(){var t=T();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(m(n)||void 0!==t)&&!B(t))return b(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!B(n))return n}),e[1]=n,F.apply(A,e)}}),T.prototype[C]||r(3)(T.prototype,C,T.prototype.valueOf),p(T,"Symbol"),p(Math,"Math",!0),p(e.JSON,"JSON",!0)},function(t,n,r){r(24)("asyncIterator")},function(t,n,r){r(24)("observable")},function(t,n,r){r(61);for(var e=r(0),o=r(3),i=r(15),u=r(6)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var a=c[f],s=e[a],p=s&&s.prototype;p&&!p[u]&&o(p,u,a),i[a]=i.Array}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.postposition=n():(t.cox=t.cox||{},t.cox.postposition=n())}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(n){return t[n]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/dist",e(e.s=1)}([function(t,n){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(n){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=o=function(t){return e(t)}:t.exports=o=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},o(n)}t.exports=o},function(t,n,e){"use strict";e.r(n),e.d(n,"check",function(){return d}),e.d(n,"pick",function(){return b}),e.d(n,"put",function(){return m}),e.d(n,"fix",function(){return S}),e.d(n,"parse",function(){return g});var o=e(0),r=e.n(o),u=/[^a-zA-Z0-9ㄱ-ㅎ가-힣\s]+/g,i=/^[\s\S]*?(\S*)\s*$/,c=new RegExp("(?:".concat(["check|[hm]ook|limit"].join("|"),")$"),"i"),f=new RegExp("(?:".concat(["[ㄱ-ㄷㅁ-ㅎ036]","^[mn]","\\S[mn]e?","\\S(?:[aeiom]|lu)b","(?:u|\\S[aei]|[^o]o)p","(?:^i|[^auh]i|\\Su|[^ei][ae]|[^oi]o)t","(?:\\S[iou]|[^e][ae])c?k","\\S[aeiou](?:c|ng)","foot|go+d|b[ai]g|private","^(?:app|kor)"].join("|"),")$"),"i"),p=new RegExp("(?:".concat(["[178ㄹ]","^[lr]","^\\Sr","\\Sle?"].join("|"),")$"),"i"),l=/(\S*)\[([\w가-힣]*)(?:\*|\|([\w가-힣]*))\]/g,a={"은":"는","이":"가","과":"와","이나":"나","을":"를","으로":"로"},s=function(){var t={};for(var n in a)t[a[n]]=n;return t}(),y=function(t,n,e,o){return m(n,e,o)},d=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(function(t){var n=r()(t);return"string"!==n&&"number"!==n}(t))return!1;var e=String(t).replace(u," ").replace(i,"$1"),o=e.charAt(e.length-1).charCodeAt(),l="로"===n||"으로"===n;return 44032<=o&&o<=55203?function(t,n){var e=(t-44032)%28;return 0!==e&&!(n&&8===e)}(o,l):function(t,n){return!c.test(t)&&(f.test(t)||!n&&p.test(t))}(e,l)},b=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"string"!=typeof e&&(e=s[n=a[n]||n||""]||n),d(String(t),n)?e:n},m=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"".concat(t).concat(b(t,n,e))},S=function(t,n){return function(e){return m(e,t,n)}},g=function(t){return"string"==typeof t?t.replace(l,y):t};n.default={check:d,pick:b,put:m,fix:S,parse:g}}])});
{
"name": "cox-postposition",
"version": "1.2.0",
"version": "1.3.0",
"description": "한글, 영문, 숫자에 대한 한글 조사를 처리하는 Javascript Library 입니다.",

@@ -8,3 +8,4 @@ "main": "src/postposition.js",

"test": "node ./test/test.js",
"build": "./node_modules/.bin/webpack && npm run test"
"pre-build": "eslint --fix src/postposition.js",
"build": "npm run pre-build && webpack && npm run test"
},

@@ -24,2 +25,3 @@ "keywords": [

"javascript",
"자바스크립트",
"cox",

@@ -39,13 +41,13 @@ "coxcore",

"devDependencies": {
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"eslint": "^3.19.0",
"eslint-config-es2015": "^1.1.0",
"eslint-loader": "^1.7.1",
"eslint-plugin-import": "^2.3.0",
"npm": "^5.3.0",
"webpack": "^2.5.1"
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/runtime": "^7.4.5",
"babel-loader": "^8.0.6",
"eslint": "^5.16.0",
"eslint-loader": "^2.1.2",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.2"
}
}

@@ -6,3 +6,3 @@ # cox.postposition

[예제 보기](https://cdn.rawgit.com/coxcore/postposition/1.2.0/demo/index.html)
[예제 보기](https://coxcore.github.io/postposition/1.3.0/demo/index.html)

@@ -22,7 +22,4 @@ ## 설치하기

```html
// rawgit
https://cdn.rawgit.com/coxcore/postposition/1.2.0/dist/cox.postposition.min.js
// jsdelivr
https://cdn.jsdelivr.net/npm/cox-postposition@1.2.0/dist/cox.postposition.min.js
https://cdn.jsdelivr.net/npm/cox-postposition@1.3.0/dist/cox.postposition.min.js
```

@@ -74,3 +71,3 @@

```html
<script src="https://cdn.rawgit.com/coxcore/postposition/1.2.0/dist/cox.postposition.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/cox-postposition@1.3.0/dist/cox.postposition.min.js"></script>

@@ -77,0 +74,0 @@ <script>

@@ -47,4 +47,4 @@ /**

const REG_NORMAL_FIXED = new RegExp(`(?:${[
"check|[hm]ook|limit",
].join("|")})$`, "i");
'check|[hm]ook|limit',
].join('|')})$`, 'i');

@@ -58,13 +58,13 @@ /**

const REG_SPECIAL_CHAR = new RegExp(`(?:${[
"[ㄱ-ㄷㅁ-ㅎ036]",
"^[mn]",
"\\S[mn]e?",
"\\S(?:[aeiom]|lu)b",
"(?:u|\\S[aei]|[^o]o)p",
"(?:^i|[^auh]i|\\Su|[^ei][ae]|[^oi]o)t",
"(?:\\S[iou]|[^e][ae])c?k",
"\\S[aeiou](?:c|ng)",
"foot|go+d|b[ai]g|private",
"^(?:app|kor)",
].join("|")})$`, "i");
'[ㄱ-ㄷㅁ-ㅎ036]',
'^[mn]',
'\\S[mn]e?',
'\\S(?:[aeiom]|lu)b',
'(?:u|\\S[aei]|[^o]o)p',
'(?:^i|[^auh]i|\\Su|[^ei][ae]|[^oi]o)t',
'(?:\\S[iou]|[^e][ae])c?k',
'\\S[aeiou](?:c|ng)',
'foot|go+d|b[ai]g|private',
'^(?:app|kor)',
].join('|')})$`, 'i');

@@ -78,7 +78,7 @@ /**

const REG_SPECIAL_RO = new RegExp(`(?:${[
"[178ㄹ]",
"^[lr]",
"^\\Sr",
"\\Sle?",
].join("|")})$`, "i");
'[178ㄹ]',
'^[lr]',
'^\\Sr',
'\\Sle?',
].join('|')})$`, 'i');

@@ -100,8 +100,8 @@ /**

const DEFAULT_POSTPOSITION = {
"은": "는",
"이": "가",
"과": "와",
"이나": "나",
"을": "를",
"으로": "로",
'은': '는',
'이': '가',
'과': '와',
'이나': '나',
'을': '를',
'으로': '로',
};

@@ -195,6 +195,6 @@

const target = String(text).replace(REG_INVALID_CHAR, " ").replace(REG_TARGET_CHAR, "$1");
const target = String(text).replace(REG_INVALID_CHAR, ' ').replace(REG_TARGET_CHAR, '$1');
const code = target.charAt(target.length - 1).charCodeAt();
const isKorean = KO_START_CODE <= code && code <= KO_FINISH_CODE;
const isRo = type === "로" || type === "으로";
const isRo = type === '로' || type === '으로';

@@ -215,4 +215,4 @@ return isKorean ? checkCode(code, isRo) : checkText(target, isRo);

export const pick = (text, type, special = null) => {
if (typeof special !== "string") {
type = DEFAULT_POSTPOSITION[type] || type || "";
if (typeof special !== 'string') {
type = DEFAULT_POSTPOSITION[type] || type || '';
special = SPECIAL_POSTPOSITION[type] || type;

@@ -258,3 +258,7 @@ }

export default {
check, pick, put, fix, parse
check,
pick,
put,
fix,
parse,
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc