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.0.1 to 1.0.2

2

dist/cox.postposition.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.postposition=t():(e.cox=e.cox||{},e.cox.postposition=t())}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"check",function(){return l}),n.d(t,"pick",function(){return d}),n.d(t,"put",function(){return x}),n.d(t,"fix",function(){return g});var o=/[^a-zA-Z0-9ㄱ-ㅎ가-힣\s]+/g,r=/^[\s\S]*?(\S*)\s*$/,i=new RegExp("(?:"+["check|[hm]ook|limit"].join("|")+")$","i"),u=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)","app|foot|go+d|big|bag|private"].join("|")+")$","i"),c=new RegExp("(?:"+["[178ㄹ]","^[lr]","^[ou]r","\\Sle?"].join("|")+")$","i"),f={"은":"는","이":"가","과":"와","이나":"나","을":"를","으로":"로"},p=function(){var e={};for(var t in f)e[f[t]]=t;return e}(),a=function(e,t){return!i.test(e)&&(u.test(e)||!t&&c.test(e))},s=function(e,t){var n=(e-44032)%28;return 0!==n&&!(t&&8===n)},l=function(e,t){var n=e.replace(o," ").replace(r,"$1"),i=n.charAt(n.length-1).charCodeAt(),u=44032<=i&&i<=55203,c="로"===t||"으로"===t;return u?s(i,c):a(n,c)},d=function(e,t,n){return"string"!=typeof n&&(t=f[t]||t||"",n=p[t]||t),l(e,t)?n:t},x=function(e,t,n){return""+e+d(e,t,n)},g=function(e,t){return function(n){return x(n,e,t)}};t.default={check:l,pick:d,put:x,fix:g}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.postposition=t():(e.cox=e.cox||{},e.cox.postposition=t())}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"check",function(){return l}),n.d(t,"pick",function(){return d}),n.d(t,"put",function(){return x}),n.d(t,"fix",function(){return g});var o=/[^a-zA-Z0-9ㄱ-ㅎ가-힣\s]+/g,r=/^[\s\S]*?(\S*)\s*$/,i=new RegExp("(?:"+["check|[hm]ook|limit"].join("|")+")$","i"),u=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"),c=new RegExp("(?:"+["[178ㄹ]","^[lr]","^\\Sr","\\Sle?"].join("|")+")$","i"),f={"은":"는","이":"가","과":"와","이나":"나","을":"를","으로":"로"},p=function(){var e={};for(var t in f)e[f[t]]=t;return e}(),a=function(e,t){return!i.test(e)&&(u.test(e)||!t&&c.test(e))},s=function(e,t){var n=(e-44032)%28;return 0!==n&&!(t&&8===n)},l=function(e,t){var n=e.replace(o," ").replace(r,"$1"),i=n.charAt(n.length-1).charCodeAt(),u=44032<=i&&i<=55203,c="로"===t||"으로"===t;return u?s(i,c):a(n,c)},d=function(e,t,n){return"string"!=typeof n&&(t=f[t]||t||"",n=p[t]||t),l(e,t)?n:t},x=function(e,t,n){return""+e+d(e,t,n)},g=function(e,t){return function(n){return x(n,e,t)}};t.default={check:l,pick:d,put:x,fix:g}}])});
{
"name": "cox-postposition",
"version": "1.0.1",
"version": "1.0.2",
"description": "한글, 영문, 숫자에 대한 한글 조사를 처리하는 Javascript Library 입니다.",

@@ -5,0 +5,0 @@ "main": "src/postposition.js",

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

[예제 보기](https://cdn.rawgit.com/coxcore/postposition/1.0.1/demo/index.html)
[예제 보기](https://cdn.rawgit.com/coxcore/postposition/1.0.2/demo/index.html)

@@ -18,7 +18,7 @@ ## 설치하기

`npm install`을 통해 설치하는 경우 `ES6` 문법으로 작성한 원본 JS 파일을 참조합니다.
따라서 `ES6`를 지원하지 않는 환경에서는 [UMD](#umd) 사용법을 참고하여 사용하시기 바랍니다
따라서 `ES6`를 지원하지 않는 환경에서는 [UMD](#umd---es6-module을-지원하지-않는-환경) 사용법을 참고하여 사용하시기 바랍니다
#### CDN
```html
https://cdn.rawgit.com/coxcore/postposition/1.0.1/dist/cox.postposition.min.js
https://cdn.rawgit.com/coxcore/postposition/1.0.2/dist/cox.postposition.min.js
```

@@ -62,3 +62,3 @@

```html
<script src="https://cdn.rawgit.com/coxcore/postposition/1.0.1/dist/cox.postposition.min.js"></script>
<script src="https://cdn.rawgit.com/coxcore/postposition/1.0.2/dist/cox.postposition.min.js"></script>

@@ -65,0 +65,0 @@ <script>

@@ -57,4 +57,3 @@ /**

const REG_SPECIAL_CHAR = new RegExp(`(?:${[
"[ㄱ-ㄷㅁ-ㅎ]",
"[036]",
"[ㄱ-ㄷㅁ-ㅎ036]",
"^[mn]",

@@ -67,3 +66,4 @@ "\\S[mn]e?",

"\\S[aeiou](?:c|ng)",
"app|foot|go+d|big|bag|private",
"foot|go+d|b[ai]g|private",
"^(?:app|kor)",
].join("|")})$`, "i");

@@ -80,3 +80,3 @@

"^[lr]",
"^[ou]r",
"^\\Sr",
"\\Sle?",

@@ -203,5 +203,3 @@ ].join("|")})$`, "i");

*/
export const fix = (type, special) => function(text) {
return put(text, type, special);
};
export const fix = (type, special) => (text => put(text, type, special));

@@ -208,0 +206,0 @@ export default {

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